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 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
238 void RenderWidgetHostImpl::Init() { | 238 void RenderWidgetHostImpl::Init() { |
239 DCHECK(process_->HasConnection()); | 239 DCHECK(process_->HasConnection()); |
240 | 240 |
241 renderer_initialized_ = true; | 241 renderer_initialized_ = true; |
242 | 242 |
243 GpuSurfaceTracker::Get()->SetSurfaceHandle( | 243 GpuSurfaceTracker::Get()->SetSurfaceHandle( |
244 surface_id_, GetCompositingSurface()); | 244 surface_id_, GetCompositingSurface()); |
245 | 245 |
246 // Send the ack along with the information on placement. | 246 // Send the ack along with the information on placement. |
247 Send(new ViewMsg_CreatingNew_ACK(routing_id_, GetNativeViewId())); | 247 Send(new ViewMsg_CreatingNew_ACK(routing_id_, GetNativeViewId())); |
| 248 GetProcess()->ResumeRequestsForView(routing_id_); |
| 249 |
248 WasResized(); | 250 WasResized(); |
249 } | 251 } |
250 | 252 |
251 void RenderWidgetHostImpl::Shutdown() { | 253 void RenderWidgetHostImpl::Shutdown() { |
252 RejectMouseLockOrUnlockIfNecessary(); | 254 RejectMouseLockOrUnlockIfNecessary(); |
253 | 255 |
254 if (process_->HasConnection()) { | 256 if (process_->HasConnection()) { |
255 // Tell the renderer object to close. | 257 // Tell the renderer object to close. |
256 bool rv = Send(new ViewMsg_Close(routing_id_)); | 258 bool rv = Send(new ViewMsg_Close(routing_id_)); |
257 DCHECK(rv); | 259 DCHECK(rv); |
(...skipping 1654 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1912 // indicate that no callback is in progress (i.e. without this line | 1914 // indicate that no callback is in progress (i.e. without this line |
1913 // DelayedAutoResized will not get called again). | 1915 // DelayedAutoResized will not get called again). |
1914 new_auto_size_.SetSize(0, 0); | 1916 new_auto_size_.SetSize(0, 0); |
1915 if (!should_auto_resize_) | 1917 if (!should_auto_resize_) |
1916 return; | 1918 return; |
1917 | 1919 |
1918 OnRenderAutoResized(new_size); | 1920 OnRenderAutoResized(new_size); |
1919 } | 1921 } |
1920 | 1922 |
1921 } // namespace content | 1923 } // namespace content |
OLD | NEW |