| 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 364 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 375 GetRoutingID(), last_view_screen_rect_, last_window_screen_rect_)); | 375 GetRoutingID(), last_view_screen_rect_, last_window_screen_rect_)); |
| 376 if (delegate_) | 376 if (delegate_) |
| 377 delegate_->DidSendScreenRects(this); | 377 delegate_->DidSendScreenRects(this); |
| 378 waiting_for_screen_rects_ack_ = true; | 378 waiting_for_screen_rects_ack_ = true; |
| 379 } | 379 } |
| 380 | 380 |
| 381 void RenderWidgetHostImpl::SuppressNextCharEvents() { | 381 void RenderWidgetHostImpl::SuppressNextCharEvents() { |
| 382 suppress_next_char_events_ = true; | 382 suppress_next_char_events_ = true; |
| 383 } | 383 } |
| 384 | 384 |
| 385 void RenderWidgetHostImpl::FlushInput() { | 385 void RenderWidgetHostImpl::FlushInput(base::TimeTicks flush_time) { |
| 386 input_router_->Flush(); | 386 input_router_->Flush(); |
| 387 if (synthetic_gesture_controller_) | 387 if (synthetic_gesture_controller_) |
| 388 synthetic_gesture_controller_->Flush(base::TimeTicks::Now()); | 388 synthetic_gesture_controller_->Flush(flush_time); |
| 389 } | 389 } |
| 390 | 390 |
| 391 void RenderWidgetHostImpl::SetNeedsFlush() { | 391 void RenderWidgetHostImpl::SetNeedsFlush() { |
| 392 if (view_) | 392 if (view_) |
| 393 view_->OnSetNeedsFlushInput(); | 393 view_->OnSetNeedsFlushInput(); |
| 394 } | 394 } |
| 395 | 395 |
| 396 void RenderWidgetHostImpl::Init() { | 396 void RenderWidgetHostImpl::Init() { |
| 397 DCHECK(process_->HasConnection()); | 397 DCHECK(process_->HasConnection()); |
| 398 | 398 |
| (...skipping 1919 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2318 } | 2318 } |
| 2319 #endif | 2319 #endif |
| 2320 | 2320 |
| 2321 SkColorType RenderWidgetHostImpl::PreferredReadbackFormat() { | 2321 SkColorType RenderWidgetHostImpl::PreferredReadbackFormat() { |
| 2322 if (view_) | 2322 if (view_) |
| 2323 return view_->PreferredReadbackFormat(); | 2323 return view_->PreferredReadbackFormat(); |
| 2324 return kN32_SkColorType; | 2324 return kN32_SkColorType; |
| 2325 } | 2325 } |
| 2326 | 2326 |
| 2327 } // namespace content | 2327 } // namespace content |
| OLD | NEW |