diff options
author | oshima@chromium.org <oshima@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-03-15 12:44:22 +0000 |
---|---|---|
committer | oshima@chromium.org <oshima@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-03-15 12:44:22 +0000 |
commit | 4ef95204389475ca252970bc7c67f0410dca73df (patch) | |
tree | 53c32a27c3a674f0e60d2064addaa3be54b0f257 /ash/accelerators/accelerator_table.cc | |
parent | 7497316a8c9fb91c3ddd4cbd78ec565ad52560bb (diff) | |
download | chromium_src-4ef95204389475ca252970bc7c67f0410dca73df.zip chromium_src-4ef95204389475ca252970bc7c67f0410dca73df.tar.gz chromium_src-4ef95204389475ca252970bc7c67f0410dca73df.tar.bz2 |
Revert "2nd try"
2nd try
Add shortcut keys to ui scaling
- Round root window size because it can be fractional size
when root_window_scale_ is specified.
- Remove scaling option from about:flags.
- Rotate display where the mouse is in.
BUG=179997,119268
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=188324
Review URL: https://codereview.chromium.org/12848004
TBR=oshima@chromium.org
Review URL: https://codereview.chromium.org/12886005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@188374 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/accelerators/accelerator_table.cc')
-rw-r--r-- | ash/accelerators/accelerator_table.cc | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/ash/accelerators/accelerator_table.cc b/ash/accelerators/accelerator_table.cc index 02de15d..54e4c5b 100644 --- a/ash/accelerators/accelerator_table.cc +++ b/ash/accelerators/accelerator_table.cc @@ -77,11 +77,7 @@ const AcceleratorData kAcceleratorData[] = { // Extra shortcut to lock the screen on linux desktop. { true, ui::VKEY_POWER, ui::EF_SHIFT_DOWN, LOCK_PRESSED }, { false, ui::VKEY_POWER, ui::EF_SHIFT_DOWN, LOCK_RELEASED }, - // Extra shortcut to rotate/scale up/down the screen on linux desktop. { true, ui::VKEY_F3, ui::EF_SHIFT_DOWN | ui::EF_CONTROL_DOWN, ROTATE_SCREEN }, - { true, ui::VKEY_F2, ui::EF_CONTROL_DOWN , SCALE_UI_UP }, - { true, ui::VKEY_F2, - ui::EF_CONTROL_DOWN | ui::EF_SHIFT_DOWN, SCALE_UI_DOWN }, #endif // !defined(NDEBUG) { true, ui::VKEY_O, ui::EF_CONTROL_DOWN, OPEN_FILE_DIALOG }, { true, ui::VKEY_M, ui::EF_SHIFT_DOWN | ui::EF_ALT_DOWN, @@ -105,10 +101,6 @@ const AcceleratorData kAcceleratorData[] = { NEW_INCOGNITO_WINDOW }, { true, ui::VKEY_N, ui::EF_CONTROL_DOWN, NEW_WINDOW }, { true, ui::VKEY_T, ui::EF_CONTROL_DOWN, NEW_TAB }, - { true, ui::VKEY_BROWSER_BACK, - ui::EF_CONTROL_DOWN | ui::EF_SHIFT_DOWN, SCALE_UI_UP }, - { true, ui::VKEY_BROWSER_FORWARD, - ui::EF_CONTROL_DOWN | ui::EF_SHIFT_DOWN, SCALE_UI_DOWN }, { true, ui::VKEY_BROWSER_REFRESH, ui::EF_CONTROL_DOWN | ui::EF_SHIFT_DOWN, ROTATE_SCREEN }, { true, ui::VKEY_BROWSER_REFRESH, @@ -137,8 +129,7 @@ const AcceleratorData kAcceleratorData[] = { { true, ui::VKEY_F14, ui::EF_NONE, SHOW_KEYBOARD_OVERLAY }, { true, ui::VKEY_N, ui::EF_SHIFT_DOWN | ui::EF_ALT_DOWN, SHOW_MESSAGE_CENTER_BUBBLE }, - { true, ui::VKEY_BROWSER_BACK, - ui::EF_SHIFT_DOWN | ui::EF_CONTROL_DOWN | ui::EF_ALT_DOWN, + { true, ui::VKEY_BROWSER_BACK, ui::EF_SHIFT_DOWN | ui::EF_CONTROL_DOWN, SHOW_OAK }, { true, ui::VKEY_S, ui::EF_SHIFT_DOWN | ui::EF_ALT_DOWN, SHOW_SYSTEM_TRAY_BUBBLE }, @@ -237,8 +228,6 @@ const AcceleratorAction kActionsAllowedAtLoginOrLockScreen[] = { VOLUME_UP, ROTATE_SCREEN, ROTATE_WINDOW, - SCALE_UI_UP, - SCALE_UI_DOWN, #if !defined(NDEBUG) PRINT_LAYER_HIERARCHY, PRINT_VIEW_HIERARCHY, @@ -305,8 +294,6 @@ const AcceleratorAction kNonrepeatableActions[] = { CYCLE_FORWARD_MRU, ROTATE_SCREEN, ROTATE_WINDOW, - SCALE_UI_UP, - SCALE_UI_DOWN, TOGGLE_MAXIMIZED, WINDOW_MINIMIZE, }; @@ -334,8 +321,6 @@ const AcceleratorAction kActionsAllowedInAppMode[] = { POWER_RELEASED, PREVIOUS_IME, ROTATE_SCREEN, - SCALE_UI_UP, - SCALE_UI_DOWN, SWAP_PRIMARY_DISPLAY, SWITCH_IME, // Switch to another IME depending on the accelerator. TOGGLE_CAPS_LOCK, |