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 <math.h> | 7 #include <math.h> |
8 #include <set> | 8 #include <set> |
9 #include <utility> | 9 #include <utility> |
10 | 10 |
(...skipping 384 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
395 void RenderWidgetHostImpl::SetNeedsFlush() { | 395 void RenderWidgetHostImpl::SetNeedsFlush() { |
396 if (view_) | 396 if (view_) |
397 view_->OnSetNeedsFlushInput(); | 397 view_->OnSetNeedsFlushInput(); |
398 } | 398 } |
399 | 399 |
400 void RenderWidgetHostImpl::Init() { | 400 void RenderWidgetHostImpl::Init() { |
401 DCHECK(process_->HasConnection()); | 401 DCHECK(process_->HasConnection()); |
402 | 402 |
403 renderer_initialized_ = true; | 403 renderer_initialized_ = true; |
404 | 404 |
405 GetProcess()->ResumeRequestsForView(routing_id_); | |
406 | |
407 // If the RWHV has not yet been set, the surface ID namespace will get | 405 // If the RWHV has not yet been set, the surface ID namespace will get |
408 // passed down by the call to SetView(). | 406 // passed down by the call to SetView(). |
409 if (view_) { | 407 if (view_) { |
410 Send(new ViewMsg_SetSurfaceIdNamespace(routing_id_, | 408 Send(new ViewMsg_SetSurfaceIdNamespace(routing_id_, |
411 view_->GetSurfaceIdNamespace())); | 409 view_->GetSurfaceIdNamespace())); |
412 } | 410 } |
413 | 411 |
414 SendScreenRects(); | 412 SendScreenRects(); |
415 WasResized(); | 413 WasResized(); |
416 | 414 |
(...skipping 1840 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2257 } | 2255 } |
2258 | 2256 |
2259 #if defined(OS_WIN) | 2257 #if defined(OS_WIN) |
2260 gfx::NativeViewAccessible | 2258 gfx::NativeViewAccessible |
2261 RenderWidgetHostImpl::GetParentNativeViewAccessible() { | 2259 RenderWidgetHostImpl::GetParentNativeViewAccessible() { |
2262 return delegate_ ? delegate_->GetParentNativeViewAccessible() : NULL; | 2260 return delegate_ ? delegate_->GetParentNativeViewAccessible() : NULL; |
2263 } | 2261 } |
2264 #endif | 2262 #endif |
2265 | 2263 |
2266 } // namespace content | 2264 } // namespace content |
OLD | NEW |