| OLD | NEW |
| 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 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 296 } | 296 } |
| 297 | 297 |
| 298 void RenderWidgetHostViewChildFrame::SelectionChanged( | 298 void RenderWidgetHostViewChildFrame::SelectionChanged( |
| 299 const base::string16& text, | 299 const base::string16& text, |
| 300 size_t offset, | 300 size_t offset, |
| 301 const gfx::Range& range) { | 301 const gfx::Range& range) { |
| 302 } | 302 } |
| 303 | 303 |
| 304 void RenderWidgetHostViewChildFrame::SelectionBoundsChanged( | 304 void RenderWidgetHostViewChildFrame::SelectionBoundsChanged( |
| 305 const ViewHostMsg_SelectionBounds_Params& params) { | 305 const ViewHostMsg_SelectionBounds_Params& params) { |
| 306 ViewHostMsg_SelectionBounds_Params transformed_params = params; |
| 307 transformed_params.anchor_rect.set_origin( |
| 308 TransformPointToRootCoordSpace(params.anchor_rect.origin())); |
| 309 transformed_params.focus_rect.set_origin( |
| 310 TransformPointToRootCoordSpace(params.focus_rect.origin())); |
| 311 RenderWidgetHostViewBase::SelectionBoundsChanged(transformed_params); |
| 306 } | 312 } |
| 307 | 313 |
| 308 void RenderWidgetHostViewChildFrame::LockCompositingSurface() { | 314 void RenderWidgetHostViewChildFrame::LockCompositingSurface() { |
| 309 NOTIMPLEMENTED(); | 315 NOTIMPLEMENTED(); |
| 310 } | 316 } |
| 311 | 317 |
| 312 void RenderWidgetHostViewChildFrame::UnlockCompositingSurface() { | 318 void RenderWidgetHostViewChildFrame::UnlockCompositingSurface() { |
| 313 NOTIMPLEMENTED(); | 319 NOTIMPLEMENTED(); |
| 314 } | 320 } |
| 315 | 321 |
| (...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 694 | 700 |
| 695 bool RenderWidgetHostViewChildFrame::IsChildFrameForTesting() const { | 701 bool RenderWidgetHostViewChildFrame::IsChildFrameForTesting() const { |
| 696 return true; | 702 return true; |
| 697 } | 703 } |
| 698 | 704 |
| 699 cc::SurfaceId RenderWidgetHostViewChildFrame::SurfaceIdForTesting() const { | 705 cc::SurfaceId RenderWidgetHostViewChildFrame::SurfaceIdForTesting() const { |
| 700 return surface_id_; | 706 return surface_id_; |
| 701 }; | 707 }; |
| 702 | 708 |
| 703 } // namespace content | 709 } // namespace content |
| OLD | NEW |