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 478 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
489 | 489 |
490 void RenderWidgetHostViewBase::ImeCompositionRangeChanged( | 490 void RenderWidgetHostViewBase::ImeCompositionRangeChanged( |
491 const gfx::Range& range, | 491 const gfx::Range& range, |
492 const std::vector<gfx::Rect>& character_bounds) { | 492 const std::vector<gfx::Rect>& character_bounds) { |
493 if (GetTextInputManager()) { | 493 if (GetTextInputManager()) { |
494 GetTextInputManager()->ImeCompositionRangeChanged(this, range, | 494 GetTextInputManager()->ImeCompositionRangeChanged(this, range, |
495 character_bounds); | 495 character_bounds); |
496 } | 496 } |
497 } | 497 } |
498 | 498 |
| 499 void RenderWidgetHostViewBase::ShowTextSuggestionMenu( |
| 500 const std::vector<blink::WebTextSuggestionInfo>& suggestionInfos) {} |
| 501 |
499 TextInputManager* RenderWidgetHostViewBase::GetTextInputManager() { | 502 TextInputManager* RenderWidgetHostViewBase::GetTextInputManager() { |
500 if (text_input_manager_) | 503 if (text_input_manager_) |
501 return text_input_manager_; | 504 return text_input_manager_; |
502 | 505 |
503 RenderWidgetHostImpl* host = | 506 RenderWidgetHostImpl* host = |
504 RenderWidgetHostImpl::From(GetRenderWidgetHost()); | 507 RenderWidgetHostImpl::From(GetRenderWidgetHost()); |
505 if (!host || !host->delegate()) | 508 if (!host || !host->delegate()) |
506 return nullptr; | 509 return nullptr; |
507 | 510 |
508 // This RWHV needs to be registered with the TextInputManager so that the | 511 // This RWHV needs to be registered with the TextInputManager so that the |
(...skipping 17 matching lines...) Expand all Loading... |
526 | 529 |
527 bool RenderWidgetHostViewBase::IsChildFrameForTesting() const { | 530 bool RenderWidgetHostViewBase::IsChildFrameForTesting() const { |
528 return false; | 531 return false; |
529 } | 532 } |
530 | 533 |
531 cc::SurfaceId RenderWidgetHostViewBase::SurfaceIdForTesting() const { | 534 cc::SurfaceId RenderWidgetHostViewBase::SurfaceIdForTesting() const { |
532 return cc::SurfaceId(); | 535 return cc::SurfaceId(); |
533 } | 536 } |
534 | 537 |
535 } // namespace content | 538 } // namespace content |
OLD | NEW |