Pepper_47_C++_interfaces
Main Page
Modules
Namespaces
Classes
Files
File List
File Members
samsung
extension_system_samsung_tizen.h
Go to the documentation of this file.
1
// Copyright 2016 Samsung Electronics. All rights reserved.
2
// Use of this source code is governed by a BSD-style license that can be
3
// found in the LICENSE file.
4
5
#ifndef PPAPI_CPP_SAMSUNG_EXTENSION_SYSTEM_SAMSUNG_TIZEN_H_
6
#define PPAPI_CPP_SAMSUNG_EXTENSION_SYSTEM_SAMSUNG_TIZEN_H_
7
8
#include <map>
9
#include <string>
10
11
#include "
ppapi/cpp/samsung/extension_system_samsung.h
"
12
13
/// @file
14
/// This file defines APIs related to extension system provided by the Tizen.
15
16
namespace
pp {
17
18
class
ExtensionSystemSamsungTizen
:
public
ExtensionSystemSamsung
{
19
public
:
20
/// A constructor for creating a <code>ExtensionSystemSamsung</code>.
21
///
22
/// @param[in] instance The instance with which this resource will be
23
/// associated.
24
explicit
ExtensionSystemSamsungTizen
(
const
InstanceHandle
& instance);
25
26
/// Destructor.
27
~ExtensionSystemSamsungTizen
();
28
29
/// CheckPrivilege() returns true if the current extension has given
30
/// privilege, false otherwise.
31
bool
CheckPrivilege
(
const
Var
& privilege);
32
33
/// SetIMERecommendedWords() returns true if setting recommended words
34
/// was successful, false otherwise.
35
///
36
/// @param[in] words Var containing std::string with words to set.
37
bool
SetIMERecommendedWords
(
const
Var
& words);
38
39
/// SetIMERecommendedWordsType() returns true if setting specified
40
/// IME Recommended Words type was successful, false otherwise.
41
///
42
/// @param[in] should_enable bool indicating if
43
/// IMERecommendedWordsType should be enabled or disabled.
44
bool
SetIMERecommendedWordsType
(
bool
should_enable);
45
46
/// GetWindowId() returns the X window Id for the current window.
47
int32_t
GetWindowId
();
48
49
private
:
50
std::map<std::string, bool> privileges_result_;
51
};
52
53
}
// namespace pp
54
55
#endif // PPAPI_CPP_SAMSUNG_EXTENSION_SYSTEM_SAMSUNG_TIZEN_H_
pp::ExtensionSystemSamsungTizen::CheckPrivilege
bool CheckPrivilege(const Var &privilege)
Definition:
extension_system_samsung_tizen.cc:21
pp::ExtensionSystemSamsungTizen
Definition:
extension_system_samsung_tizen.h:18
pp::ExtensionSystemSamsungTizen::SetIMERecommendedWords
bool SetIMERecommendedWords(const Var &words)
Definition:
extension_system_samsung_tizen.cc:37
pp::ExtensionSystemSamsungTizen::~ExtensionSystemSamsungTizen
~ExtensionSystemSamsungTizen()
Destructor.
Definition:
extension_system_samsung_tizen.cc:19
extension_system_samsung.h
pp::ExtensionSystemSamsungTizen::SetIMERecommendedWordsType
bool SetIMERecommendedWordsType(bool should_enable)
Definition:
extension_system_samsung_tizen.cc:44
pp::InstanceHandle
Definition:
instance_handle.h:44
int32_t
pp::ExtensionSystemSamsung
Definition:
extension_system_samsung.h:18
pp::ExtensionSystemSamsungTizen::GetWindowId
int32_t GetWindowId()
GetWindowId() returns the X window Id for the current window.
Definition:
extension_system_samsung_tizen.cc:54
pp::Var
A generic type used for passing data types between the module and the page.
Definition:
var.h:21
pp::ExtensionSystemSamsungTizen::ExtensionSystemSamsungTizen
ExtensionSystemSamsungTizen(const InstanceHandle &instance)
Definition:
extension_system_samsung_tizen.cc:15
Generated on Wed Apr 5 2017 11:09:27 for Pepper_47_C++_interfaces by
1.8.6