| 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 466 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 477 | 477 |
| 478 void RenderWidgetHostViewBase::ImeCompositionRangeChanged( | 478 void RenderWidgetHostViewBase::ImeCompositionRangeChanged( |
| 479 const gfx::Range& range, | 479 const gfx::Range& range, |
| 480 const std::vector<gfx::Rect>& character_bounds) { | 480 const std::vector<gfx::Rect>& character_bounds) { |
| 481 if (GetTextInputManager()) { | 481 if (GetTextInputManager()) { |
| 482 GetTextInputManager()->ImeCompositionRangeChanged(this, range, | 482 GetTextInputManager()->ImeCompositionRangeChanged(this, range, |
| 483 character_bounds); | 483 character_bounds); |
| 484 } | 484 } |
| 485 } | 485 } |
| 486 | 486 |
| 487 void RenderWidgetHostViewBase::ShowTextSuggestionMenu( |
| 488 const std::vector<blink::WebTextSuggestionInfo>& suggestionInfos) {} |
| 489 |
| 487 TextInputManager* RenderWidgetHostViewBase::GetTextInputManager() { | 490 TextInputManager* RenderWidgetHostViewBase::GetTextInputManager() { |
| 488 if (text_input_manager_) | 491 if (text_input_manager_) |
| 489 return text_input_manager_; | 492 return text_input_manager_; |
| 490 | 493 |
| 491 RenderWidgetHostImpl* host = | 494 RenderWidgetHostImpl* host = |
| 492 RenderWidgetHostImpl::From(GetRenderWidgetHost()); | 495 RenderWidgetHostImpl::From(GetRenderWidgetHost()); |
| 493 if (!host || !host->delegate()) | 496 if (!host || !host->delegate()) |
| 494 return nullptr; | 497 return nullptr; |
| 495 | 498 |
| 496 // This RWHV needs to be registered with the TextInputManager so that the | 499 // This RWHV needs to be registered with the TextInputManager so that the |
| (...skipping 17 matching lines...) Expand all Loading... |
| 514 | 517 |
| 515 bool RenderWidgetHostViewBase::IsChildFrameForTesting() const { | 518 bool RenderWidgetHostViewBase::IsChildFrameForTesting() const { |
| 516 return false; | 519 return false; |
| 517 } | 520 } |
| 518 | 521 |
| 519 cc::SurfaceId RenderWidgetHostViewBase::SurfaceIdForTesting() const { | 522 cc::SurfaceId RenderWidgetHostViewBase::SurfaceIdForTesting() const { |
| 520 return cc::SurfaceId(); | 523 return cc::SurfaceId(); |
| 521 } | 524 } |
| 522 | 525 |
| 523 } // namespace content | 526 } // namespace content |
| OLD | NEW |