Skip to content

Commit

Permalink
Add about:flag to enable unified desktop mode
Browse files Browse the repository at this point in the history
BUG=365662

Review URL: https://codereview.chromium.org/1116253002

Cr-Commit-Position: refs/heads/master@{#327913}
  • Loading branch information
mitoshima authored and Commit bot committed May 1, 2015
1 parent f930f7d commit 94c2467
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ash/ash_switches.cc
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ const char kAshEnableFullscreenAppList[] = "ash-enable-fullscreen-app-list";
const char kAshEnableMagnifierKeyScroller[] =
"ash-enable-magnifier-key-scroller";

// Enables unified desktop mode.
const char kAshEnableUnifiedDesktop[] = "ash-enable-unified-desktop";

#endif

// Enables mirrored screen.
Expand Down Expand Up @@ -131,9 +134,7 @@ bool ConstrainPointerToRoot() {
kAshConstrainPointerToRoot);
}

// Enables unified desktop mode.
bool UnifiedDesktopEnabled() {
const char kAshEnableUnifiedDesktop[] = "ash-enable-unified-desktop";
return base::CommandLine::ForCurrentProcess()->HasSwitch(
kAshEnableUnifiedDesktop);
}
Expand Down
1 change: 1 addition & 0 deletions ash/ash_switches.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ ASH_EXPORT extern const char kAshDisableTouchExplorationMode[];
#if defined(OS_CHROMEOS)
ASH_EXPORT extern const char kAshEnableFullscreenAppList[];
ASH_EXPORT extern const char kAshEnableMagnifierKeyScroller[];
ASH_EXPORT extern const char kAshEnableUnifiedDesktop[];
#endif
ASH_EXPORT extern const char kAshEnableMirroredScreen[];
ASH_EXPORT extern const char kAshEnablePowerButtonQuickLock[];
Expand Down
6 changes: 6 additions & 0 deletions chrome/app/generated_resources.grd
Original file line number Diff line number Diff line change
Expand Up @@ -6292,6 +6292,12 @@ Keep your key file in a safe place. You will need it to create new versions of y
<message name="IDS_FLAGS_ALLOW_TOUCHPAD_THREE_FINGER_CLICK_DESCRIPTION" desc="Description for the flag to enable touchpad three finger click as middle button.">
Enables touchpad three-finger-click as middle button.
</message>
<message name="IDS_FLAGS_ASH_ENABLE_UNIFIED_DESKTOP_NAME" desc="Name for the flag to enable unified desktop mode.">
Enable unified desktop mode.
</message>
<message name="IDS_FLAGS_ASH_ENABLE_UNIFIED_DESKTOP_DESCRIPTION" desc="Description for the flag to enable unified desktop mode.">
Enable unified desktop mode which allows a window to span multiple displays.
</message>
<message name="IDS_FLAGS_DISABLE_BOOT_ANIMATION" desc="Name for the flag to disable wallpaper boot animation (except for OOBE).">
Disable boot animation.
</message>
Expand Down
7 changes: 7 additions & 0 deletions chrome/browser/about_flags.cc
Original file line number Diff line number Diff line change
Expand Up @@ -961,6 +961,13 @@ const Experiment kExperiments[] = {
kOsCrOS,
SINGLE_VALUE_TYPE(chromeos::switches::kEnableTouchpadThreeFingerClick)
},
{
"ash-enable-unified-desktop",
IDS_FLAGS_ASH_ENABLE_UNIFIED_DESKTOP_NAME,
IDS_FLAGS_ASH_ENABLE_UNIFIED_DESKTOP_DESCRIPTION,
kOsCrOS,
SINGLE_VALUE_TYPE(ash::switches::kAshEnableUnifiedDesktop)
},
{
"disable-easy-unlock",
IDS_FLAGS_DISABLE_EASY_UNLOCK_NAME,
Expand Down
1 change: 1 addition & 0 deletions tools/metrics/histograms/histograms.xml
Original file line number Diff line number Diff line change
Expand Up @@ -55460,6 +55460,7 @@ To add a new entry, add it with any value and run test to compute valid value.
<int value="-86788587" label="allow-autofill-sync-credential"/>
<int value="-80353187" label="disable-display-color-calibration"/>
<int value="-76631048" label="disable-offline-auto-reload-visible-only"/>
<int value="-70595606" label="ash-enable-unified-desktop"/>
<int value="-68225452" label="enable-translate-new-ux"/>
<int value="-58242474" label="ash-disable-swipe-to-close-in-overview-mode"/>
<int value="-55944747" label="disable-child-account-detection"/>
Expand Down

0 comments on commit 94c2467

Please sign in to comment.