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

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

Issue 324143002: Decouple IPC::MessageFilter from IPC::Channel (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Landing Created 6 years, 6 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_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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 // 53 //
54 virtual void SetBoundHandler(const Handler& handler) OVERRIDE; 54 virtual void SetBoundHandler(const Handler& handler) OVERRIDE;
55 virtual void DidAddInputHandler(int routing_id, 55 virtual void DidAddInputHandler(int routing_id,
56 cc::InputHandler* input_handler) OVERRIDE; 56 cc::InputHandler* input_handler) OVERRIDE;
57 virtual void DidRemoveInputHandler(int routing_id) OVERRIDE; 57 virtual void DidRemoveInputHandler(int routing_id) OVERRIDE;
58 virtual void DidOverscroll(int routing_id, 58 virtual void DidOverscroll(int routing_id,
59 const DidOverscrollParams& params) OVERRIDE; 59 const DidOverscrollParams& params) OVERRIDE;
60 virtual void DidStopFlinging(int routing_id) OVERRIDE; 60 virtual void DidStopFlinging(int routing_id) OVERRIDE;
61 61
62 // IPC::MessageFilter methods: 62 // IPC::MessageFilter methods:
63 virtual void OnFilterAdded(IPC::Channel* channel) OVERRIDE; 63 virtual void OnFilterAdded(IPC::Sender* sender) OVERRIDE;
64 virtual void OnFilterRemoved() OVERRIDE; 64 virtual void OnFilterRemoved() OVERRIDE;
65 virtual void OnChannelClosing() OVERRIDE; 65 virtual void OnChannelClosing() OVERRIDE;
66 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; 66 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
67 67
68 private: 68 private:
69 virtual ~InputEventFilter(); 69 virtual ~InputEventFilter();
70 70
71 void ForwardToMainListener(const IPC::Message& message); 71 void ForwardToMainListener(const IPC::Message& message);
72 void ForwardToHandler(const IPC::Message& message); 72 void ForwardToHandler(const IPC::Message& message);
73 void SendMessage(scoped_ptr<IPC::Message> message); 73 void SendMessage(scoped_ptr<IPC::Message> message);
(...skipping 22 matching lines...) Expand all
96 // Used to intercept overscroll notifications while an event is being 96 // Used to intercept overscroll notifications while an event is being
97 // dispatched. If the event causes overscroll, the overscroll metadata can be 97 // dispatched. If the event causes overscroll, the overscroll metadata can be
98 // bundled in the event ack, saving an IPC. Note that we must continue 98 // bundled in the event ack, saving an IPC. Note that we must continue
99 // supporting overscroll IPC notifications due to fling animation updates. 99 // supporting overscroll IPC notifications due to fling animation updates.
100 scoped_ptr<DidOverscrollParams>* current_overscroll_params_; 100 scoped_ptr<DidOverscrollParams>* current_overscroll_params_;
101 }; 101 };
102 102
103 } // namespace content 103 } // namespace content
104 104
105 #endif // CONTENT_RENDERER_INPUT_INPUT_EVENT_FILTER_H_ 105 #endif // CONTENT_RENDERER_INPUT_INPUT_EVENT_FILTER_H_
OLDNEW
« no previous file with comments | « content/public/browser/browser_message_filter.cc ('k') | content/renderer/input/input_event_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698