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

Unified Diff: chrome/browser/extensions/extension_input_api.h

Issue 3130029: Lands http://codereview.chromium.org/3153008 for bryeung: (Closed)
Patch Set: YAM Created 10 years, 4 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: chrome/browser/extensions/extension_input_api.h
diff --git a/chrome/browser/extensions/extension_input_api.h b/chrome/browser/extensions/extension_input_api.h
new file mode 100644
index 0000000000000000000000000000000000000000..3000211c9bd2901c2cc1df66b46b36ab45787df5
--- /dev/null
+++ b/chrome/browser/extensions/extension_input_api.h
@@ -0,0 +1,36 @@
+// Copyright (c) 2010 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 CHROME_BROWSER_EXTENSIONS_EXTENSION_INPUT_API_H_
+#define CHROME_BROWSER_EXTENSIONS_EXTENSION_INPUT_API_H_
+#pragma once
+
+#include "chrome/browser/extensions/extension_function.h"
+
+namespace views {
+ class RootView;
+} // namespace views
+
+// Base class for input APIs.
+class InputFunction : public AsyncExtensionFunction {
+ public:
+ virtual void Run();
+ virtual bool RunImpl() = 0;
+};
+
+// Note that this experimental API is currently only available for
+// TOOLKIT_VIEWS (see chrome/chrome_browser.gypi).
+//
+// We may eventually support other platforms by adding the necessary
+// synthetic event distribution code to this Function.
+class SendKeyboardEventInputFunction : public InputFunction {
+ public:
+ virtual bool RunImpl();
+ DECLARE_EXTENSION_FUNCTION_NAME("experimental.input.sendKeyboardEvent");
+
+ private:
+ views::RootView* GetRootView();
+};
+
+#endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_INPUT_API_H_
« no previous file with comments | « chrome/browser/extensions/extension_function_dispatcher.cc ('k') | chrome/browser/extensions/extension_input_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698