| 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 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 254 process_->SurfaceUpdated(surface_id_); | 254 process_->SurfaceUpdated(surface_id_); |
| 255 } | 255 } |
| 256 | 256 |
| 257 void RenderWidgetHostImpl::ResetSizeAndRepaintPendingFlags() { | 257 void RenderWidgetHostImpl::ResetSizeAndRepaintPendingFlags() { |
| 258 resize_ack_pending_ = false; | 258 resize_ack_pending_ = false; |
| 259 repaint_ack_pending_ = false; | 259 repaint_ack_pending_ = false; |
| 260 in_flight_size_.SetSize(0, 0); | 260 in_flight_size_.SetSize(0, 0); |
| 261 } | 261 } |
| 262 | 262 |
| 263 void RenderWidgetHostImpl::SendScreenRects() { | 263 void RenderWidgetHostImpl::SendScreenRects() { |
| 264 if (waiting_for_screen_rects_ack_) | 264 if (!renderer_initialized_ || waiting_for_screen_rects_ack_) |
| 265 return; | 265 return; |
| 266 | 266 |
| 267 if (is_hidden_) { | 267 if (is_hidden_) { |
| 268 // On GTK, this comes in for backgrounded tabs. Ignore, to match what | 268 // On GTK, this comes in for backgrounded tabs. Ignore, to match what |
| 269 // happens on Win & Mac, and when the view is shown it'll call this again. | 269 // happens on Win & Mac, and when the view is shown it'll call this again. |
| 270 return; | 270 return; |
| 271 } | 271 } |
| 272 | 272 |
| 273 if (!view_) | 273 if (!view_) |
| 274 return; | 274 return; |
| (...skipping 2054 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2329 return; | 2329 return; |
| 2330 | 2330 |
| 2331 OnRenderAutoResized(new_size); | 2331 OnRenderAutoResized(new_size); |
| 2332 } | 2332 } |
| 2333 | 2333 |
| 2334 void RenderWidgetHostImpl::DetachDelegate() { | 2334 void RenderWidgetHostImpl::DetachDelegate() { |
| 2335 delegate_ = NULL; | 2335 delegate_ = NULL; |
| 2336 } | 2336 } |
| 2337 | 2337 |
| 2338 } // namespace content | 2338 } // namespace content |
| OLD | NEW |