OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |