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

Side by Side Diff: chrome/browser/extensions/extension_input_api.h

Issue 7033033: Add hideKeyboard API to chrome.experimental.input. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 'Moved hideKeyboard to chrome.experimental.input namespace' Created 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_INPUT_API_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_INPUT_API_H_
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_INPUT_API_H_ 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_INPUT_API_H_
7 #pragma once 7 #pragma once
8 8
9 #include "chrome/browser/extensions/extension_function.h" 9 #include "chrome/browser/extensions/extension_function.h"
10 10
(...skipping 15 matching lines...) Expand all
26 // synthetic event distribution code to this Function. 26 // synthetic event distribution code to this Function.
27 class SendKeyboardEventInputFunction : public InputFunction { 27 class SendKeyboardEventInputFunction : public InputFunction {
28 public: 28 public:
29 virtual bool RunImpl(); 29 virtual bool RunImpl();
30 DECLARE_EXTENSION_FUNCTION_NAME("experimental.input.sendKeyboardEvent"); 30 DECLARE_EXTENSION_FUNCTION_NAME("experimental.input.sendKeyboardEvent");
31 31
32 private: 32 private:
33 views::Widget* GetTopLevelWidget(); 33 views::Widget* GetTopLevelWidget();
34 }; 34 };
35 35
36 #if defined(TOUCH_UI)
37 class HideKeyboardInputFunction : public AsyncExtensionFunction {
bryeung 2011/05/20 17:42:03 Please remove Input from the name.
mazda 2011/05/20 19:03:59 Done.
38 public:
39 virtual bool RunImpl();
40 DECLARE_EXTENSION_FUNCTION_NAME("experimental.input.hideKeyboard");
41 };
42 #endif
43
36 #if defined(OS_CHROMEOS) && defined(TOUCH_UI) 44 #if defined(OS_CHROMEOS) && defined(TOUCH_UI)
37 // Note that this experimental APIs are currently only available for 45 // Note that this experimental APIs are currently only available for
38 // TOUCH_UI version of Chrome OS. Please also note that the version of Chrome 46 // TOUCH_UI version of Chrome OS. Please also note that the version of Chrome
39 // OS is always built with TOOLKIT_VIEWS. 47 // OS is always built with TOOLKIT_VIEWS.
40 // 48 //
41 // We may eventually support other platforms, especially non TOUCH_UI version 49 // We may eventually support other platforms, especially non TOUCH_UI version
42 // of Chrome OS. 50 // of Chrome OS.
43 class SendHandwritingStrokeFunction : public SyncExtensionFunction { 51 class SendHandwritingStrokeFunction : public SyncExtensionFunction {
44 public: 52 public:
45 virtual bool RunImpl(); 53 virtual bool RunImpl();
46 DECLARE_EXTENSION_FUNCTION_NAME("experimental.input.sendHandwritingStroke"); 54 DECLARE_EXTENSION_FUNCTION_NAME("experimental.input.sendHandwritingStroke");
47 }; 55 };
48 56
49 class CancelHandwritingStrokesFunction : public SyncExtensionFunction { 57 class CancelHandwritingStrokesFunction : public SyncExtensionFunction {
50 public: 58 public:
51 virtual bool RunImpl(); 59 virtual bool RunImpl();
52 DECLARE_EXTENSION_FUNCTION_NAME( 60 DECLARE_EXTENSION_FUNCTION_NAME(
53 "experimental.input.cancelHandwritingStrokes"); 61 "experimental.input.cancelHandwritingStrokes");
54 }; 62 };
55 #endif 63 #endif
56 64
57 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_INPUT_API_H_ 65 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_INPUT_API_H_
OLDNEW
« 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