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

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

Issue 2057803002: Tracking SelectionBounds for all RenderWidgets on the Browser Side (Aura Only) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressing creis@'s comments Created 4 years, 5 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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 } 95 }
96 96
97 bool RenderWidgetHostViewBase::DoTopControlsShrinkBlinkSize() const { 97 bool RenderWidgetHostViewBase::DoTopControlsShrinkBlinkSize() const {
98 return false; 98 return false;
99 } 99 }
100 100
101 float RenderWidgetHostViewBase::GetTopControlsHeight() const { 101 float RenderWidgetHostViewBase::GetTopControlsHeight() const {
102 return 0.f; 102 return 0.f;
103 } 103 }
104 104
105 void RenderWidgetHostViewBase::SelectionBoundsChanged(
106 const ViewHostMsg_SelectionBounds_Params& params) {
107 if (GetTextInputManager())
108 GetTextInputManager()->SelectionBoundsChanged(this, params);
109 }
110
105 void RenderWidgetHostViewBase::SelectionChanged(const base::string16& text, 111 void RenderWidgetHostViewBase::SelectionChanged(const base::string16& text,
106 size_t offset, 112 size_t offset,
107 const gfx::Range& range) { 113 const gfx::Range& range) {
108 selection_text_ = text; 114 selection_text_ = text;
109 selection_text_offset_ = offset; 115 selection_text_offset_ = offset;
110 selection_range_.set_start(range.start()); 116 selection_range_.set_start(range.start());
111 selection_range_.set_end(range.end()); 117 selection_range_.set_end(range.end());
112 } 118 }
113 119
114 gfx::Size RenderWidgetHostViewBase::GetRequestedRendererSize() const { 120 gfx::Size RenderWidgetHostViewBase::GetRequestedRendererSize() const {
(...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after
448 454
449 bool RenderWidgetHostViewBase::IsChildFrameForTesting() const { 455 bool RenderWidgetHostViewBase::IsChildFrameForTesting() const {
450 return false; 456 return false;
451 } 457 }
452 458
453 cc::SurfaceId RenderWidgetHostViewBase::SurfaceIdForTesting() const { 459 cc::SurfaceId RenderWidgetHostViewBase::SurfaceIdForTesting() const {
454 return cc::SurfaceId(); 460 return cc::SurfaceId();
455 } 461 }
456 462
457 } // namespace content 463 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_base.h ('k') | content/browser/renderer_host/text_input_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698