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/rect.h" |
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
320 void InputMethodBridge::OnCandidateWindowHidden() { | 320 void InputMethodBridge::OnCandidateWindowHidden() { |
321 } | 321 } |
322 | 322 |
323 bool InputMethodBridge::IsEditingCommandEnabled(int command_id) { | 323 bool InputMethodBridge::IsEditingCommandEnabled(int command_id) { |
324 return false; | 324 return false; |
325 } | 325 } |
326 | 326 |
327 void InputMethodBridge::ExecuteEditingCommand(int command_id) { | 327 void InputMethodBridge::ExecuteEditingCommand(int command_id) { |
328 } | 328 } |
329 | 329 |
| 330 void InputMethodBridge::OnKeyboardBoundsUnchanged() { |
| 331 } |
| 332 |
330 // Overridden from FocusChangeListener. | 333 // Overridden from FocusChangeListener. |
331 void InputMethodBridge::OnWillChangeFocus(View* focused_before, View* focused) { | 334 void InputMethodBridge::OnWillChangeFocus(View* focused_before, View* focused) { |
332 if (HasCompositionText()) { | 335 if (HasCompositionText()) { |
333 ConfirmCompositionText(); | 336 ConfirmCompositionText(); |
334 CancelComposition(focused_before); | 337 CancelComposition(focused_before); |
335 } | 338 } |
336 } | 339 } |
337 | 340 |
338 void InputMethodBridge::OnDidChangeFocus(View* focused_before, View* focused) { | 341 void InputMethodBridge::OnDidChangeFocus(View* focused_before, View* focused) { |
339 DCHECK_EQ(GetFocusedView(), focused); | 342 DCHECK_EQ(GetFocusedView(), focused); |
340 OnTextInputTypeChanged(focused); | 343 OnTextInputTypeChanged(focused); |
341 OnCaretBoundsChanged(focused); | 344 OnCaretBoundsChanged(focused); |
342 } | 345 } |
343 | 346 |
344 ui::InputMethod* InputMethodBridge::GetHostInputMethod() const { | 347 ui::InputMethod* InputMethodBridge::GetHostInputMethod() const { |
345 return host_; | 348 return host_; |
346 } | 349 } |
347 | 350 |
348 | 351 |
349 } // namespace views | 352 } // namespace views |
OLD | NEW |