OLD | NEW |
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_impl.h" | 5 #include "content/browser/renderer_host/render_widget_host_impl.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/auto_reset.h" | 9 #include "base/auto_reset.h" |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
199 } | 199 } |
200 | 200 |
201 RenderWidgetHostView* RenderWidgetHostImpl::GetView() const { | 201 RenderWidgetHostView* RenderWidgetHostImpl::GetView() const { |
202 return view_; | 202 return view_; |
203 } | 203 } |
204 | 204 |
205 RenderWidgetHostImpl* RenderWidgetHostImpl::AsRenderWidgetHostImpl() { | 205 RenderWidgetHostImpl* RenderWidgetHostImpl::AsRenderWidgetHostImpl() { |
206 return this; | 206 return this; |
207 } | 207 } |
208 | 208 |
209 bool RenderWidgetHostImpl::OnMessageReceivedForTesting( | |
210 const IPC::Message& msg) { | |
211 return OnMessageReceived(msg); | |
212 } | |
213 | |
214 gfx::NativeViewId RenderWidgetHostImpl::GetNativeViewId() const { | 209 gfx::NativeViewId RenderWidgetHostImpl::GetNativeViewId() const { |
215 if (view_) | 210 if (view_) |
216 return view_->GetNativeViewId(); | 211 return view_->GetNativeViewId(); |
217 return 0; | 212 return 0; |
218 } | 213 } |
219 | 214 |
220 gfx::GLSurfaceHandle RenderWidgetHostImpl::GetCompositingSurface() { | 215 gfx::GLSurfaceHandle RenderWidgetHostImpl::GetCompositingSurface() { |
221 if (view_) | 216 if (view_) |
222 return view_->GetCompositingSurface(); | 217 return view_->GetCompositingSurface(); |
223 return gfx::GLSurfaceHandle(); | 218 return gfx::GLSurfaceHandle(); |
(...skipping 1478 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1702 // indicate that no callback is in progress (i.e. without this line | 1697 // indicate that no callback is in progress (i.e. without this line |
1703 // DelayedAutoResized will not get called again). | 1698 // DelayedAutoResized will not get called again). |
1704 new_auto_size_.SetSize(0, 0); | 1699 new_auto_size_.SetSize(0, 0); |
1705 if (!should_auto_resize_) | 1700 if (!should_auto_resize_) |
1706 return; | 1701 return; |
1707 | 1702 |
1708 OnRenderAutoResized(new_size); | 1703 OnRenderAutoResized(new_size); |
1709 } | 1704 } |
1710 | 1705 |
1711 } // namespace content | 1706 } // namespace content |
OLD | NEW |