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 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
273 if (!view_) | 273 if (!view_) |
274 return; | 274 return; |
275 | 275 |
276 last_view_screen_rect_ = view_->GetViewBounds(); | 276 last_view_screen_rect_ = view_->GetViewBounds(); |
277 last_window_screen_rect_ = view_->GetBoundsInRootWindow(); | 277 last_window_screen_rect_ = view_->GetBoundsInRootWindow(); |
278 Send(new ViewMsg_UpdateScreenRects( | 278 Send(new ViewMsg_UpdateScreenRects( |
279 GetRoutingID(), last_view_screen_rect_, last_window_screen_rect_)); | 279 GetRoutingID(), last_view_screen_rect_, last_window_screen_rect_)); |
280 waiting_for_screen_rects_ack_ = true; | 280 waiting_for_screen_rects_ack_ = true; |
281 } | 281 } |
282 | 282 |
| 283 int RenderWidgetHostImpl::SyntheticScrollMessageInterval() const { |
| 284 return kSyntheticScrollMessageIntervalMs; |
| 285 } |
| 286 |
283 void RenderWidgetHostImpl::Init() { | 287 void RenderWidgetHostImpl::Init() { |
284 DCHECK(process_->HasConnection()); | 288 DCHECK(process_->HasConnection()); |
285 | 289 |
286 renderer_initialized_ = true; | 290 renderer_initialized_ = true; |
287 | 291 |
288 GpuSurfaceTracker::Get()->SetSurfaceHandle( | 292 GpuSurfaceTracker::Get()->SetSurfaceHandle( |
289 surface_id_, GetCompositingSurface()); | 293 surface_id_, GetCompositingSurface()); |
290 | 294 |
291 // Send the ack along with the information on placement. | 295 // Send the ack along with the information on placement. |
292 Send(new ViewMsg_CreatingNew_ACK(routing_id_)); | 296 Send(new ViewMsg_CreatingNew_ACK(routing_id_)); |
(...skipping 2028 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2321 return; | 2325 return; |
2322 | 2326 |
2323 OnRenderAutoResized(new_size); | 2327 OnRenderAutoResized(new_size); |
2324 } | 2328 } |
2325 | 2329 |
2326 void RenderWidgetHostImpl::DetachDelegate() { | 2330 void RenderWidgetHostImpl::DetachDelegate() { |
2327 delegate_ = NULL; | 2331 delegate_ = NULL; |
2328 } | 2332 } |
2329 | 2333 |
2330 } // namespace content | 2334 } // namespace content |
OLD | NEW |