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

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

Issue 2166573003: Track TextInputState from multiple RenderWidgets in TextInputManager (Mac) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressing creis@'s comments Created 4 years, 4 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 | « chrome/test/BUILD.gn ('k') | content/browser/renderer_host/render_widget_host_view_mac.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 "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 413 matching lines...) Expand 10 before | Expand all | Expand 10 after
424 void RenderWidgetHostViewBase::TransformPointToLocalCoordSpace( 424 void RenderWidgetHostViewBase::TransformPointToLocalCoordSpace(
425 const gfx::Point& point, 425 const gfx::Point& point,
426 const cc::SurfaceId& original_surface, 426 const cc::SurfaceId& original_surface,
427 gfx::Point* transformed_point) { 427 gfx::Point* transformed_point) {
428 *transformed_point = point; 428 *transformed_point = point;
429 } 429 }
430 430
431 void RenderWidgetHostViewBase::TextInputStateChanged( 431 void RenderWidgetHostViewBase::TextInputStateChanged(
432 const TextInputState& text_input_state) { 432 const TextInputState& text_input_state) {
433 // TODO(ekaramad): Use TextInputManager code paths for IME on other platforms. 433 // TODO(ekaramad): Use TextInputManager code paths for IME on other platforms.
434 #if defined(USE_AURA) 434 #if !defined(OS_ANDROID)
435 if (GetTextInputManager()) 435 if (GetTextInputManager())
436 GetTextInputManager()->UpdateTextInputState(this, text_input_state); 436 GetTextInputManager()->UpdateTextInputState(this, text_input_state);
437 #endif 437 #endif
438 } 438 }
439 439
440 void RenderWidgetHostViewBase::ImeCancelComposition() { 440 void RenderWidgetHostViewBase::ImeCancelComposition() {
441 // TODO(ekaramad): Use TextInputManager code paths for IME on other platforms. 441 // TODO(ekaramad): Use TextInputManager code paths for IME on other platforms.
442 #if defined(USE_AURA) 442 #if defined(USE_AURA)
443 if (GetTextInputManager()) 443 if (GetTextInputManager())
444 GetTextInputManager()->ImeCancelComposition(this); 444 GetTextInputManager()->ImeCancelComposition(this);
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
487 487
488 bool RenderWidgetHostViewBase::IsChildFrameForTesting() const { 488 bool RenderWidgetHostViewBase::IsChildFrameForTesting() const {
489 return false; 489 return false;
490 } 490 }
491 491
492 cc::SurfaceId RenderWidgetHostViewBase::SurfaceIdForTesting() const { 492 cc::SurfaceId RenderWidgetHostViewBase::SurfaceIdForTesting() const {
493 return cc::SurfaceId(); 493 return cc::SurfaceId();
494 } 494 }
495 495
496 } // namespace content 496 } // namespace content
OLDNEW
« no previous file with comments | « chrome/test/BUILD.gn ('k') | content/browser/renderer_host/render_widget_host_view_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698