| 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 UI_BASE_IME_INPUT_METHOD_BASE_H_ | 5 #ifndef UI_BASE_IME_INPUT_METHOD_BASE_H_ |
| 6 #define UI_BASE_IME_INPUT_METHOD_BASE_H_ | 6 #define UI_BASE_IME_INPUT_METHOD_BASE_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "base/observer_list.h" | 10 #include "base/observer_list.h" |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 KeyboardCode key_code, | 83 KeyboardCode key_code, |
| 84 int flags) const; | 84 int flags) const; |
| 85 | 85 |
| 86 // Convenience method to notify all observers of TextInputClient changes. | 86 // Convenience method to notify all observers of TextInputClient changes. |
| 87 void NotifyTextInputStateChanged(const TextInputClient* client); | 87 void NotifyTextInputStateChanged(const TextInputClient* client); |
| 88 | 88 |
| 89 bool system_toplevel_window_focused() const { | 89 bool system_toplevel_window_focused() const { |
| 90 return system_toplevel_window_focused_; | 90 return system_toplevel_window_focused_; |
| 91 } | 91 } |
| 92 | 92 |
| 93 void NotifyCandidateWindowStateChanged(); |
| 94 |
| 93 private: | 95 private: |
| 94 void SetFocusedTextInputClientInternal(TextInputClient* client); | 96 void SetFocusedTextInputClientInternal(TextInputClient* client); |
| 95 | 97 |
| 96 internal::InputMethodDelegate* delegate_; | 98 internal::InputMethodDelegate* delegate_; |
| 97 TextInputClient* text_input_client_; | 99 TextInputClient* text_input_client_; |
| 98 | 100 |
| 99 ObserverList<InputMethodObserver> observer_list_; | 101 ObserverList<InputMethodObserver> observer_list_; |
| 100 | 102 |
| 101 bool system_toplevel_window_focused_; | 103 bool system_toplevel_window_focused_; |
| 102 | 104 |
| 105 bool is_candidate_popup_open_; |
| 106 |
| 103 DISALLOW_COPY_AND_ASSIGN(InputMethodBase); | 107 DISALLOW_COPY_AND_ASSIGN(InputMethodBase); |
| 104 }; | 108 }; |
| 105 | 109 |
| 106 } // namespace ui | 110 } // namespace ui |
| 107 | 111 |
| 108 #endif // UI_BASE_IME_INPUT_METHOD_BASE_H_ | 112 #endif // UI_BASE_IME_INPUT_METHOD_BASE_H_ |
| OLD | NEW |