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

Unified Diff: athena/screen/screen_accelerator_handler.h

Issue 322503005: Athena's FocusManager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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/screen/background_controller.cc ('k') | athena/screen/screen_accelerator_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: athena/screen/screen_accelerator_handler.h
diff --git a/athena/screen/screen_accelerator_handler.h b/athena/screen/screen_accelerator_handler.h
new file mode 100644
index 0000000000000000000000000000000000000000..7e7a9eaf2009cc31dabb43cf5b1b56a3e1a89b16
--- /dev/null
+++ b/athena/screen/screen_accelerator_handler.h
@@ -0,0 +1,33 @@
+// 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.
+
+#include "athena/input/public/accelerator_manager.h"
+
+#include "base/macros.h"
+
+namespace aura {
+class Window;
+}
+
+namespace athena {
+
+// Handles screen related accelerators.
+class ScreenAcceleratorHandler : public AcceleratorHandler {
+ public:
+ explicit ScreenAcceleratorHandler(aura::Window* root_window);
+
+ private:
+ virtual ~ScreenAcceleratorHandler();
+
+ // AcceleratorHandler:
+ virtual bool IsCommandEnabled(int command_id) const OVERRIDE;
+ virtual bool OnAcceleratorFired(int command_id,
+ const ui::Accelerator& accelerator) OVERRIDE;
+
+ aura::Window* root_window_;
+
+ DISALLOW_COPY_AND_ASSIGN(ScreenAcceleratorHandler);
+};
+
+} // namespace athena
« no previous file with comments | « athena/screen/background_controller.cc ('k') | athena/screen/screen_accelerator_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698