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

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

Issue 1003023002: Signal input flush when all flings have terminated (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix test compile Created 5 years, 9 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_view_base.h" 5 #include "content/browser/renderer_host/render_widget_host_view_base.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/profiler/scoped_tracker.h" 8 #include "base/profiler/scoped_tracker.h"
9 #include "content/browser/accessibility/browser_accessibility_manager.h" 9 #include "content/browser/accessibility/browser_accessibility_manager.h"
10 #include "content/browser/gpu/gpu_data_manager_impl.h" 10 #include "content/browser/gpu/gpu_data_manager_impl.h"
(...skipping 446 matching lines...) Expand 10 before | Expand all | Expand 10 after
457 bool RenderWidgetHostViewBase::IsMouseLocked() { 457 bool RenderWidgetHostViewBase::IsMouseLocked() {
458 return mouse_locked_; 458 return mouse_locked_;
459 } 459 }
460 460
461 InputEventAckState RenderWidgetHostViewBase::FilterInputEvent( 461 InputEventAckState RenderWidgetHostViewBase::FilterInputEvent(
462 const blink::WebInputEvent& input_event) { 462 const blink::WebInputEvent& input_event) {
463 // By default, input events are simply forwarded to the renderer. 463 // By default, input events are simply forwarded to the renderer.
464 return INPUT_EVENT_ACK_STATE_NOT_CONSUMED; 464 return INPUT_EVENT_ACK_STATE_NOT_CONSUMED;
465 } 465 }
466 466
467 void RenderWidgetHostViewBase::OnDidFlushInput() {
468 // The notification can safely be ignored by most implementations.
469 }
470
471 void RenderWidgetHostViewBase::OnSetNeedsFlushInput() { 467 void RenderWidgetHostViewBase::OnSetNeedsFlushInput() {
472 if (flush_input_timer_.IsRunning()) 468 if (flush_input_timer_.IsRunning())
473 return; 469 return;
474 470
475 flush_input_timer_.Start( 471 flush_input_timer_.Start(
476 FROM_HERE, 472 FROM_HERE,
477 base::TimeDelta::FromMicroseconds(kFlushInputRateInUs), 473 base::TimeDelta::FromMicroseconds(kFlushInputRateInUs),
478 this, 474 this,
479 &RenderWidgetHostViewBase::FlushInput); 475 &RenderWidgetHostViewBase::FlushInput);
480 } 476 }
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
697 693
698 return primary_landscape_angle == angle 694 return primary_landscape_angle == angle
699 ? blink::WebScreenOrientationLandscapePrimary 695 ? blink::WebScreenOrientationLandscapePrimary
700 : blink::WebScreenOrientationLandscapeSecondary; 696 : blink::WebScreenOrientationLandscapeSecondary;
701 } 697 }
702 698
703 void RenderWidgetHostViewBase::OnDidNavigateMainFrameToNewPage() { 699 void RenderWidgetHostViewBase::OnDidNavigateMainFrameToNewPage() {
704 } 700 }
705 701
706 } // namespace content 702 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_base.h ('k') | content/common/input_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698