OLD | NEW |
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_UI_API_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_INPUT_UI_API_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_INPUT_UI_API_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_INPUT_UI_API_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/memory/singleton.h" | 11 #include "base/memory/singleton.h" |
12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
13 #include "chrome/browser/chromeos/input_method/ibus_ui_controller.h" | 13 #include "chrome/browser/chromeos/input_method/ibus_ui_controller.h" |
14 #include "chrome/browser/extensions/extension_function.h" | 14 #include "chrome/browser/extensions/extension_function.h" |
15 | 15 |
16 class ListValue; | |
17 class Profile; | 16 class Profile; |
18 | 17 |
19 class ExtensionInputUiEventRouter | 18 class ExtensionInputUiEventRouter |
20 : public chromeos::input_method::IBusUiController::Observer { | 19 : public chromeos::input_method::IBusUiController::Observer { |
21 public: | 20 public: |
22 static ExtensionInputUiEventRouter* GetInstance(); | 21 static ExtensionInputUiEventRouter* GetInstance(); |
23 void Init(); | 22 void Init(); |
24 | 23 |
25 private: | 24 private: |
26 friend class CandidateClickedInputUiFunction; | 25 friend class CandidateClickedInputUiFunction; |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 DECLARE_EXTENSION_FUNCTION_NAME("experimental.inputUI.pageUp"); | 96 DECLARE_EXTENSION_FUNCTION_NAME("experimental.inputUI.pageUp"); |
98 }; | 97 }; |
99 | 98 |
100 class PageDownInputUiFunction : public SyncExtensionFunction { | 99 class PageDownInputUiFunction : public SyncExtensionFunction { |
101 public: | 100 public: |
102 virtual bool RunImpl(); | 101 virtual bool RunImpl(); |
103 DECLARE_EXTENSION_FUNCTION_NAME("experimental.inputUI.pageDown"); | 102 DECLARE_EXTENSION_FUNCTION_NAME("experimental.inputUI.pageDown"); |
104 }; | 103 }; |
105 | 104 |
106 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_INPUT_UI_API_H_ | 105 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_INPUT_UI_API_H_ |
OLD | NEW |