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 <utility> | 8 #include <utility> |
9 | 9 |
10 #include "base/auto_reset.h" | 10 #include "base/auto_reset.h" |
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
247 process_->SurfaceUpdated(surface_id_); | 247 process_->SurfaceUpdated(surface_id_); |
248 } | 248 } |
249 | 249 |
250 void RenderWidgetHostImpl::ResetSizeAndRepaintPendingFlags() { | 250 void RenderWidgetHostImpl::ResetSizeAndRepaintPendingFlags() { |
251 resize_ack_pending_ = false; | 251 resize_ack_pending_ = false; |
252 repaint_ack_pending_ = false; | 252 repaint_ack_pending_ = false; |
253 in_flight_size_.SetSize(0, 0); | 253 in_flight_size_.SetSize(0, 0); |
254 } | 254 } |
255 | 255 |
256 void RenderWidgetHostImpl::SendScreenRects() { | 256 void RenderWidgetHostImpl::SendScreenRects() { |
257 if (waiting_for_screen_rects_ack_) | 257 if (!renderer_initialized_ || waiting_for_screen_rects_ack_) |
258 return; | 258 return; |
259 | 259 |
260 if (is_hidden_) { | 260 if (is_hidden_) { |
261 // On GTK, this comes in for backgrounded tabs. Ignore, to match what | 261 // On GTK, this comes in for backgrounded tabs. Ignore, to match what |
262 // happens on Win & Mac, and when the view is shown it'll call this again. | 262 // happens on Win & Mac, and when the view is shown it'll call this again. |
263 return; | 263 return; |
264 } | 264 } |
265 | 265 |
266 if (!view_) | 266 if (!view_) |
267 return; | 267 return; |
(...skipping 2033 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2301 return; | 2301 return; |
2302 | 2302 |
2303 OnRenderAutoResized(new_size); | 2303 OnRenderAutoResized(new_size); |
2304 } | 2304 } |
2305 | 2305 |
2306 void RenderWidgetHostImpl::DetachDelegate() { | 2306 void RenderWidgetHostImpl::DetachDelegate() { |
2307 delegate_ = NULL; | 2307 delegate_ = NULL; |
2308 } | 2308 } |
2309 | 2309 |
2310 } // namespace content | 2310 } // namespace content |
OLD | NEW |