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

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

Issue 9662022: Basic skeleton of a window/layer/view inspector. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 9 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 VOLUME_MUTE }, 60 VOLUME_MUTE },
61 { ui::ET_TRANSLATED_KEY_PRESS, ui::VKEY_VOLUME_MUTE, false, false, false, 61 { ui::ET_TRANSLATED_KEY_PRESS, ui::VKEY_VOLUME_MUTE, false, false, false,
62 VOLUME_MUTE }, 62 VOLUME_MUTE },
63 { ui::ET_TRANSLATED_KEY_PRESS, ui::VKEY_F9, false, false, false, 63 { ui::ET_TRANSLATED_KEY_PRESS, ui::VKEY_F9, false, false, false,
64 VOLUME_DOWN }, 64 VOLUME_DOWN },
65 { ui::ET_TRANSLATED_KEY_PRESS, ui::VKEY_VOLUME_DOWN, false, false, false, 65 { ui::ET_TRANSLATED_KEY_PRESS, ui::VKEY_VOLUME_DOWN, false, false, false,
66 VOLUME_DOWN }, 66 VOLUME_DOWN },
67 { ui::ET_TRANSLATED_KEY_PRESS, ui::VKEY_F10, false, false, false, VOLUME_UP }, 67 { ui::ET_TRANSLATED_KEY_PRESS, ui::VKEY_F10, false, false, false, VOLUME_UP },
68 { ui::ET_TRANSLATED_KEY_PRESS, ui::VKEY_VOLUME_UP, false, false, false, 68 { ui::ET_TRANSLATED_KEY_PRESS, ui::VKEY_VOLUME_UP, false, false, false,
69 VOLUME_UP }, 69 VOLUME_UP },
70 { ui::ET_TRANSLATED_KEY_PRESS, ui::VKEY_F1, true, true, false, SHOW_OAK },
70 #if !defined(NDEBUG) 71 #if !defined(NDEBUG)
71 { ui::ET_TRANSLATED_KEY_PRESS, ui::VKEY_HOME, false, true, false, 72 { ui::ET_TRANSLATED_KEY_PRESS, ui::VKEY_HOME, false, true, false,
72 ROTATE_SCREEN }, 73 ROTATE_SCREEN },
73 { ui::ET_TRANSLATED_KEY_PRESS, ui::VKEY_B, false, true, true, 74 { ui::ET_TRANSLATED_KEY_PRESS, ui::VKEY_B, false, true, true,
74 TOGGLE_DESKTOP_BACKGROUND_MODE }, 75 TOGGLE_DESKTOP_BACKGROUND_MODE },
75 { ui::ET_TRANSLATED_KEY_PRESS, ui::VKEY_F11, false, true, false, 76 { ui::ET_TRANSLATED_KEY_PRESS, ui::VKEY_F11, false, true, false,
76 TOGGLE_ROOT_WINDOW_FULL_SCREEN }, 77 TOGGLE_ROOT_WINDOW_FULL_SCREEN },
77 { ui::ET_TRANSLATED_KEY_PRESS, ui::VKEY_L, false, false, true, 78 { ui::ET_TRANSLATED_KEY_PRESS, ui::VKEY_L, false, false, true,
78 PRINT_LAYER_HIERARCHY }, 79 PRINT_LAYER_HIERARCHY },
79 { ui::ET_TRANSLATED_KEY_PRESS, ui::VKEY_L, true, false, true, 80 { ui::ET_TRANSLATED_KEY_PRESS, ui::VKEY_L, true, false, true,
80 PRINT_WINDOW_HIERARCHY }, 81 PRINT_WINDOW_HIERARCHY },
81 // For testing on systems where Alt-Tab is already mapped. 82 // For testing on systems where Alt-Tab is already mapped.
82 { ui::ET_TRANSLATED_KEY_PRESS, ui::VKEY_W, false, false, true, 83 { ui::ET_TRANSLATED_KEY_PRESS, ui::VKEY_W, false, false, true,
83 CYCLE_FORWARD }, 84 CYCLE_FORWARD },
84 { ui::ET_TRANSLATED_KEY_PRESS, ui::VKEY_W, true, false, true, 85 { ui::ET_TRANSLATED_KEY_PRESS, ui::VKEY_W, true, false, true,
85 CYCLE_BACKWARD }, 86 CYCLE_BACKWARD },
86 #endif 87 #endif
87 }; 88 };
88 89
89 const size_t kAcceleratorDataLength = arraysize(kAcceleratorData); 90 const size_t kAcceleratorDataLength = arraysize(kAcceleratorData);
90 91
91 } // namespace ash 92 } // namespace ash
OLDNEW
« no previous file with comments | « ash/accelerators/accelerator_table.h ('k') | ash/ash.gyp » ('j') | ui/oak/oak.gyp » ('J')

Powered by Google App Engine
This is Rietveld 408576698