| 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 447 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 458 bool RenderWidgetHostViewBase::IsRenderWidgetHostViewGuest() { | 458 bool RenderWidgetHostViewBase::IsRenderWidgetHostViewGuest() { |
| 459 return false; | 459 return false; |
| 460 } | 460 } |
| 461 | 461 |
| 462 bool RenderWidgetHostViewBase::IsRenderWidgetHostViewChildFrame() { | 462 bool RenderWidgetHostViewBase::IsRenderWidgetHostViewChildFrame() { |
| 463 return false; | 463 return false; |
| 464 } | 464 } |
| 465 | 465 |
| 466 void RenderWidgetHostViewBase::TextInputStateChanged( | 466 void RenderWidgetHostViewBase::TextInputStateChanged( |
| 467 const TextInputState& text_input_state) { | 467 const TextInputState& text_input_state) { |
| 468 // TODO(ekaramad): Use TextInputManager code paths for IME on other platforms. | |
| 469 #if !defined(OS_ANDROID) | |
| 470 if (GetTextInputManager()) | 468 if (GetTextInputManager()) |
| 471 GetTextInputManager()->UpdateTextInputState(this, text_input_state); | 469 GetTextInputManager()->UpdateTextInputState(this, text_input_state); |
| 472 #endif | |
| 473 } | 470 } |
| 474 | 471 |
| 475 void RenderWidgetHostViewBase::ImeCancelComposition() { | 472 void RenderWidgetHostViewBase::ImeCancelComposition() { |
| 476 // TODO(ekaramad): Use TextInputManager code paths for IME on other platforms. | 473 // TODO(ekaramad): Use TextInputManager code paths for IME on other platforms. |
| 477 #if !defined(OS_ANDROID) | 474 #if !defined(OS_ANDROID) |
| 478 if (GetTextInputManager()) | 475 if (GetTextInputManager()) |
| 479 GetTextInputManager()->ImeCancelComposition(this); | 476 GetTextInputManager()->ImeCancelComposition(this); |
| 480 #endif | 477 #endif |
| 481 } | 478 } |
| 482 | 479 |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 522 | 519 |
| 523 bool RenderWidgetHostViewBase::IsChildFrameForTesting() const { | 520 bool RenderWidgetHostViewBase::IsChildFrameForTesting() const { |
| 524 return false; | 521 return false; |
| 525 } | 522 } |
| 526 | 523 |
| 527 cc::SurfaceId RenderWidgetHostViewBase::SurfaceIdForTesting() const { | 524 cc::SurfaceId RenderWidgetHostViewBase::SurfaceIdForTesting() const { |
| 528 return cc::SurfaceId(); | 525 return cc::SurfaceId(); |
| 529 } | 526 } |
| 530 | 527 |
| 531 } // namespace content | 528 } // namespace content |
| OLD | NEW |