diff options
author | jdduke@chromium.org <jdduke@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-09-12 00:32:49 +0000 |
---|---|---|
committer | jdduke@chromium.org <jdduke@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-09-12 00:32:49 +0000 |
commit | 6722816ee73f7002a9452ac93b1f6cbb8de036c9 (patch) | |
tree | 673d30a7ca142aa7d2cf06d03e92c25ecb476b78 /content/browser/renderer_host/input/input_router.h | |
parent | 2ac0763be9d8497e34fee49f92f7f0fbebfc17d9 (diff) | |
download | chromium_src-6722816ee73f7002a9452ac93b1f6cbb8de036c9.zip chromium_src-6722816ee73f7002a9452ac93b1f6cbb8de036c9.tar.gz chromium_src-6722816ee73f7002a9452ac93b1f6cbb8de036c9.tar.bz2 |
Provided batched input delivery with a BufferedInputRouter
The BufferedInputRouter batches input events into EventPackets. The delivery of
these packets is dependent on periodic flush signals, as requested by the
InputRouterClient. A given flush involves the forwarding of EventPackets to the
renderer until all InputEvents from the original packet have been dispatched.
BUG=245499
Review URL: https://chromiumcodereview.appspot.com/20356003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@222674 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/renderer_host/input/input_router.h')
-rw-r--r-- | content/browser/renderer_host/input/input_router.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/content/browser/renderer_host/input/input_router.h b/content/browser/renderer_host/input/input_router.h index 2d8a4c6..93b7b3f 100644 --- a/content/browser/renderer_host/input/input_router.h +++ b/content/browser/renderer_host/input/input_router.h @@ -24,10 +24,14 @@ class InputRouter : public IPC::Listener { public: virtual ~InputRouter() {} + // Should be called only in response to |SetNeedsFlush| requests made via + // the |InputRouterClient|. + virtual void Flush() = 0; + // Send and take ownership of the the given InputMsg_*. This should be used // only for event types not associated with a WebInputEvent. Returns true on // success and false otherwise. - virtual bool SendInput(IPC::Message* message) = 0; + virtual bool SendInput(scoped_ptr<IPC::Message> message) = 0; // WebInputEvents virtual void SendMouseEvent( |