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

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

Issue 2354793003: Browser Side TextInputState Tracking for Android (Closed)
Patch Set: Rebased + Removed unused Forward Dec Created 4 years 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
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 451 matching lines...) Expand 10 before | Expand all | Expand 10 after
462 bool RenderWidgetHostViewBase::IsRenderWidgetHostViewGuest() { 462 bool RenderWidgetHostViewBase::IsRenderWidgetHostViewGuest() {
463 return false; 463 return false;
464 } 464 }
465 465
466 bool RenderWidgetHostViewBase::IsRenderWidgetHostViewChildFrame() { 466 bool RenderWidgetHostViewBase::IsRenderWidgetHostViewChildFrame() {
467 return false; 467 return false;
468 } 468 }
469 469
470 void RenderWidgetHostViewBase::TextInputStateChanged( 470 void RenderWidgetHostViewBase::TextInputStateChanged(
471 const TextInputState& text_input_state) { 471 const TextInputState& text_input_state) {
472 // TODO(ekaramad): Use TextInputManager code paths for IME on other platforms.
473 #if !defined(OS_ANDROID)
474 if (GetTextInputManager()) 472 if (GetTextInputManager())
475 GetTextInputManager()->UpdateTextInputState(this, text_input_state); 473 GetTextInputManager()->UpdateTextInputState(this, text_input_state);
476 #endif
477 } 474 }
478 475
479 void RenderWidgetHostViewBase::ImeCancelComposition() { 476 void RenderWidgetHostViewBase::ImeCancelComposition() {
480 // TODO(ekaramad): Use TextInputManager code paths for IME on other platforms. 477 // TODO(ekaramad): Use TextInputManager code paths for IME on other platforms.
481 #if !defined(OS_ANDROID) 478 #if !defined(OS_ANDROID)
482 if (GetTextInputManager()) 479 if (GetTextInputManager())
483 GetTextInputManager()->ImeCancelComposition(this); 480 GetTextInputManager()->ImeCancelComposition(this);
484 #endif 481 #endif
485 } 482 }
486 483
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
526 523
527 bool RenderWidgetHostViewBase::IsChildFrameForTesting() const { 524 bool RenderWidgetHostViewBase::IsChildFrameForTesting() const {
528 return false; 525 return false;
529 } 526 }
530 527
531 cc::SurfaceId RenderWidgetHostViewBase::SurfaceIdForTesting() const { 528 cc::SurfaceId RenderWidgetHostViewBase::SurfaceIdForTesting() const {
532 return cc::SurfaceId(); 529 return cc::SurfaceId();
533 } 530 }
534 531
535 } // namespace content 532 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_android.cc ('k') | content/browser/renderer_host/text_input_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698