summaryrefslogtreecommitdiffstats
path: root/mojo/examples/aura_demo
diff options
context:
space:
mode:
authordavemoore@chromium.org <davemoore@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-05-27 15:51:00 +0000
committerdavemoore@chromium.org <davemoore@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-05-27 15:51:00 +0000
commit922f25039d939159501fad266518290b2c05fe2a (patch)
tree82f23eaa36a8d86f86d86b7f8aa85c487629057d /mojo/examples/aura_demo
parentbcbdd98cc4d033b29fa633cbc1c81599ba6d9977 (diff)
downloadchromium_src-922f25039d939159501fad266518290b2c05fe2a.zip
chromium_src-922f25039d939159501fad266518290b2c05fe2a.tar.gz
chromium_src-922f25039d939159501fad266518290b2c05fe2a.tar.bz2
Change Shell / ShellClient to ServiceProvider
BUG= R=darin@chromium.org Review URL: https://codereview.chromium.org/298653010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@272983 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'mojo/examples/aura_demo')
-rw-r--r--mojo/examples/aura_demo/aura_demo.cc11
1 files changed, 6 insertions, 5 deletions
diff --git a/mojo/examples/aura_demo/aura_demo.cc b/mojo/examples/aura_demo/aura_demo.cc
index 9927eeb..7e4ec8c 100644
--- a/mojo/examples/aura_demo/aura_demo.cc
+++ b/mojo/examples/aura_demo/aura_demo.cc
@@ -10,11 +10,11 @@
#include "base/message_loop/message_loop.h"
#include "mojo/aura/screen_mojo.h"
#include "mojo/aura/window_tree_host_mojo.h"
+#include "mojo/public/cpp/application/application.h"
#include "mojo/public/cpp/bindings/allocation_scope.h"
#include "mojo/public/cpp/gles2/gles2.h"
-#include "mojo/public/cpp/shell/application.h"
#include "mojo/public/cpp/system/core.h"
-#include "mojo/public/interfaces/shell/shell.mojom.h"
+#include "mojo/public/interfaces/service_provider/service_provider.mojom.h"
#include "mojo/services/native_viewport/native_viewport.mojom.h"
#include "ui/aura/client/default_capture_client.h"
#include "ui/aura/client/window_tree_client.h"
@@ -113,7 +113,8 @@ class DemoWindowTreeClient : public aura::client::WindowTreeClient {
class AuraDemo : public Application {
public:
- explicit AuraDemo(MojoHandle shell_handle) : Application(shell_handle) {
+ explicit AuraDemo(MojoHandle service_provider_handle)
+ : Application(service_provider_handle) {
screen_.reset(ScreenMojo::Create());
gfx::Screen::SetScreenInstance(gfx::SCREEN_TYPE_NATIVE, screen_.get());
@@ -176,7 +177,7 @@ class AuraDemo : public Application {
} // namespace mojo
extern "C" AURA_DEMO_EXPORT MojoResult CDECL MojoMain(
- MojoHandle shell_handle) {
+ MojoHandle service_provider_handle) {
base::CommandLine::Init(0, NULL);
base::AtExitManager at_exit;
base::MessageLoop loop;
@@ -186,7 +187,7 @@ extern "C" AURA_DEMO_EXPORT MojoResult CDECL MojoMain(
// MessageLoop is not of TYPE_UI. I think we need a way to build
// Aura that doesn't define platform-specific stuff.
aura::Env::CreateInstance(true);
- mojo::examples::AuraDemo app(shell_handle);
+ mojo::examples::AuraDemo app(service_provider_handle);
loop.Run();
return MOJO_RESULT_OK;