Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(122)

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_base.cc

Issue 2650113004: [WIP] Add support for Android SuggestionSpans when editing text (Closed)
Patch Set: Remove logging statements, fix copyright years in new files Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698