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

Side by Side Diff: services/ui/ws/window_tree_binding.cc

Issue 2696233002: Mojo C++ bindings: remove some usage of AssociatedGroup from user code. (Closed)
Patch Set: . Created 3 years, 10 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 unified diff | Download patch
« no previous file with comments | « services/ui/ws/window_server.cc ('k') | services/ui/ws/window_tree_client_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "services/ui/ws/window_tree_binding.h" 5 #include "services/ui/ws/window_tree_binding.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "services/ui/ws/window_server.h" 8 #include "services/ui/ws/window_server.h"
9 #include "services/ui/ws/window_tree.h" 9 #include "services/ui/ws/window_tree.h"
10 10
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 client_(std::move(client)) {} 42 client_(std::move(client)) {}
43 43
44 DefaultWindowTreeBinding::~DefaultWindowTreeBinding() {} 44 DefaultWindowTreeBinding::~DefaultWindowTreeBinding() {}
45 45
46 mojom::WindowTreePtr DefaultWindowTreeBinding::CreateInterfacePtrAndBind() { 46 mojom::WindowTreePtr DefaultWindowTreeBinding::CreateInterfacePtrAndBind() {
47 DCHECK(!binding_.is_bound()); 47 DCHECK(!binding_.is_bound());
48 return binding_.CreateInterfacePtrAndBind(); 48 return binding_.CreateInterfacePtrAndBind();
49 } 49 }
50 50
51 mojom::WindowManager* DefaultWindowTreeBinding::GetWindowManager() { 51 mojom::WindowManager* DefaultWindowTreeBinding::GetWindowManager() {
52 client_->GetWindowManager( 52 client_->GetWindowManager(MakeRequest(&window_manager_internal_));
53 MakeRequest(&window_manager_internal_, client_.associated_group()));
54 return window_manager_internal_.get(); 53 return window_manager_internal_.get();
55 } 54 }
56 55
57 void DefaultWindowTreeBinding::SetIncomingMethodCallProcessingPaused( 56 void DefaultWindowTreeBinding::SetIncomingMethodCallProcessingPaused(
58 bool paused) { 57 bool paused) {
59 if (paused) 58 if (paused)
60 binding_.PauseIncomingMethodCallProcessing(); 59 binding_.PauseIncomingMethodCallProcessing();
61 else 60 else
62 binding_.ResumeIncomingMethodCallProcessing(); 61 binding_.ResumeIncomingMethodCallProcessing();
63 } 62 }
64 63
65 mojom::WindowTreeClient* DefaultWindowTreeBinding::CreateClientForShutdown() { 64 mojom::WindowTreeClient* DefaultWindowTreeBinding::CreateClientForShutdown() {
66 client_.reset(); 65 client_.reset();
67 MakeRequest(&client_); 66 MakeRequest(&client_);
68 return client_.get(); 67 return client_.get();
69 } 68 }
70 69
71 } // namespace ws 70 } // namespace ws
72 } // namespace ui 71 } // namespace ui
OLDNEW
« no previous file with comments | « services/ui/ws/window_server.cc ('k') | services/ui/ws/window_tree_client_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698