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

Side by Side Diff: content/browser/renderer_host/input/input_router.h

Issue 23801003: input: Make the OverscrollController less intrusive, and some code cleanup. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 3 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #ifndef CONTENT_BROWSER_RENDERER_HOST_INPUT_INPUT_ROUTER_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_INPUT_INPUT_ROUTER_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_INPUT_ROUTER_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_INPUT_ROUTER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "content/port/browser/event_with_latency_info.h" 9 #include "content/port/browser/event_with_latency_info.h"
10 #include "content/port/common/input_event_ack_state.h" 10 #include "content/port/common/input_event_ack_state.h"
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 57
58 // Returns |true| if the caller should immediately forward touch events to the 58 // Returns |true| if the caller should immediately forward touch events to the
59 // router. When |false|, the caller can forego sending touch events, and 59 // router. When |false|, the caller can forego sending touch events, and
60 // instead consume them directly. 60 // instead consume them directly.
61 virtual bool ShouldForwardTouchEvent() const = 0; 61 virtual bool ShouldForwardTouchEvent() const = 0;
62 62
63 // Returns |true| if the caller should immediately forward the provided 63 // Returns |true| if the caller should immediately forward the provided
64 // |gesture_event| to the router. 64 // |gesture_event| to the router.
65 virtual bool ShouldForwardGestureEvent( 65 virtual bool ShouldForwardGestureEvent(
66 const GestureEventWithLatencyInfo& gesture_event) const = 0; 66 const GestureEventWithLatencyInfo& gesture_event) const = 0;
67
68 // Returns |true| if the router has any queued or in-flight gesture events.
69 virtual bool HasQueuedGestureEvents() const = 0;
70 }; 67 };
71 68
72 } // namespace content 69 } // namespace content
73 70
74 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_INPUT_ROUTER_H_ 71 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_INPUT_ROUTER_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/input/immediate_input_router.cc ('k') | content/browser/renderer_host/overscroll_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698