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

Unified Diff: athena/main/debug_accelerator_handler.h

Issue 687533002: Print activity state when Ctrl+Shift+Alt+W is pressed (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move debug accelerators to DebugAcceleratorHandler Created 6 years, 2 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 | « athena/main/athena_main.gyp ('k') | athena/main/debug_accelerator_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: athena/main/debug_accelerator_handler.h
diff --git a/athena/main/debug_accelerator_handler.h b/athena/main/debug_accelerator_handler.h
new file mode 100644
index 0000000000000000000000000000000000000000..e2595970ad1e8393e40a9af2ee8cc640f153e63a
--- /dev/null
+++ b/athena/main/debug_accelerator_handler.h
@@ -0,0 +1,36 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+#ifndef ATHENA_MAIN_DEBUG_ACCELERATOR_HANDLER_H_
+#define ATHENA_MAIN_DEBUG_ACCELERATOR_HANDLER_H_
+
+#include "athena/input/public/accelerator_manager.h"
+
+#include "base/macros.h"
+
+namespace aura {
+class Window;
+}
+
+namespace athena {
+
+// Handles accelerators useful for debugging.
+class DebugAcceleratorHandler : public AcceleratorHandler {
+ public:
+ explicit DebugAcceleratorHandler(aura::Window* root_window);
+ ~DebugAcceleratorHandler() override;
+
+ // AcceleratorHandler:
+ bool IsCommandEnabled(int command_id) const override;
+ bool OnAcceleratorFired(int command_id,
+ const ui::Accelerator& accelerator) override;
+
+ private:
+ aura::Window* root_window_;
+
+ DISALLOW_COPY_AND_ASSIGN(DebugAcceleratorHandler);
+};
+
+} // namespace athena
+
+#endif // ATHENA_MAIN_DEBUG_ACCELERATOR_HANDLER_H_
« no previous file with comments | « athena/main/athena_main.gyp ('k') | athena/main/debug_accelerator_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698