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

Unified Diff: services/window_manager/main.cc

Issue 788453002: Put code in //services/window_manager in namespace window_manager (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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
Index: services/window_manager/main.cc
diff --git a/services/window_manager/main.cc b/services/window_manager/main.cc
index be31d35db8ae208a3501128962499a72a6f72a71..c25ab766dc7c79fd6b9ac8febf635034c73e61f4 100644
--- a/services/window_manager/main.cc
+++ b/services/window_manager/main.cc
@@ -17,10 +17,13 @@
// core window manager tests) that do not want to provide their own
// ApplicationDelegate::Create().
-namespace mojo {
+using mojo::View;
+using mojo::ViewManager;
-class DefaultWindowManager : public ApplicationDelegate,
- public ViewManagerDelegate,
+namespace window_manager {
+
+class DefaultWindowManager : public mojo::ApplicationDelegate,
+ public mojo::ViewManagerDelegate,
public WindowManagerDelegate {
public:
DefaultWindowManager()
@@ -30,12 +33,13 @@ class DefaultWindowManager : public ApplicationDelegate,
~DefaultWindowManager() override {}
private:
- // Overridden from ApplicationDelegate:
- void Initialize(ApplicationImpl* impl) override {
+ // Overridden from mojo::ApplicationDelegate:
+ void Initialize(mojo::ApplicationImpl* impl) override {
window_manager_app_->Initialize(impl);
- TracingImpl::Create(impl);
+ mojo::TracingImpl::Create(impl);
}
- bool ConfigureIncomingConnection(ApplicationConnection* connection) override {
+ bool ConfigureIncomingConnection(
+ mojo::ApplicationConnection* connection) override {
window_manager_app_->ConfigureIncomingConnection(connection);
return true;
}
@@ -43,16 +47,17 @@ class DefaultWindowManager : public ApplicationDelegate,
// Overridden from ViewManagerDelegate:
void OnEmbed(ViewManager* view_manager,
View* root,
- ServiceProviderImpl* exported_services,
- scoped_ptr<ServiceProvider> imported_services) override {
+ mojo::ServiceProviderImpl* exported_services,
+ scoped_ptr<mojo::ServiceProvider> imported_services) override {
view_manager_ = view_manager;
root_ = root;
}
void OnViewManagerDisconnected(ViewManager* view_manager) override {}
// Overridden from WindowManagerDelegate:
- void Embed(const String& url,
- InterfaceRequest<ServiceProvider> service_provider) override {
+ void Embed(
+ const mojo::String& url,
+ mojo::InterfaceRequest<mojo::ServiceProvider> service_provider) override {
View* view = View::Create(view_manager_);
root_->AddChild(view);
view->SetVisible(true);
@@ -68,9 +73,10 @@ class DefaultWindowManager : public ApplicationDelegate,
MOJO_DISALLOW_COPY_AND_ASSIGN(DefaultWindowManager);
};
-} // namespace mojo
+} // namespace window_manager
MojoResult MojoMain(MojoHandle shell_handle) {
- mojo::ApplicationRunnerChromium runner(new mojo::DefaultWindowManager);
+ mojo::ApplicationRunnerChromium runner(
+ new window_manager::DefaultWindowManager);
return runner.Run(shell_handle);
}
« no previous file with comments | « services/window_manager/focus_rules.h ('k') | services/window_manager/native_viewport_event_dispatcher_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698