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

Side by Side Diff: services/window_manager/window_manager_impl.cc

Issue 765753003: Move window_manager service implementation to //services (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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "mojo/services/window_manager/window_manager_impl.h" 5 #include "services/window_manager/window_manager_impl.h"
6 6
7 #include "mojo/services/window_manager/window_manager_app.h" 7 #include "services/window_manager/window_manager_app.h"
8 8
9 namespace mojo { 9 namespace mojo {
10 10
11 WindowManagerImpl::WindowManagerImpl(WindowManagerApp* window_manager, 11 WindowManagerImpl::WindowManagerImpl(WindowManagerApp* window_manager,
12 bool from_vm) 12 bool from_vm)
13 : window_manager_(window_manager), from_vm_(from_vm), binding_(this) { 13 : window_manager_(window_manager), from_vm_(from_vm), binding_(this) {
14 window_manager_->AddConnection(this); 14 window_manager_->AddConnection(this);
15 binding_.set_error_handler(this); 15 binding_.set_error_handler(this);
16 } 16 }
17 17
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 if (success) 72 if (success)
73 window_manager_->ActivateWindow(view); 73 window_manager_->ActivateWindow(view);
74 callback.Run(success); 74 callback.Run(success);
75 } 75 }
76 76
77 void WindowManagerImpl::OnConnectionError() { 77 void WindowManagerImpl::OnConnectionError() {
78 delete this; 78 delete this;
79 } 79 }
80 80
81 } // namespace mojo 81 } // namespace mojo
OLDNEW
« no previous file with comments | « services/window_manager/window_manager_impl.h ('k') | services/window_manager/window_manager_test_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698