| 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/ime/input_method.h" | 7 #include "ui/base/ime/input_method.h" |
| 8 #include "ui/base/ime/input_method_observer.h" | 8 #include "ui/base/ime/input_method_observer.h" |
| 9 #include "ui/events/event.h" | 9 #include "ui/events/event.h" |
| 10 #include "ui/gfx/rect.h" | 10 #include "ui/gfx/geometry/rect.h" |
| 11 #include "ui/views/view.h" | 11 #include "ui/views/view.h" |
| 12 #include "ui/views/widget/widget.h" | 12 #include "ui/views/widget/widget.h" |
| 13 | 13 |
| 14 namespace views { | 14 namespace views { |
| 15 | 15 |
| 16 // InputMethodBridge::HostObserver class --------------------------------------- | 16 // InputMethodBridge::HostObserver class --------------------------------------- |
| 17 | 17 |
| 18 // An observer class for observing the host input method. When the host input | 18 // An observer class for observing the host input method. When the host input |
| 19 // method is destroyed, it will null out the |host_| field on the | 19 // method is destroyed, it will null out the |host_| field on the |
| 20 // InputMethodBridge object. | 20 // InputMethodBridge object. |
| (...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 340 OnTextInputTypeChanged(focused); | 340 OnTextInputTypeChanged(focused); |
| 341 OnCaretBoundsChanged(focused); | 341 OnCaretBoundsChanged(focused); |
| 342 } | 342 } |
| 343 | 343 |
| 344 ui::InputMethod* InputMethodBridge::GetHostInputMethod() const { | 344 ui::InputMethod* InputMethodBridge::GetHostInputMethod() const { |
| 345 return host_; | 345 return host_; |
| 346 } | 346 } |
| 347 | 347 |
| 348 | 348 |
| 349 } // namespace views | 349 } // namespace views |
| OLD | NEW |