| 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 1834 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2251 } | 2249 } |
| 2252 | 2250 |
| 2253 #if defined(OS_WIN) | 2251 #if defined(OS_WIN) |
| 2254 gfx::NativeViewAccessible | 2252 gfx::NativeViewAccessible |
| 2255 RenderWidgetHostImpl::GetParentNativeViewAccessible() { | 2253 RenderWidgetHostImpl::GetParentNativeViewAccessible() { |
| 2256 return delegate_ ? delegate_->GetParentNativeViewAccessible() : NULL; | 2254 return delegate_ ? delegate_->GetParentNativeViewAccessible() : NULL; |
| 2257 } | 2255 } |
| 2258 #endif | 2256 #endif |
| 2259 | 2257 |
| 2260 } // namespace content | 2258 } // namespace content |
| OLD | NEW |