| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_API_INPUT_IME_INPUT_IME_API_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_INPUT_IME_INPUT_IME_API_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_API_INPUT_IME_INPUT_IME_API_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_API_INPUT_IME_INPUT_IME_API_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 DECLARE_EXTENSION_FUNCTION("input.ime.setCandidates", INPUT_IME_SETCANDIDATES) | 121 DECLARE_EXTENSION_FUNCTION("input.ime.setCandidates", INPUT_IME_SETCANDIDATES) |
| 122 | 122 |
| 123 protected: | 123 protected: |
| 124 virtual ~SetCandidatesFunction() {} | 124 virtual ~SetCandidatesFunction() {} |
| 125 | 125 |
| 126 // ExtensionFunction: | 126 // ExtensionFunction: |
| 127 virtual bool RunImpl() OVERRIDE; | 127 virtual bool RunImpl() OVERRIDE; |
| 128 | 128 |
| 129 private: | 129 private: |
| 130 bool ReadCandidates( | 130 bool ReadCandidates( |
| 131 ListValue* candidates, | 131 base::ListValue* candidates, |
| 132 std::vector<chromeos::InputMethodEngine::Candidate>* output); | 132 std::vector<chromeos::InputMethodEngine::Candidate>* output); |
| 133 }; | 133 }; |
| 134 | 134 |
| 135 class SetCursorPositionFunction : public SyncExtensionFunction { | 135 class SetCursorPositionFunction : public SyncExtensionFunction { |
| 136 public: | 136 public: |
| 137 DECLARE_EXTENSION_FUNCTION("input.ime.setCursorPosition", | 137 DECLARE_EXTENSION_FUNCTION("input.ime.setCursorPosition", |
| 138 INPUT_IME_SETCURSORPOSITION) | 138 INPUT_IME_SETCURSORPOSITION) |
| 139 | 139 |
| 140 protected: | 140 protected: |
| 141 virtual ~SetCursorPositionFunction() {} | 141 virtual ~SetCursorPositionFunction() {} |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 214 } | 214 } |
| 215 static const bool kServiceIsNULLWhileTesting = true; | 215 static const bool kServiceIsNULLWhileTesting = true; |
| 216 | 216 |
| 217 Profile* const profile_; | 217 Profile* const profile_; |
| 218 content::NotificationRegistrar registrar_; | 218 content::NotificationRegistrar registrar_; |
| 219 }; | 219 }; |
| 220 | 220 |
| 221 } // namespace extensions | 221 } // namespace extensions |
| 222 | 222 |
| 223 #endif // CHROME_BROWSER_EXTENSIONS_API_INPUT_IME_INPUT_IME_API_H_ | 223 #endif // CHROME_BROWSER_EXTENSIONS_API_INPUT_IME_INPUT_IME_API_H_ |
| OLD | NEW |