OLD | NEW |
---|---|
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 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 COMPONENTS_ARC_IME_ARC_IME_SERVICE_H_ | 5 #ifndef COMPONENTS_ARC_IME_ARC_IME_SERVICE_H_ |
6 #define COMPONENTS_ARC_IME_ARC_IME_SERVICE_H_ | 6 #define COMPONENTS_ARC_IME_ARC_IME_SERVICE_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
63 aura::Window* lost_focus) override; | 63 aura::Window* lost_focus) override; |
64 | 64 |
65 // Overridden from ArcImeBridge::Delegate: | 65 // Overridden from ArcImeBridge::Delegate: |
66 void OnTextInputTypeChanged(ui::TextInputType type) override; | 66 void OnTextInputTypeChanged(ui::TextInputType type) override; |
67 void OnCursorRectChanged(const gfx::Rect& rect) override; | 67 void OnCursorRectChanged(const gfx::Rect& rect) override; |
68 void OnCancelComposition() override; | 68 void OnCancelComposition() override; |
69 void ShowImeIfNeeded() override; | 69 void ShowImeIfNeeded() override; |
70 | 70 |
71 // Overridden from keyboard::KeyboardControllerObserver. | 71 // Overridden from keyboard::KeyboardControllerObserver. |
72 void OnKeyboardBoundsChanging(const gfx::Rect& rect) override; | 72 void OnKeyboardBoundsChanging(const gfx::Rect& rect) override; |
73 void OnKeyboardClosed() override {} | |
jochen (gone - plz use gerrit)
2016/07/18 11:32:02
please move the implementation to the .cc file her
Azure Wei
2016/09/14 07:09:27
Done.
| |
73 | 74 |
74 // Overridden from ui::TextInputClient: | 75 // Overridden from ui::TextInputClient: |
75 void SetCompositionText(const ui::CompositionText& composition) override; | 76 void SetCompositionText(const ui::CompositionText& composition) override; |
76 void ConfirmCompositionText() override; | 77 void ConfirmCompositionText() override; |
77 void ClearCompositionText() override; | 78 void ClearCompositionText() override; |
78 void InsertText(const base::string16& text) override; | 79 void InsertText(const base::string16& text) override; |
79 void InsertChar(const ui::KeyEvent& event) override; | 80 void InsertChar(const ui::KeyEvent& event) override; |
80 ui::TextInputType GetTextInputType() const override; | 81 ui::TextInputType GetTextInputType() const override; |
81 gfx::Rect GetCaretBounds() const override; | 82 gfx::Rect GetCaretBounds() const override; |
82 | 83 |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
121 keyboard::KeyboardController* keyboard_controller_; | 122 keyboard::KeyboardController* keyboard_controller_; |
122 | 123 |
123 ui::InputMethod* test_input_method_; | 124 ui::InputMethod* test_input_method_; |
124 | 125 |
125 DISALLOW_COPY_AND_ASSIGN(ArcImeService); | 126 DISALLOW_COPY_AND_ASSIGN(ArcImeService); |
126 }; | 127 }; |
127 | 128 |
128 } // namespace arc | 129 } // namespace arc |
129 | 130 |
130 #endif // COMPONENTS_ARC_IME_ARC_IME_SERVICE_H_ | 131 #endif // COMPONENTS_ARC_IME_ARC_IME_SERVICE_H_ |
OLD | NEW |