| 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 #include "ui/views/ime/input_method_bridge.h" | 5 #include "ui/views/ime/input_method_bridge.h" |
| 6 | 6 |
| 7 #include "ui/base/event.h" | 7 #include "ui/base/events/event.h" |
| 8 #include "ui/base/ime/input_method.h" | 8 #include "ui/base/ime/input_method.h" |
| 9 #include "ui/gfx/rect.h" | 9 #include "ui/gfx/rect.h" |
| 10 #include "ui/views/view.h" | 10 #include "ui/views/view.h" |
| 11 #include "ui/views/widget/widget.h" | 11 #include "ui/views/widget/widget.h" |
| 12 | 12 |
| 13 namespace views { | 13 namespace views { |
| 14 | 14 |
| 15 InputMethodBridge::InputMethodBridge(internal::InputMethodDelegate* delegate, | 15 InputMethodBridge::InputMethodBridge(internal::InputMethodDelegate* delegate, |
| 16 ui::InputMethod* host) | 16 ui::InputMethod* host) |
| 17 : host_(host), | 17 : host_(host), |
| (...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 217 void InputMethodBridge::OnWillChangeFocus(View* focused_before, View* focused) { | 217 void InputMethodBridge::OnWillChangeFocus(View* focused_before, View* focused) { |
| 218 ConfirmCompositionText(); | 218 ConfirmCompositionText(); |
| 219 } | 219 } |
| 220 | 220 |
| 221 void InputMethodBridge::OnDidChangeFocus(View* focused_before, View* focused) { | 221 void InputMethodBridge::OnDidChangeFocus(View* focused_before, View* focused) { |
| 222 OnTextInputTypeChanged(GetFocusedView()); | 222 OnTextInputTypeChanged(GetFocusedView()); |
| 223 OnCaretBoundsChanged(GetFocusedView()); | 223 OnCaretBoundsChanged(GetFocusedView()); |
| 224 } | 224 } |
| 225 | 225 |
| 226 } // namespace views | 226 } // namespace views |
| OLD | NEW |