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

Side by Side Diff: content/renderer/input/input_event_filter.h

Issue 136173004: Early terminate flings when scrolling impossible (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 8 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
« no previous file with comments | « content/content_common.gypi ('k') | content/renderer/input/input_event_filter.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_RENDERER_INPUT_INPUT_EVENT_FILTER_H_ 5 #ifndef CONTENT_RENDERER_INPUT_INPUT_EVENT_FILTER_H_
6 #define CONTENT_RENDERER_INPUT_INPUT_EVENT_FILTER_H_ 6 #define CONTENT_RENDERER_INPUT_INPUT_EVENT_FILTER_H_
7 7
8 #include <queue> 8 #include <queue>
9 #include <set> 9 #include <set>
10 10
(...skipping 30 matching lines...) Expand all
41 // |main_listener| on the main thread. (The "main thread" in this context is 41 // |main_listener| on the main thread. (The "main thread" in this context is
42 // the thread where the InputEventFilter was constructed.) The responsibility 42 // the thread where the InputEventFilter was constructed.) The responsibility
43 // is left to the eventual handler to deliver the corresponding 43 // is left to the eventual handler to deliver the corresponding
44 // InputHostMsg_HandleInputEvent_ACK. 44 // InputHostMsg_HandleInputEvent_ACK.
45 // 45 //
46 virtual void SetBoundHandler(const Handler& handler) OVERRIDE; 46 virtual void SetBoundHandler(const Handler& handler) OVERRIDE;
47 virtual void DidAddInputHandler(int routing_id, 47 virtual void DidAddInputHandler(int routing_id,
48 cc::InputHandler* input_handler) OVERRIDE; 48 cc::InputHandler* input_handler) OVERRIDE;
49 virtual void DidRemoveInputHandler(int routing_id) OVERRIDE; 49 virtual void DidRemoveInputHandler(int routing_id) OVERRIDE;
50 virtual void DidOverscroll(int routing_id, 50 virtual void DidOverscroll(int routing_id,
51 const cc::DidOverscrollParams& params) OVERRIDE; 51 const DidOverscrollParams& params) OVERRIDE;
52 virtual void DidStopFlinging(int routing_id) OVERRIDE; 52 virtual void DidStopFlinging(int routing_id) OVERRIDE;
53 53
54 // IPC::ChannelProxy::MessageFilter methods: 54 // IPC::ChannelProxy::MessageFilter methods:
55 virtual void OnFilterAdded(IPC::Channel* channel) OVERRIDE; 55 virtual void OnFilterAdded(IPC::Channel* channel) OVERRIDE;
56 virtual void OnFilterRemoved() OVERRIDE; 56 virtual void OnFilterRemoved() OVERRIDE;
57 virtual void OnChannelClosing() OVERRIDE; 57 virtual void OnChannelClosing() OVERRIDE;
58 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; 58 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
59 59
60 private: 60 private:
61 friend class IPC::ChannelProxy::MessageFilter; 61 friend class IPC::ChannelProxy::MessageFilter;
(...skipping 25 matching lines...) Expand all
87 // Indicates the routing_ids for which input events should be filtered. 87 // Indicates the routing_ids for which input events should be filtered.
88 std::set<int> routes_; 88 std::set<int> routes_;
89 89
90 // Specifies whether overscroll notifications are forwarded to the host. 90 // Specifies whether overscroll notifications are forwarded to the host.
91 bool overscroll_notifications_enabled_; 91 bool overscroll_notifications_enabled_;
92 }; 92 };
93 93
94 } // namespace content 94 } // namespace content
95 95
96 #endif // CONTENT_RENDERER_INPUT_INPUT_EVENT_FILTER_H_ 96 #endif // CONTENT_RENDERER_INPUT_INPUT_EVENT_FILTER_H_
OLDNEW
« no previous file with comments | « content/content_common.gypi ('k') | content/renderer/input/input_event_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698