X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fchrome%2Fbrowser%2Fsignin%2Fscreenlock_bridge.cc;h=4a95429aa295852af17d789c0658b637de3a4177;hb=d41e52f18cc3fee3627acf2db026b2a86c2a9d18;hp=56c2910592cd013f0fa38ebae776838bd3d4ef1d;hpb=4e9e197c26c34b7055b2c5de6d4a770d317b468c;p=platform%2Fframework%2Fweb%2Fcrosswalk.git diff --git a/src/chrome/browser/signin/screenlock_bridge.cc b/src/chrome/browser/signin/screenlock_bridge.cc index 56c2910..4a95429 100644 --- a/src/chrome/browser/signin/screenlock_bridge.cc +++ b/src/chrome/browser/signin/screenlock_bridge.cc @@ -37,7 +37,8 @@ ScreenlockBridge::UserPodCustomIconOptions::UserPodCustomIconOptions() animation_resource_width_(0u), animation_frame_length_ms_(0u), opacity_(100u), - autoshow_tooltip_(false) { + autoshow_tooltip_(false), + hardlock_on_click_(false) { } ScreenlockBridge::UserPodCustomIconOptions::~UserPodCustomIconOptions() {} @@ -86,6 +87,10 @@ ScreenlockBridge::UserPodCustomIconOptions::ToDictionaryValue() const { animation_frame_length_ms_); result->Set("animation", animation); } + + if (hardlock_on_click_) + result->SetBoolean("hardlockOnClick", true); + return result.Pass(); } @@ -130,6 +135,10 @@ void ScreenlockBridge::UserPodCustomIconOptions::SetTooltip( autoshow_tooltip_ = autoshow; } +void ScreenlockBridge::UserPodCustomIconOptions::SetHardlockOnClick() { + hardlock_on_click_ = true; +} + // static std::string ScreenlockBridge::GetAuthenticatedUserEmail(Profile* profile) { // |profile| has to be a signed-in profile with SigninManager already