Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_INPUT_METHOD_INPUT_METHOD_ENGINE_H_ | |
| 6 #define CHROME_BROWSER_INPUT_METHOD_INPUT_METHOD_ENGINE_H_ | |
| 7 | |
| 8 #include <map> | |
|
Devlin
2016/01/11 21:48:34
Trim includes
Azure Wei
2016/01/13 02:28:10
Done.
| |
| 9 #include <string> | |
| 10 #include <vector> | |
| 11 #include "base/time/time.h" | |
| 12 #include "chrome/browser/input_method/input_method_engine_base.h" | |
| 13 #include "ui/base/ime/chromeos/input_method_descriptor.h" | |
| 14 #include "ui/base/ime/ime_engine_handler_interface.h" | |
| 15 #include "ui/base/ime/ime_engine_observer.h" | |
| 16 #include "url/gurl.h" | |
| 17 | |
| 18 class Profile; | |
| 19 | |
| 20 namespace ui { | |
| 21 struct CompositionText; | |
| 22 class IMEEngineHandlerInterface; | |
| 23 class IMEEngineObserver; | |
| 24 class KeyEvent; | |
| 25 } // namespace ui | |
| 26 | |
| 27 namespace input_method { | |
| 28 class InputMethodEngineBase; | |
| 29 | |
| 30 class InputMethodEngine : public InputMethodEngineBase { | |
| 31 public: | |
| 32 InputMethodEngine(); | |
| 33 | |
| 34 ~InputMethodEngine() override; | |
| 35 | |
| 36 // ui::IMEEngineHandlerInterface: | |
| 37 bool SendKeyEvents(int context_id, | |
| 38 const std::vector<KeyboardEvent>& events) override; | |
| 39 bool IsActive() const override; | |
| 40 | |
| 41 std::string GetExtensionId() const override; | |
| 42 | |
| 43 private: | |
| 44 // ::input_method::InputMethodEngineBase: | |
| 45 bool CheckProfile() const override; | |
|
Devlin
2016/01/11 21:48:34
DISALLOW_COPY_AND_ASSIGN
Azure Wei
2016/01/13 02:28:10
Done.
| |
| 46 }; | |
| 47 | |
| 48 } // namespace input_method | |
| 49 | |
| 50 #endif // CHROME_BROWSER_INPUT_METHOD_INPUT_METHOD_ENGINE_H_ | |
| OLD | NEW |