diff options
author | davemoore@chromium.org <davemoore@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-06-25 21:57:02 +0000 |
---|---|---|
committer | davemoore@chromium.org <davemoore@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-06-25 21:57:02 +0000 |
commit | 8fc44a9f0c97c5f2e61fc8125a4822a057c67446 (patch) | |
tree | 0e3745a55a87d85cc5463b4a157aadccd0713c45 /mojo/examples/compositor_app | |
parent | cf0c55a04cc3cb7e996d823eaf574e70d305a303 (diff) | |
download | chromium_src-8fc44a9f0c97c5f2e61fc8125a4822a057c67446.zip chromium_src-8fc44a9f0c97c5f2e61fc8125a4822a057c67446.tar.gz chromium_src-8fc44a9f0c97c5f2e61fc8125a4822a057c67446.tar.bz2 |
Split ServiceProvider into 3
BUG=
R=darin@chromium.org, qsr@chromium.org
Review URL: https://codereview.chromium.org/347333002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@279830 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'mojo/examples/compositor_app')
-rw-r--r-- | mojo/examples/compositor_app/compositor_app.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/mojo/examples/compositor_app/compositor_app.cc b/mojo/examples/compositor_app/compositor_app.cc index 31752bd..6a5a8c4 100644 --- a/mojo/examples/compositor_app/compositor_app.cc +++ b/mojo/examples/compositor_app/compositor_app.cc @@ -7,7 +7,8 @@ #include "base/macros.h" #include "mojo/examples/compositor_app/compositor_host.h" -#include "mojo/public/cpp/application/application.h" +#include "mojo/public/cpp/application/application_delegate.h" +#include "mojo/public/cpp/application/application_impl.h" #include "mojo/public/cpp/gles2/gles2.h" #include "mojo/public/cpp/system/core.h" #include "mojo/public/interfaces/service_provider/service_provider.mojom.h" @@ -18,15 +19,14 @@ namespace mojo { namespace examples { -class SampleApp : public Application, public NativeViewportClient { +class SampleApp : public ApplicationDelegate, public NativeViewportClient { public: SampleApp() {} virtual ~SampleApp() {} - virtual void Initialize() OVERRIDE { - ConnectTo("mojo:mojo_native_viewport_service", &viewport_); + virtual void Initialize(ApplicationImpl* app) OVERRIDE { + app->ConnectToService("mojo:mojo_native_viewport_service", &viewport_); viewport_.set_client(this); - viewport_->Create(Rect::From(gfx::Rect(10, 10, 800, 600))); viewport_->Show(); @@ -62,7 +62,7 @@ class SampleApp : public Application, public NativeViewportClient { } // namespace examples // static -Application* Application::Create() { +ApplicationDelegate* ApplicationDelegate::Create() { return new examples::SampleApp(); } |