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

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

Issue 302293003: MacViews: Extend TextInputClient protocol with support for editing commands. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase, fixes for ben Created 6 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « ui/views/ime/input_method_bridge.h ('k') | no next file » | 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/rect.h" 10 #include "ui/gfx/rect.h"
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW
« no previous file with comments | « ui/views/ime/input_method_bridge.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698