| 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 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 292 last_window_screen_rect_ = view_->GetBoundsInRootWindow(); | 292 last_window_screen_rect_ = view_->GetBoundsInRootWindow(); |
| 293 Send(new ViewMsg_UpdateScreenRects( | 293 Send(new ViewMsg_UpdateScreenRects( |
| 294 GetRoutingID(), last_view_screen_rect_, last_window_screen_rect_)); | 294 GetRoutingID(), last_view_screen_rect_, last_window_screen_rect_)); |
| 295 waiting_for_screen_rects_ack_ = true; | 295 waiting_for_screen_rects_ack_ = true; |
| 296 } | 296 } |
| 297 | 297 |
| 298 int RenderWidgetHostImpl::SyntheticScrollMessageInterval() const { | 298 int RenderWidgetHostImpl::SyntheticScrollMessageInterval() const { |
| 299 return kSyntheticScrollMessageIntervalMs; | 299 return kSyntheticScrollMessageIntervalMs; |
| 300 } | 300 } |
| 301 | 301 |
| 302 void RenderWidgetHostImpl::SuppressNextCharEvents() { |
| 303 suppress_next_char_events_ = true; |
| 304 } |
| 305 |
| 302 void RenderWidgetHostImpl::Init() { | 306 void RenderWidgetHostImpl::Init() { |
| 303 DCHECK(process_->HasConnection()); | 307 DCHECK(process_->HasConnection()); |
| 304 | 308 |
| 305 renderer_initialized_ = true; | 309 renderer_initialized_ = true; |
| 306 | 310 |
| 307 GpuSurfaceTracker::Get()->SetSurfaceHandle( | 311 GpuSurfaceTracker::Get()->SetSurfaceHandle( |
| 308 surface_id_, GetCompositingSurface()); | 312 surface_id_, GetCompositingSurface()); |
| 309 | 313 |
| 310 // Send the ack along with the information on placement. | 314 // Send the ack along with the information on placement. |
| 311 Send(new ViewMsg_CreatingNew_ACK(routing_id_)); | 315 Send(new ViewMsg_CreatingNew_ACK(routing_id_)); |
| (...skipping 2079 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2391 return; | 2395 return; |
| 2392 | 2396 |
| 2393 OnRenderAutoResized(new_size); | 2397 OnRenderAutoResized(new_size); |
| 2394 } | 2398 } |
| 2395 | 2399 |
| 2396 void RenderWidgetHostImpl::DetachDelegate() { | 2400 void RenderWidgetHostImpl::DetachDelegate() { |
| 2397 delegate_ = NULL; | 2401 delegate_ = NULL; |
| 2398 } | 2402 } |
| 2399 | 2403 |
| 2400 } // namespace content | 2404 } // namespace content |
| OLD | NEW |