diff options
author | shrikant@chromium.org <shrikant@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-08-24 14:37:39 +0000 |
---|---|---|
committer | shrikant@chromium.org <shrikant@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-08-24 14:37:39 +0000 |
commit | e42cb727b87b6a6d671ea686798b92ada92b3688 (patch) | |
tree | e0f6f6647db7d6065bf4b155b68fb5a2aa022030 /win8/delegate_execute/command_execute_impl.cc | |
parent | 88f4ab454556836d27c091b6a740891a7cd990a9 (diff) | |
download | chromium_src-e42cb727b87b6a6d671ea686798b92ada92b3688.zip chromium_src-e42cb727b87b6a6d671ea686798b92ada92b3688.tar.gz chromium_src-e42cb727b87b6a6d671ea686798b92ada92b3688.tar.bz2 |
Fixing the way we interpret ECHUIM_SYSTEM (GetUIMode). Instead of desktop we will launch into immersive.
BUG=278324
R=ananta
TBR=cpu
TEST=Please follow steps as mentioned in the bug description.
Review URL: https://chromiumcodereview.appspot.com/23301022
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@219435 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'win8/delegate_execute/command_execute_impl.cc')
-rw-r--r-- | win8/delegate_execute/command_execute_impl.cc | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/win8/delegate_execute/command_execute_impl.cc b/win8/delegate_execute/command_execute_impl.cc index 722f38c..bfb1e51 100644 --- a/win8/delegate_execute/command_execute_impl.cc +++ b/win8/delegate_execute/command_execute_impl.cc @@ -535,7 +535,15 @@ EC_HOST_UI_MODE CommandExecuteImpl::GetLaunchMode() { } } - if (launch_mode >= ECHUIM_SYSTEM_LAUNCHER) { + // According to 'developing metro style enabled desktop browser' document + // ECHUIM_SYSTEM_LAUNCHER – Start menu launch (includes Tile activation, + // typing a URL into the search box in Start, etc.) + // In non aura world we apparently used ECHUIM_SYSTEM_LAUNCHER to mean + // launch on desktop. For Aura we are changing ECHUIM_SYSTEM to mean + // immersive mode. + if (launch_mode == ECHUIM_SYSTEM_LAUNCHER) + launch_mode = ECHUIM_IMMERSIVE; + else if (launch_mode > ECHUIM_SYSTEM_LAUNCHER) { // At the end if launch mode is not proper apply heuristics. launch_mode = base::win::IsTouchEnabledDevice() ? ECHUIM_IMMERSIVE : ECHUIM_DESKTOP; |