Pepper_47_C++_interfaces
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 
12 
13 /// @file
14 /// This file defines APIs related to extension system provided by the Tizen.
15 
16 namespace pp {
17 
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.
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.
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_
int32_t GetWindowId()
GetWindowId() returns the X window Id for the current window.
A generic type used for passing data types between the module and the page.
Definition: var.h:21
ExtensionSystemSamsungTizen(const InstanceHandle &instance)