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

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

Issue 2589663003: mojo:: Rename mojo::GetProxy() to mojo::MakeRequest() (Closed)
Patch Set: Rebase Created 4 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
« 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
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(
53 GetProxy(&window_manager_internal_, client_.associated_group())); 53 MakeRequest(&window_manager_internal_, client_.associated_group()));
54 return window_manager_internal_.get(); 54 return window_manager_internal_.get();
55 } 55 }
56 56
57 void DefaultWindowTreeBinding::SetIncomingMethodCallProcessingPaused( 57 void DefaultWindowTreeBinding::SetIncomingMethodCallProcessingPaused(
58 bool paused) { 58 bool paused) {
59 if (paused) 59 if (paused)
60 binding_.PauseIncomingMethodCallProcessing(); 60 binding_.PauseIncomingMethodCallProcessing();
61 else 61 else
62 binding_.ResumeIncomingMethodCallProcessing(); 62 binding_.ResumeIncomingMethodCallProcessing();
63 } 63 }
64 64
65 mojom::WindowTreeClient* DefaultWindowTreeBinding::CreateClientForShutdown() { 65 mojom::WindowTreeClient* DefaultWindowTreeBinding::CreateClientForShutdown() {
66 client_.reset(); 66 client_.reset();
67 GetProxy(&client_); 67 MakeRequest(&client_);
68 return client_.get(); 68 return client_.get();
69 } 69 }
70 70
71 } // namespace ws 71 } // namespace ws
72 } // namespace ui 72 } // 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