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

Unified Diff: ash/accelerators/accelerator_action.h

Issue 10784009: screenshot disabling policy tests (Closed) Base URL: http://git.chromium.org/chromium/src.git@disable_screenshots
Patch Set: Updated accelerator_action.h Created 8 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ash/accelerators/accelerator_table.h » ('j') | ash/accelerators/accelerator_table.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/accelerators/accelerator_action.h
diff --git a/ash/accelerators/accelerator_table.h b/ash/accelerators/accelerator_action.h
similarity index 51%
copy from ash/accelerators/accelerator_table.h
copy to ash/accelerators/accelerator_action.h
index 29b85167b38fdc36a1f43fcbf563efd2985aa30d..7e5a24a146cd13bbff87a8770f70ab103577fe31 100644
--- a/ash/accelerators/accelerator_table.h
+++ b/ash/accelerators/accelerator_action.h
@@ -2,11 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef ASH_ACCELERATORS_ACCELERATOR_TABLE_H_
-#define ASH_ACCELERATORS_ACCELERATOR_TABLE_H_
-
-#include "ash/ash_export.h"
-#include "ui/aura/event.h"
+#ifndef ASH_ACCELERATORS_ACTION_TABLE_H_
sky 2012/08/02 20:14:39 Should match file name.
qfel 2012/08/07 09:23:15 Done.
+#define ASH_ACCELERATORS_ACTION_TABLE_H_
namespace ash {
@@ -69,60 +66,16 @@ enum AcceleratorAction {
WINDOW_POSITION_CENTER,
WINDOW_SNAP_LEFT,
WINDOW_SNAP_RIGHT,
-#if defined(OS_CHROMEOS)
CYCLE_DISPLAY_MODE,
LOCK_SCREEN,
OPEN_CROSH,
OPEN_FILE_MANAGER_DIALOG,
OPEN_FILE_MANAGER_TAB,
-#endif
-#if !defined(NDEBUG)
PRINT_LAYER_HIERARCHY,
PRINT_VIEW_HIERARCHY,
PRINT_WINDOW_HIERARCHY,
-#endif
-};
-
-struct AcceleratorData {
- bool trigger_on_press;
- ui::KeyboardCode keycode;
- int modifiers;
- AcceleratorAction action;
};
-// Accelerators handled by AcceleratorController.
-ASH_EXPORT extern const AcceleratorData kAcceleratorData[];
-
-// The number of elements in kAcceleratorData.
-ASH_EXPORT extern const size_t kAcceleratorDataLength;
-
-// Debug accelerators enabled only when "Debugging keyboard shortcuts" flag
-// (--ash-debug-shortcuts) is enabled.
-ASH_EXPORT extern const AcceleratorData kDebugAcceleratorData[];
-
-// The number of elements in kDebugAcceleratorData.
-ASH_EXPORT extern const size_t kDebugAcceleratorDataLength;
-
-// Actions that should be handled very early in Ash unless the current target
-// window is full-screen.
-ASH_EXPORT extern const AcceleratorAction kReservedActions[];
-
-// The number of elements in kReservedActions.
-ASH_EXPORT extern const size_t kReservedActionsLength;
-
-// Actions allowed while user is not signed in or screen is locked.
-ASH_EXPORT extern const AcceleratorAction kActionsAllowedAtLoginOrLockScreen[];
-
-// The number of elements in kActionsAllowedAtLoginOrLockScreen.
-ASH_EXPORT extern const size_t kActionsAllowedAtLoginOrLockScreenLength;
-
-// Actions allowed while screen is locked (in addition to
-// kActionsAllowedAtLoginOrLockScreen).
-ASH_EXPORT extern const AcceleratorAction kActionsAllowedAtLockScreen[];
-
-// The number of elements in kActionsAllowedAtLockScreen.
-ASH_EXPORT extern const size_t kActionsAllowedAtLockScreenLength;
-
} // namespace ash
#endif // ASH_ACCELERATORS_ACCELERATOR_TABLE_H_
« no previous file with comments | « no previous file | ash/accelerators/accelerator_table.h » ('j') | ash/accelerators/accelerator_table.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698