| 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 | 8 |
| 9 #include <set> | 9 #include <set> |
| 10 #include <tuple> | 10 #include <tuple> |
| (...skipping 435 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 446 if (!view_) | 446 if (!view_) |
| 447 return; | 447 return; |
| 448 | 448 |
| 449 last_view_screen_rect_ = view_->GetViewBounds(); | 449 last_view_screen_rect_ = view_->GetViewBounds(); |
| 450 last_window_screen_rect_ = view_->GetBoundsInRootWindow(); | 450 last_window_screen_rect_ = view_->GetBoundsInRootWindow(); |
| 451 Send(new ViewMsg_UpdateScreenRects( | 451 Send(new ViewMsg_UpdateScreenRects( |
| 452 GetRoutingID(), last_view_screen_rect_, last_window_screen_rect_)); | 452 GetRoutingID(), last_view_screen_rect_, last_window_screen_rect_)); |
| 453 waiting_for_screen_rects_ack_ = true; | 453 waiting_for_screen_rects_ack_ = true; |
| 454 } | 454 } |
| 455 | 455 |
| 456 void RenderWidgetHostImpl::SuppressEventsUntilKeyDown() { | |
| 457 suppress_events_until_keydown_ = true; | |
| 458 } | |
| 459 | |
| 460 void RenderWidgetHostImpl::FlushInput() { | 456 void RenderWidgetHostImpl::FlushInput() { |
| 461 input_router_->RequestNotificationWhenFlushed(); | 457 input_router_->RequestNotificationWhenFlushed(); |
| 462 if (synthetic_gesture_controller_) | 458 if (synthetic_gesture_controller_) |
| 463 synthetic_gesture_controller_->Flush(base::TimeTicks::Now()); | 459 synthetic_gesture_controller_->Flush(base::TimeTicks::Now()); |
| 464 } | 460 } |
| 465 | 461 |
| 466 void RenderWidgetHostImpl::SetNeedsFlush() { | 462 void RenderWidgetHostImpl::SetNeedsFlush() { |
| 467 if (view_) | 463 if (view_) |
| 468 view_->OnSetNeedsFlushInput(); | 464 view_->OnSetNeedsFlushInput(); |
| 469 } | 465 } |
| (...skipping 2057 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2527 // different from the receiver's. | 2523 // different from the receiver's. |
| 2528 file_system_file.url = | 2524 file_system_file.url = |
| 2529 GURL(storage::GetIsolatedFileSystemRootURIString( | 2525 GURL(storage::GetIsolatedFileSystemRootURIString( |
| 2530 file_system_url.origin(), filesystem_id, std::string()) | 2526 file_system_url.origin(), filesystem_id, std::string()) |
| 2531 .append(register_name)); | 2527 .append(register_name)); |
| 2532 file_system_file.filesystem_id = filesystem_id; | 2528 file_system_file.filesystem_id = filesystem_id; |
| 2533 } | 2529 } |
| 2534 } | 2530 } |
| 2535 | 2531 |
| 2536 } // namespace content | 2532 } // namespace content |
| OLD | NEW |