Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(455)

Side by Side Diff: ash/accelerators/accelerator_table.cc

Issue 155493002: Add key based scrolling on magnified screen for kiosk mode. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ash/accelerators/accelerator_table.h" 5 #include "ash/accelerators/accelerator_table.h"
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 8
9 namespace ash { 9 namespace ash {
10 10
(...skipping 415 matching lines...) Expand 10 before | Expand all | Expand 10 after
426 WINDOW_SNAP_RIGHT, 426 WINDOW_SNAP_RIGHT,
427 WINDOW_MINIMIZE, 427 WINDOW_MINIMIZE,
428 TOGGLE_FULLSCREEN, 428 TOGGLE_FULLSCREEN,
429 TOGGLE_MAXIMIZED, 429 TOGGLE_MAXIMIZED,
430 WINDOW_POSITION_CENTER, 430 WINDOW_POSITION_CENTER,
431 ROTATE_WINDOW, 431 ROTATE_WINDOW,
432 }; 432 };
433 433
434 const size_t kActionsNeedingWindowLength = arraysize(kActionsNeedingWindow); 434 const size_t kActionsNeedingWindowLength = arraysize(kActionsNeedingWindow);
435 435
436 #if defined(OS_CHROMEOS)
437 // We're using NUMPAD keys as they're most likely unused in kiosk mode.
438 const AcceleratorData kMagnifierAcceleratorData[] = {
439 { true, ui::VKEY_NUMPAD6, ui::EF_SHIFT_DOWN, MAGNIFY_SCREEN_UP },
440 { true, ui::VKEY_NUMPAD7, ui::EF_SHIFT_DOWN, MAGNIFY_SCREEN_DOWN },
441 { true, ui::VKEY_NUMPAD8, ui::EF_SHIFT_DOWN, MAGNIFY_SCREEN_LEFT },
442 { true, ui::VKEY_NUMPAD9, ui::EF_SHIFT_DOWN, MAGNIFY_SCREEN_RIGHT },
443
444 { false, ui::VKEY_NUMPAD6, ui::EF_NONE, MAGNIFY_SCREEN_STOP_SCROLL },
445 { false, ui::VKEY_NUMPAD7, ui::EF_NONE, MAGNIFY_SCREEN_STOP_SCROLL },
446 { false, ui::VKEY_NUMPAD8, ui::EF_NONE, MAGNIFY_SCREEN_STOP_SCROLL },
447 { false, ui::VKEY_NUMPAD9, ui::EF_NONE, MAGNIFY_SCREEN_STOP_SCROLL },
448 };
449
450 const size_t kMagnifierAcceleratorDataLength =
451 arraysize(kMagnifierAcceleratorData);
452 #endif
453
436 } // namespace ash 454 } // namespace ash
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698