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

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_base.cc

Issue 2613263002: Forward ImeCancelComposition calls for OOPIFs to ImeAdapterAndroid (Closed)
Patch Set: Rebased Created 3 years, 11 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 | « content/browser/renderer_host/render_widget_host_view_android.cc ('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 "content/browser/renderer_host/render_widget_host_view_base.h" 5 #include "content/browser/renderer_host/render_widget_host_view_base.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "build/build_config.h" 8 #include "build/build_config.h"
9 #include "content/browser/accessibility/browser_accessibility_manager.h" 9 #include "content/browser/accessibility/browser_accessibility_manager.h"
10 #include "content/browser/gpu/gpu_data_manager_impl.h" 10 #include "content/browser/gpu/gpu_data_manager_impl.h"
(...skipping 460 matching lines...) Expand 10 before | Expand all | Expand 10 after
471 return false; 471 return false;
472 } 472 }
473 473
474 void RenderWidgetHostViewBase::TextInputStateChanged( 474 void RenderWidgetHostViewBase::TextInputStateChanged(
475 const TextInputState& text_input_state) { 475 const TextInputState& text_input_state) {
476 if (GetTextInputManager()) 476 if (GetTextInputManager())
477 GetTextInputManager()->UpdateTextInputState(this, text_input_state); 477 GetTextInputManager()->UpdateTextInputState(this, text_input_state);
478 } 478 }
479 479
480 void RenderWidgetHostViewBase::ImeCancelComposition() { 480 void RenderWidgetHostViewBase::ImeCancelComposition() {
481 // TODO(ekaramad): Use TextInputManager code paths for IME on other platforms.
482 #if !defined(OS_ANDROID)
483 if (GetTextInputManager()) 481 if (GetTextInputManager())
484 GetTextInputManager()->ImeCancelComposition(this); 482 GetTextInputManager()->ImeCancelComposition(this);
485 #endif
486 } 483 }
487 484
488 void RenderWidgetHostViewBase::ImeCompositionRangeChanged( 485 void RenderWidgetHostViewBase::ImeCompositionRangeChanged(
489 const gfx::Range& range, 486 const gfx::Range& range,
490 const std::vector<gfx::Rect>& character_bounds) { 487 const std::vector<gfx::Rect>& character_bounds) {
491 if (GetTextInputManager()) { 488 if (GetTextInputManager()) {
492 GetTextInputManager()->ImeCompositionRangeChanged(this, range, 489 GetTextInputManager()->ImeCompositionRangeChanged(this, range,
493 character_bounds); 490 character_bounds);
494 } 491 }
495 } 492 }
(...skipping 28 matching lines...) Expand all
524 521
525 bool RenderWidgetHostViewBase::IsChildFrameForTesting() const { 522 bool RenderWidgetHostViewBase::IsChildFrameForTesting() const {
526 return false; 523 return false;
527 } 524 }
528 525
529 cc::SurfaceId RenderWidgetHostViewBase::SurfaceIdForTesting() const { 526 cc::SurfaceId RenderWidgetHostViewBase::SurfaceIdForTesting() const {
530 return cc::SurfaceId(); 527 return cc::SurfaceId();
531 } 528 }
532 529
533 } // namespace content 530 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_android.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698