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 381 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
392 void RenderWidgetHostImpl::SetNeedsFlush() { | 392 void RenderWidgetHostImpl::SetNeedsFlush() { |
393 if (view_) | 393 if (view_) |
394 view_->OnSetNeedsFlushInput(); | 394 view_->OnSetNeedsFlushInput(); |
395 } | 395 } |
396 | 396 |
397 void RenderWidgetHostImpl::Init() { | 397 void RenderWidgetHostImpl::Init() { |
398 DCHECK(process_->HasConnection()); | 398 DCHECK(process_->HasConnection()); |
399 | 399 |
400 renderer_initialized_ = true; | 400 renderer_initialized_ = true; |
401 | 401 |
402 GetProcess()->ResumeRequestsForView(routing_id_); | |
403 | |
404 // If the RWHV has not yet been set, the surface ID namespace will get | 402 // If the RWHV has not yet been set, the surface ID namespace will get |
405 // passed down by the call to SetView(). | 403 // passed down by the call to SetView(). |
406 if (view_) { | 404 if (view_) { |
407 Send(new ViewMsg_SetSurfaceIdNamespace(routing_id_, | 405 Send(new ViewMsg_SetSurfaceIdNamespace(routing_id_, |
408 view_->GetSurfaceIdNamespace())); | 406 view_->GetSurfaceIdNamespace())); |
409 } | 407 } |
410 | 408 |
411 SendScreenRects(); | 409 SendScreenRects(); |
412 WasResized(); | 410 WasResized(); |
413 | 411 |
(...skipping 1827 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2241 } | 2239 } |
2242 | 2240 |
2243 #if defined(OS_WIN) | 2241 #if defined(OS_WIN) |
2244 gfx::NativeViewAccessible | 2242 gfx::NativeViewAccessible |
2245 RenderWidgetHostImpl::GetParentNativeViewAccessible() { | 2243 RenderWidgetHostImpl::GetParentNativeViewAccessible() { |
2246 return delegate_ ? delegate_->GetParentNativeViewAccessible() : NULL; | 2244 return delegate_ ? delegate_->GetParentNativeViewAccessible() : NULL; |
2247 } | 2245 } |
2248 #endif | 2246 #endif |
2249 | 2247 |
2250 } // namespace content | 2248 } // namespace content |
OLD | NEW |