| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |