Chromium Code Reviews| 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 "chrome/browser/extensions/extension_function.h" | |
| 10 | |
| 11 #if defined(OS_CHROMEOS) | |
|
bryeung
2011/05/19 22:23:42
Using the macros in this way makes this file hard
mazda
2011/05/20 12:16:05
OK. I moved the code to extension_input_api.*.
Let
| |
| 9 #include <string> | 12 #include <string> |
| 10 | 13 |
| 11 #include "base/memory/singleton.h" | 14 #include "base/memory/singleton.h" |
| 12 #include "base/memory/scoped_ptr.h" | 15 #include "base/memory/scoped_ptr.h" |
| 13 #include "chrome/browser/extensions/extension_function.h" | |
| 14 | 16 |
| 15 class InputUiController; | 17 class InputUiController; |
| 16 class ListValue; | 18 class ListValue; |
| 17 class Profile; | 19 class Profile; |
| 18 | 20 |
| 19 namespace chromeos { | 21 namespace chromeos { |
| 20 class InputMethodLookupTable; | 22 class InputMethodLookupTable; |
| 21 } | 23 } |
| 22 | 24 |
| 23 class ExtensionInputUiEventRouter { | 25 class ExtensionInputUiEventRouter { |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 93 virtual bool RunImpl(); | 95 virtual bool RunImpl(); |
| 94 DECLARE_EXTENSION_FUNCTION_NAME("experimental.inputUI.pageUp"); | 96 DECLARE_EXTENSION_FUNCTION_NAME("experimental.inputUI.pageUp"); |
| 95 }; | 97 }; |
| 96 | 98 |
| 97 class PageDownInputUiFunction : public SyncExtensionFunction { | 99 class PageDownInputUiFunction : public SyncExtensionFunction { |
| 98 public: | 100 public: |
| 99 virtual bool RunImpl(); | 101 virtual bool RunImpl(); |
| 100 DECLARE_EXTENSION_FUNCTION_NAME("experimental.inputUI.pageDown"); | 102 DECLARE_EXTENSION_FUNCTION_NAME("experimental.inputUI.pageDown"); |
| 101 }; | 103 }; |
| 102 | 104 |
| 105 #endif // OS_CHROMEOS | |
| 106 | |
| 107 class HideKeyboardInputUiFunction : public AsyncExtensionFunction { | |
| 108 public: | |
| 109 virtual bool RunImpl(); | |
| 110 DECLARE_EXTENSION_FUNCTION_NAME("experimental.inputUI.hideKeyboard"); | |
| 111 }; | |
| 112 | |
| 103 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_INPUT_UI_API_H_ | 113 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_INPUT_UI_API_H_ |
| OLD | NEW |