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

Side by Side Diff: content/browser/frame_host/render_widget_host_view_child_frame.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: Removed |selection_anchor_| and |selection_focus_| from RenderWidgetHostViewAura. 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/frame_host/render_widget_host_view_child_frame.h" 5 #include "content/browser/frame_host/render_widget_host_view_child_frame.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <utility> 8 #include <utility>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after
292 } 292 }
293 293
294 void RenderWidgetHostViewChildFrame::SelectionChanged( 294 void RenderWidgetHostViewChildFrame::SelectionChanged(
295 const base::string16& text, 295 const base::string16& text,
296 size_t offset, 296 size_t offset,
297 const gfx::Range& range) { 297 const gfx::Range& range) {
298 } 298 }
299 299
300 void RenderWidgetHostViewChildFrame::SelectionBoundsChanged( 300 void RenderWidgetHostViewChildFrame::SelectionBoundsChanged(
301 const ViewHostMsg_SelectionBounds_Params& params) { 301 const ViewHostMsg_SelectionBounds_Params& params) {
302 ViewHostMsg_SelectionBounds_Params transformed_params = params;
303 transformed_params.anchor_rect.set_origin(
304 TransformPointToRootCoordSpace(params.anchor_rect.origin()));
305 transformed_params.focus_rect.set_origin(
306 TransformPointToRootCoordSpace(params.focus_rect.origin()));
307 RenderWidgetHostViewBase::SelectionBoundsChanged(transformed_params);
302 } 308 }
303 309
304 void RenderWidgetHostViewChildFrame::LockCompositingSurface() { 310 void RenderWidgetHostViewChildFrame::LockCompositingSurface() {
305 NOTIMPLEMENTED(); 311 NOTIMPLEMENTED();
306 } 312 }
307 313
308 void RenderWidgetHostViewChildFrame::UnlockCompositingSurface() { 314 void RenderWidgetHostViewChildFrame::UnlockCompositingSurface() {
309 NOTIMPLEMENTED(); 315 NOTIMPLEMENTED();
310 } 316 }
311 317
(...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after
688 694
689 bool RenderWidgetHostViewChildFrame::IsChildFrameForTesting() const { 695 bool RenderWidgetHostViewChildFrame::IsChildFrameForTesting() const {
690 return true; 696 return true;
691 } 697 }
692 698
693 cc::SurfaceId RenderWidgetHostViewChildFrame::SurfaceIdForTesting() const { 699 cc::SurfaceId RenderWidgetHostViewChildFrame::SurfaceIdForTesting() const {
694 return surface_id_; 700 return surface_id_;
695 }; 701 };
696 702
697 } // namespace content 703 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698