Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(23)

Side by Side Diff: ui/views/ime/input_method_bridge.cc

Issue 782673002: MacViews: tryjobs for toolkit_views=1 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: latest crrev/901823002 Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ui/views/ime/input_method_bridge.h ('k') | ui/views/ime/mock_input_method.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/geometry/rect.h" 10 #include "ui/gfx/geometry/rect.h"
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 bool InputMethodBridge::HandleAsKeyEventOnly(const ui::KeyEvent& key_event) {
331 return false;
332 }
333
330 // Overridden from FocusChangeListener. 334 // Overridden from FocusChangeListener.
331 void InputMethodBridge::OnWillChangeFocus(View* focused_before, View* focused) { 335 void InputMethodBridge::OnWillChangeFocus(View* focused_before, View* focused) {
332 if (HasCompositionText()) { 336 if (HasCompositionText()) {
333 ConfirmCompositionText(); 337 ConfirmCompositionText();
334 CancelComposition(focused_before); 338 CancelComposition(focused_before);
335 } 339 }
336 } 340 }
337 341
338 void InputMethodBridge::OnDidChangeFocus(View* focused_before, View* focused) { 342 void InputMethodBridge::OnDidChangeFocus(View* focused_before, View* focused) {
339 DCHECK_EQ(GetFocusedView(), focused); 343 DCHECK_EQ(GetFocusedView(), focused);
340 OnTextInputTypeChanged(focused); 344 OnTextInputTypeChanged(focused);
341 OnCaretBoundsChanged(focused); 345 OnCaretBoundsChanged(focused);
342 } 346 }
343 347
344 ui::InputMethod* InputMethodBridge::GetHostInputMethod() const { 348 ui::InputMethod* InputMethodBridge::GetHostInputMethod() const {
345 return host_; 349 return host_;
346 } 350 }
347 351
348 352
349 } // namespace views 353 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/ime/input_method_bridge.h ('k') | ui/views/ime/mock_input_method.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698