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

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

Issue 718473003: Add mojo::Binding<Interface> for more flexible pipe<->impl binding (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Rename Binding::router() -> Binding::internal_router() Created 6 years, 1 month 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 "mojo/services/window_manager/window_manager_impl.h"
6 6
7 #include "mojo/services/window_manager/window_manager_app.h" 7 #include "mojo/services/window_manager/window_manager_app.h"
8 8
9 namespace mojo { 9 namespace mojo {
10 10
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 const Callback<void(bool)>& callback) { 67 const Callback<void(bool)>& callback) {
68 if (!from_vm_) 68 if (!from_vm_)
69 return; // See comments for |from_vm_| on this. 69 return; // See comments for |from_vm_| on this.
70 70
71 bool success = window_manager_->IsReady(); 71 bool success = window_manager_->IsReady();
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::OnConnectionEstablished() {
78 }
79
80 } // namespace mojo 77 } // namespace mojo
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698