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 453 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
464 | 464 |
465 void RenderWidgetHostViewBase::ImeCompositionRangeChanged( | 465 void RenderWidgetHostViewBase::ImeCompositionRangeChanged( |
466 const gfx::Range& range, | 466 const gfx::Range& range, |
467 const std::vector<gfx::Rect>& character_bounds) { | 467 const std::vector<gfx::Rect>& character_bounds) { |
468 if (GetTextInputManager()) { | 468 if (GetTextInputManager()) { |
469 GetTextInputManager()->ImeCompositionRangeChanged(this, range, | 469 GetTextInputManager()->ImeCompositionRangeChanged(this, range, |
470 character_bounds); | 470 character_bounds); |
471 } | 471 } |
472 } | 472 } |
473 | 473 |
| 474 void RenderWidgetHostViewBase::ShowTextSuggestionMenu( |
| 475 const std::vector<blink::WebTextSuggestionInfo>& suggestionInfos) {} |
| 476 |
474 TextInputManager* RenderWidgetHostViewBase::GetTextInputManager() { | 477 TextInputManager* RenderWidgetHostViewBase::GetTextInputManager() { |
475 if (text_input_manager_) | 478 if (text_input_manager_) |
476 return text_input_manager_; | 479 return text_input_manager_; |
477 | 480 |
478 RenderWidgetHostImpl* host = | 481 RenderWidgetHostImpl* host = |
479 RenderWidgetHostImpl::From(GetRenderWidgetHost()); | 482 RenderWidgetHostImpl::From(GetRenderWidgetHost()); |
480 if (!host || !host->delegate()) | 483 if (!host || !host->delegate()) |
481 return nullptr; | 484 return nullptr; |
482 | 485 |
483 // This RWHV needs to be registered with the TextInputManager so that the | 486 // This RWHV needs to be registered with the TextInputManager so that the |
(...skipping 17 matching lines...) Expand all Loading... |
501 | 504 |
502 bool RenderWidgetHostViewBase::IsChildFrameForTesting() const { | 505 bool RenderWidgetHostViewBase::IsChildFrameForTesting() const { |
503 return false; | 506 return false; |
504 } | 507 } |
505 | 508 |
506 cc::SurfaceId RenderWidgetHostViewBase::SurfaceIdForTesting() const { | 509 cc::SurfaceId RenderWidgetHostViewBase::SurfaceIdForTesting() const { |
507 return cc::SurfaceId(); | 510 return cc::SurfaceId(); |
508 } | 511 } |
509 | 512 |
510 } // namespace content | 513 } // namespace content |
OLD | NEW |