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

Unified Diff: chrome/browser/extensions/api/input/input.h

Issue 20145004: Switch from text insertion to key press and release events on the virtual k… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Code cleanup. Created 7 years, 3 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/api/input/input.h
diff --git a/chrome/browser/extensions/api/input/input.h b/chrome/browser/extensions/api/input/input.h
index 7f1a99c8dd4f8e1d70d0da1d2c718b8e226f3bc1..703c34ca8d0c733668e3d30b8f205a5d71dc72fd 100644
--- a/chrome/browser/extensions/api/input/input.h
+++ b/chrome/browser/extensions/api/input/input.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Copyright 2012 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.
@@ -37,6 +37,19 @@ class MoveCursorFunction : public SyncExtensionFunction {
virtual bool RunImpl() OVERRIDE;
};
+class SendKeyEventFunction : public SyncExtensionFunction {
+ public:
+ DECLARE_EXTENSION_FUNCTION(
+ "virtualKeyboardPrivate.sendKeyEvent",
+ VIRTUALKEYBOARDPRIVATE_SENDKEYEVENT);
+
+ protected:
+ virtual ~SendKeyEventFunction() {}
+
+ // ExtensionFunction:
+ virtual bool RunImpl() OVERRIDE;
+};
+
class InputAPI : public ProfileKeyedAPI {
public:
explicit InputAPI(Profile* profile);
« no previous file with comments | « no previous file | chrome/browser/extensions/api/input/input.cc » ('j') | chrome/browser/extensions/api/input/input.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698