8 const char kCheckPrivilegeOperationName[] =
"check_ace_privilege";
9 const char kGetWindowIdOperationName[] =
"get_window_id";
10 const char kSetIMERecommendedWordsName[] =
"set_ime_recommended_words";
11 const char kSetIMERecommendedWordsTypeName[] =
"set_ime_recommended_words_type";
24 std::string privilege_string = privilege.
AsString();
25 std::map<std::string, bool>::iterator it =
26 privileges_result_.find(privilege_string);
27 if (it != privileges_result_.end())
30 bool has_privilege =
false;
31 if (call_result.is_bool())
32 has_privilege = call_result.AsBool();
33 privileges_result_[privilege_string] = has_privilege;
40 return call_result.
AsBool();
46 Var enable_var(should_enable);
50 return call_result.
AsBool();
59 return call_result.
AsInt();
bool CheckPrivilege(const Var &privilege)
std::string AsString() const
bool SetIMERecommendedWords(const Var &words)
~ExtensionSystemSamsungTizen()
Destructor.
bool SetIMERecommendedWordsType(bool should_enable)
int32_t GetWindowId()
GetWindowId() returns the X window Id for the current window.
Var GenericSyncCall(const Var &operation_name, const Var &operation_data)
A generic type used for passing data types between the module and the page.
ExtensionSystemSamsungTizen(const InstanceHandle &instance)