Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(402)

Unified Diff: mojo/shell/app_container.cc

Issue 51373002: NativeViewport (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nl Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mojo/shell/app_container.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/shell/app_container.cc
diff --git a/mojo/shell/app_container.cc b/mojo/shell/app_container.cc
index 0227e78c168ca9198d5e76d91a4a88506b7c6fcb..a0bfe03cc3448f2deee6fb3f2d14168b20a2157b 100644
--- a/mojo/shell/app_container.cc
+++ b/mojo/shell/app_container.cc
@@ -12,6 +12,7 @@
#include "base/thread_task_runner_handle.h"
#include "base/threading/thread.h"
#include "mojo/public/system/core.h"
+#include "mojo/services/native_viewport/native_viewport_controller.h"
#include "mojo/shell/context.h"
typedef MojoResult (*MojoMainFunction)(mojo::Handle pipe);
@@ -89,15 +90,18 @@ void AppContainer::DidCompleteLoad(const GURL& app_url,
if (result < MOJO_RESULT_OK) {
// Failure..
}
+
+ // TODO(beng): This should be created on demand by the NativeViewportService
+ // when it is retrieved by the app.
+ native_viewport_controller_.reset(
+ new services::NativeViewportController(shell_handle_));
}
void AppContainer::AppCompleted() {
+ native_viewport_controller_->Close();
+
thread_.reset();
Close(shell_handle_);
-
- // Probably want to do something more sophisticated here, like notify someone
- // else to do this.
- base::MessageLoop::current()->Quit();
}
} // namespace shell
« no previous file with comments | « mojo/shell/app_container.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698