| 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_base.h" | 5 #include "ui/views/ime/input_method_base.h" |
| 6 | 6 |
| 7 #include "ui/base/event.h" | 7 #include "ui/base/events/event.h" |
| 8 #include "ui/base/ime/text_input_client.h" | 8 #include "ui/base/ime/text_input_client.h" |
| 9 #include "ui/views/view.h" | 9 #include "ui/views/view.h" |
| 10 #include "ui/views/widget/widget.h" | 10 #include "ui/views/widget/widget.h" |
| 11 | 11 |
| 12 #include "base/logging.h" | 12 #include "base/logging.h" |
| 13 | 13 |
| 14 namespace views { | 14 namespace views { |
| 15 | 15 |
| 16 InputMethodBase::InputMethodBase() | 16 InputMethodBase::InputMethodBase() |
| 17 : delegate_(NULL), | 17 : delegate_(NULL), |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 *rect = GetFocusedView()->ConvertRectToWidget(client->GetCaretBounds()); | 112 *rect = GetFocusedView()->ConvertRectToWidget(client->GetCaretBounds()); |
| 113 | 113 |
| 114 // We need to do coordinate conversion if the focused view is inside a child | 114 // We need to do coordinate conversion if the focused view is inside a child |
| 115 // Widget. | 115 // Widget. |
| 116 if (GetFocusedView()->GetWidget() != widget_) | 116 if (GetFocusedView()->GetWidget() != widget_) |
| 117 return Widget::ConvertRect(GetFocusedView()->GetWidget(), widget_, rect); | 117 return Widget::ConvertRect(GetFocusedView()->GetWidget(), widget_, rect); |
| 118 return true; | 118 return true; |
| 119 } | 119 } |
| 120 | 120 |
| 121 } // namespace views | 121 } // namespace views |
| OLD | NEW |