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

Side by Side Diff: content/browser/renderer_host/input/immediate_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_IMMEDIATE_INPUT_ROUTER_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_INPUT_IMMEDIATE_INPUT_ROUTER_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_IMMEDIATE_INPUT_ROUTER_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_IMMEDIATE_INPUT_ROUTER_H_
7 7
8 #include <queue> 8 #include <queue>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 virtual void SendMouseEventImmediately( 52 virtual void SendMouseEventImmediately(
53 const MouseEventWithLatencyInfo& mouse_event) OVERRIDE; 53 const MouseEventWithLatencyInfo& mouse_event) OVERRIDE;
54 virtual void SendTouchEventImmediately( 54 virtual void SendTouchEventImmediately(
55 const TouchEventWithLatencyInfo& touch_event) OVERRIDE; 55 const TouchEventWithLatencyInfo& touch_event) OVERRIDE;
56 virtual void SendGestureEventImmediately( 56 virtual void SendGestureEventImmediately(
57 const GestureEventWithLatencyInfo& gesture_event) OVERRIDE; 57 const GestureEventWithLatencyInfo& gesture_event) OVERRIDE;
58 virtual const NativeWebKeyboardEvent* GetLastKeyboardEvent() const OVERRIDE; 58 virtual const NativeWebKeyboardEvent* GetLastKeyboardEvent() const OVERRIDE;
59 virtual bool ShouldForwardTouchEvent() const OVERRIDE; 59 virtual bool ShouldForwardTouchEvent() const OVERRIDE;
60 virtual bool ShouldForwardGestureEvent( 60 virtual bool ShouldForwardGestureEvent(
61 const GestureEventWithLatencyInfo& gesture_event) const OVERRIDE; 61 const GestureEventWithLatencyInfo& gesture_event) const OVERRIDE;
62 virtual bool HasQueuedGestureEvents() const OVERRIDE;
63 62
64 // IPC::Listener 63 // IPC::Listener
65 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; 64 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
66 65
67 GestureEventFilter* gesture_event_filter() { 66 GestureEventFilter* gesture_event_filter() {
68 return gesture_event_filter_.get(); 67 return gesture_event_filter_.get();
69 } 68 }
70 69
71 TouchEventQueue* touch_event_queue() { 70 TouchEventQueue* touch_event_queue() {
72 return touch_event_queue_.get(); 71 return touch_event_queue_.get();
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 196
198 scoped_ptr<TouchEventQueue> touch_event_queue_; 197 scoped_ptr<TouchEventQueue> touch_event_queue_;
199 scoped_ptr<GestureEventFilter> gesture_event_filter_; 198 scoped_ptr<GestureEventFilter> gesture_event_filter_;
200 199
201 DISALLOW_COPY_AND_ASSIGN(ImmediateInputRouter); 200 DISALLOW_COPY_AND_ASSIGN(ImmediateInputRouter);
202 }; 201 };
203 202
204 } // namespace content 203 } // namespace content
205 204
206 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_IMMEDIATE_INPUT_ROUTER_H_ 205 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_IMMEDIATE_INPUT_ROUTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698