| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 UI_BASE_IME_INPUT_METHOD_TSF_H_ | 5 #ifndef UI_BASE_IME_INPUT_METHOD_TSF_H_ |
| 6 #define UI_BASE_IME_INPUT_METHOD_TSF_H_ | 6 #define UI_BASE_IME_INPUT_METHOD_TSF_H_ |
| 7 | 7 |
| 8 #include <windows.h> | 8 #include <windows.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 virtual void OnCaretBoundsChanged(const TextInputClient* client) OVERRIDE; | 32 virtual void OnCaretBoundsChanged(const TextInputClient* client) OVERRIDE; |
| 33 virtual void CancelComposition(const TextInputClient* client) OVERRIDE; | 33 virtual void CancelComposition(const TextInputClient* client) OVERRIDE; |
| 34 virtual void DetachTextInputClient(TextInputClient* client) OVERRIDE; | 34 virtual void DetachTextInputClient(TextInputClient* client) OVERRIDE; |
| 35 virtual bool IsCandidatePopupOpen() const OVERRIDE; | 35 virtual bool IsCandidatePopupOpen() const OVERRIDE; |
| 36 | 36 |
| 37 // Overridden from InputMethodBase: | 37 // Overridden from InputMethodBase: |
| 38 virtual void OnWillChangeFocusedClient(TextInputClient* focused_before, | 38 virtual void OnWillChangeFocusedClient(TextInputClient* focused_before, |
| 39 TextInputClient* focused) OVERRIDE; | 39 TextInputClient* focused) OVERRIDE; |
| 40 virtual void OnDidChangeFocusedClient(TextInputClient* focused_before, | 40 virtual void OnDidChangeFocusedClient(TextInputClient* focused_before, |
| 41 TextInputClient* focused) OVERRIDE; | 41 TextInputClient* focused) OVERRIDE; |
| 42 | |
| 43 private: | 42 private: |
| 44 class TSFEventObserver; | 43 class TSFEventObserver; |
| 45 | 44 |
| 46 // Asks the client to confirm current composition text. | 45 // Asks the client to confirm current composition text. |
| 47 void ConfirmCompositionText(); | 46 void ConfirmCompositionText(); |
| 48 | 47 |
| 49 // TSF event router and observer. | 48 // TSF event router and observer. |
| 50 scoped_ptr<TSFEventObserver> tsf_event_observer_; | 49 scoped_ptr<TSFEventObserver> tsf_event_observer_; |
| 51 scoped_ptr<TSFEventRouter> tsf_event_router_; | 50 scoped_ptr<TSFEventRouter> tsf_event_router_; |
| 52 | 51 |
| 53 DISALLOW_COPY_AND_ASSIGN(InputMethodTSF); | 52 DISALLOW_COPY_AND_ASSIGN(InputMethodTSF); |
| 54 }; | 53 }; |
| 55 | 54 |
| 56 } // namespace ui | 55 } // namespace ui |
| 57 | 56 |
| 58 #endif // UI_BASE_IME_INPUT_METHOD_TSF_H_ | 57 #endif // UI_BASE_IME_INPUT_METHOD_TSF_H_ |
| OLD | NEW |