| 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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 } | 122 } |
| 123 | 123 |
| 124 RenderWidgetHost* RenderWidgetHostViewChildFrame::GetRenderWidgetHost() const { | 124 RenderWidgetHost* RenderWidgetHostViewChildFrame::GetRenderWidgetHost() const { |
| 125 return host_; | 125 return host_; |
| 126 } | 126 } |
| 127 | 127 |
| 128 void RenderWidgetHostViewChildFrame::SetSize(const gfx::Size& size) { | 128 void RenderWidgetHostViewChildFrame::SetSize(const gfx::Size& size) { |
| 129 host_->WasResized(); | 129 host_->WasResized(); |
| 130 } | 130 } |
| 131 | 131 |
| 132 void RenderWidgetHostViewChildFrame::SetBounds(const gfx::Rect& rect) { | 132 void RenderWidgetHostViewChildFrame::RequestTopLevelBoundsInScreen( |
| 133 const gfx::Rect& rect) { |
| 133 SetSize(rect.size()); | 134 SetSize(rect.size()); |
| 134 | 135 |
| 135 if (rect != last_screen_rect_) { | 136 if (rect != last_screen_rect_) { |
| 136 last_screen_rect_ = rect; | 137 last_screen_rect_ = rect; |
| 137 host_->SendScreenRects(); | 138 host_->SendScreenRects(); |
| 138 } | 139 } |
| 139 } | 140 } |
| 140 | 141 |
| 141 void RenderWidgetHostViewChildFrame::Focus() { | 142 void RenderWidgetHostViewChildFrame::Focus() { |
| 142 } | 143 } |
| (...skipping 604 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 747 | 748 |
| 748 bool RenderWidgetHostViewChildFrame::IsChildFrameForTesting() const { | 749 bool RenderWidgetHostViewChildFrame::IsChildFrameForTesting() const { |
| 749 return true; | 750 return true; |
| 750 } | 751 } |
| 751 | 752 |
| 752 cc::SurfaceId RenderWidgetHostViewChildFrame::SurfaceIdForTesting() const { | 753 cc::SurfaceId RenderWidgetHostViewChildFrame::SurfaceIdForTesting() const { |
| 753 return cc::SurfaceId(frame_sink_id_, local_surface_id_); | 754 return cc::SurfaceId(frame_sink_id_, local_surface_id_); |
| 754 }; | 755 }; |
| 755 | 756 |
| 756 } // namespace content | 757 } // namespace content |
| OLD | NEW |