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