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

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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 53
54 // Returns |true| if the caller should immediately forward touch events to the 54 // Returns |true| if the caller should immediately forward touch events to the
55 // router. When |false|, the caller can forego sending touch events, and 55 // router. When |false|, the caller can forego sending touch events, and
56 // instead consume them directly. 56 // instead consume them directly.
57 virtual bool ShouldForwardTouchEvent() const = 0; 57 virtual bool ShouldForwardTouchEvent() const = 0;
58 58
59 // Returns |true| if the caller should immediately forward the provided 59 // Returns |true| if the caller should immediately forward the provided
60 // |gesture_event| to the router. 60 // |gesture_event| to the router.
61 virtual bool ShouldForwardGestureEvent( 61 virtual bool ShouldForwardGestureEvent(
62 const GestureEventWithLatencyInfo& gesture_event) const = 0; 62 const GestureEventWithLatencyInfo& gesture_event) const = 0;
63
64 // Returns |true| if the router has any queued or in-flight gesture events.
65 virtual bool HasQueuedGestureEvents() const = 0;
66 }; 63 };
67 64
68 } // namespace content 65 } // namespace content
69 66
70 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_INPUT_ROUTER_H_ 67 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_INPUT_ROUTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698