Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(711)

Side by Side Diff: content/browser/renderer_host/render_widget_host_impl.cc

Issue 2643243002: Remove RenderWidgetHostImpl::SuppressEventsUntilKeyDown() (Closed)
Patch Set: just remove Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 2052 matching lines...) Expand 10 before | Expand all | Expand 10 after
2522 // different from the receiver's. 2518 // different from the receiver's.
2523 file_system_file.url = 2519 file_system_file.url =
2524 GURL(storage::GetIsolatedFileSystemRootURIString( 2520 GURL(storage::GetIsolatedFileSystemRootURIString(
2525 file_system_url.origin(), filesystem_id, std::string()) 2521 file_system_url.origin(), filesystem_id, std::string())
2526 .append(register_name)); 2522 .append(register_name));
2527 file_system_file.filesystem_id = filesystem_id; 2523 file_system_file.filesystem_id = filesystem_id;
2528 } 2524 }
2529 } 2525 }
2530 2526
2531 } // namespace content 2527 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_widget_host_impl.h ('k') | content/browser/renderer_host/render_widget_host_view_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698