本文整理汇总了C++中RETURN_PROXY_IF_SANDBOXED函数的典型用法代码示例。如果您正苦于以下问题:C++ RETURN_PROXY_IF_SANDBOXED函数的具体用法?C++ RETURN_PROXY_IF_SANDBOXED怎么用?C++ RETURN_PROXY_IF_SANDBOXED使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了RETURN_PROXY_IF_SANDBOXED函数的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: GetCpuSleepAllowed
bool GetCpuSleepAllowed()
{
// Generally for interfaces that are accessible by normal web content
// we should cache the result and be notified on state changes, like
// what the battery API does. But since this is only used by
// privileged interface, the synchronous getter is OK here.
AssertMainThread();
RETURN_PROXY_IF_SANDBOXED(GetCpuSleepAllowed());
}
示例2: GetLight
bool GetLight(LightType light, hal::LightConfiguration* aConfig)
{
AssertMainThread();
RETURN_PROXY_IF_SANDBOXED(GetLight(light, aConfig));
}
示例3: SetLight
bool SetLight(LightType light, const hal::LightConfiguration& aConfig)
{
AssertMainThread();
RETURN_PROXY_IF_SANDBOXED(SetLight(light, aConfig));
}
示例4: GetScreenBrightness
double GetScreenBrightness()
{
AssertMainThread();
RETURN_PROXY_IF_SANDBOXED(GetScreenBrightness());
}
示例5: GetScreenEnabled
bool GetScreenEnabled()
{
AssertMainThread();
RETURN_PROXY_IF_SANDBOXED(GetScreenEnabled());
}
示例6: IsHeadphoneEventFromInputDev
bool IsHeadphoneEventFromInputDev()
{
AssertMainThread();
RETURN_PROXY_IF_SANDBOXED(IsHeadphoneEventFromInputDev(), false);
}
示例7: GetTimezoneOffset
int32_t
GetTimezoneOffset()
{
AssertMainThread();
RETURN_PROXY_IF_SANDBOXED(GetTimezoneOffset(), 0);
}
示例8: GetKeyLightEnabled
bool GetKeyLightEnabled()
{
AssertMainThread();
RETURN_PROXY_IF_SANDBOXED(GetKeyLightEnabled(), false);
}
示例9: LockScreenOrientation
bool
LockScreenOrientation(const dom::ScreenOrientation& aOrientation)
{
AssertMainThread();
RETURN_PROXY_IF_SANDBOXED(LockScreenOrientation(aOrientation));
}
示例10: GetCurrentSwitchState
hal::SwitchState GetCurrentSwitchState(hal::SwitchDevice aDevice)
{
AssertMainThread();
RETURN_PROXY_IF_SANDBOXED(GetCurrentSwitchState(aDevice));
}
示例11: EnableRDS
bool
EnableRDS(uint32_t aMask) {
AssertMainThread();
RETURN_PROXY_IF_SANDBOXED(EnableRDS(aMask), false);
}