diff options
author | davemoore@chromium.org <davemoore@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-03-31 20:33:34 +0000 |
---|---|---|
committer | davemoore@chromium.org <davemoore@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-03-31 20:33:34 +0000 |
commit | bd600527b06a390fc8a1e87cb42e3dda967ff5bc (patch) | |
tree | fcd2f9897b45e3409d4b0cd19fca5ac4257f6c83 /mojo/examples/pepper_container_app | |
parent | f8f5914e45c17620afa11f257d03389b3af4d20f (diff) | |
download | chromium_src-bd600527b06a390fc8a1e87cb42e3dda967ff5bc.zip chromium_src-bd600527b06a390fc8a1e87cb42e3dda967ff5bc.tar.gz chromium_src-bd600527b06a390fc8a1e87cb42e3dda967ff5bc.tar.bz2 |
Change AckEvent into request / response
BUG=None
Review URL: https://codereview.chromium.org/218763002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@260635 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'mojo/examples/pepper_container_app')
-rw-r--r-- | mojo/examples/pepper_container_app/pepper_container_app.cc | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/mojo/examples/pepper_container_app/pepper_container_app.cc b/mojo/examples/pepper_container_app/pepper_container_app.cc index 8bd2c14..d7e6f1c 100644 --- a/mojo/examples/pepper_container_app/pepper_container_app.cc +++ b/mojo/examples/pepper_container_app/pepper_container_app.cc @@ -90,16 +90,14 @@ class PepperContainerApp: public Application, plugin_instance_->DidChangeView(bounds); } - virtual void OnEvent(const Event& event) OVERRIDE { - if (event.location().is_null()) - return; - - { + virtual void OnEvent(const Event& event, + const mojo::Callback<void()>& callback) OVERRIDE { + if (!event.location().is_null()) { ppapi::ProxyAutoLock lock; // TODO(yzshen): Handle events. } - viewport_->AckEvent(event); + callback.Run(); } // MojoPpapiGlobals::Delegate implementation. |