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

Unified Diff: athena/input/public/input_manager.h

Issue 305873002: InputManager/AcceleratorManager for athena (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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
Index: athena/input/public/input_manager.h
diff --git a/athena/input/public/input_manager.h b/athena/input/public/input_manager.h
new file mode 100644
index 0000000000000000000000000000000000000000..8d183f569debb3198617ce7e68cf42d5ab28ed9a
--- /dev/null
+++ b/athena/input/public/input_manager.h
@@ -0,0 +1,42 @@
+// 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_INPUT_PUBLIC_INPUT_MANAGER_H_
+#define ATHENA_INPUT_PUBLIC_INPUT_MANAGER_H_
+
+#include "athena/athena_export.h"
+
+namespace aura {
+class Window;
+}
+
+namespace ui {
+class Accelerator;
+class EventTarget;
+}
+
+namespace athena {
+class AcceleratorManager;
+
+class ATHENA_EXPORT InputManager {
+ public:
+ // Creates and deletes the singleton object of the HomeCard
+ // implementation.
+ static InputManager* Create();
+ static InputManager* Get();
+ static void Shutdown();
+
+ // TODO(oshima): Fix the initialization process and replace this
+ // with EnvObserver::WindowInitialized
+ virtual void OnRootWindowCreated(aura::Window* root_window) = 0;
+
+ virtual ui::EventTarget* GetToplevelEventTarget() = 0;
+ virtual AcceleratorManager* GetAcceleratorManager() = 0;
+
+ virtual ~InputManager() {}
+};
+
+} // namespace athena
+
+#endif // ATHENA_INPUT_PUBLIC_INPUT_MANAGER_H_

Powered by Google App Engine
This is Rietveld 408576698