summaryrefslogtreecommitdiffstats
path: root/mojo/examples/aura_demo
diff options
context:
space:
mode:
authormfomitchev@chromium.org <mfomitchev@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-04-24 23:04:03 +0000
committermfomitchev@chromium.org <mfomitchev@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-04-24 23:04:03 +0000
commit8ecd5fa2b1ec1c5990bf491d881b84d7289b9ce9 (patch)
tree666cdb2f7858082a5b0d32b8b5dd832dbe01ad40 /mojo/examples/aura_demo
parent20a58e6943c8d3ff008b3043d01642b34511c0b1 (diff)
downloadchromium_src-8ecd5fa2b1ec1c5990bf491d881b84d7289b9ce9.zip
chromium_src-8ecd5fa2b1ec1c5990bf491d881b84d7289b9ce9.tar.gz
chromium_src-8ecd5fa2b1ec1c5990bf491d881b84d7289b9ce9.tar.bz2
Adding GetEventSource() method to the WindowTreeHost class.
Review URL: https://codereview.chromium.org/250103002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@266024 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'mojo/examples/aura_demo')
-rw-r--r--mojo/examples/aura_demo/window_tree_host_mojo.cc4
-rw-r--r--mojo/examples/aura_demo/window_tree_host_mojo.h1
2 files changed, 5 insertions, 0 deletions
diff --git a/mojo/examples/aura_demo/window_tree_host_mojo.cc b/mojo/examples/aura_demo/window_tree_host_mojo.cc
index 7a5bd4e..5d935cd 100644
--- a/mojo/examples/aura_demo/window_tree_host_mojo.cc
+++ b/mojo/examples/aura_demo/window_tree_host_mojo.cc
@@ -56,6 +56,10 @@ WindowTreeHostMojo::~WindowTreeHostMojo() {}
////////////////////////////////////////////////////////////////////////////////
// WindowTreeHostMojo, aura::WindowTreeHost implementation:
+ui::EventSource* WindowTreeHostMojo::GetEventSource() {
+ return this;
+}
+
gfx::AcceleratedWidget WindowTreeHostMojo::GetAcceleratedWidget() {
NOTIMPLEMENTED() << "GetAcceleratedWidget";
return gfx::kNullAcceleratedWidget;
diff --git a/mojo/examples/aura_demo/window_tree_host_mojo.h b/mojo/examples/aura_demo/window_tree_host_mojo.h
index 80d178c..3fca9f7 100644
--- a/mojo/examples/aura_demo/window_tree_host_mojo.h
+++ b/mojo/examples/aura_demo/window_tree_host_mojo.h
@@ -33,6 +33,7 @@ class WindowTreeHostMojo : public aura::WindowTreeHost,
private:
// WindowTreeHost:
+ virtual ui::EventSource* GetEventSource() OVERRIDE;
virtual gfx::AcceleratedWidget GetAcceleratedWidget() OVERRIDE;
virtual void Show() OVERRIDE;
virtual void Hide() OVERRIDE;