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

Side by Side Diff: components/mus/ws/user_display_manager.cc

Issue 1872903003: Generalize InterfacePtrSet for [Associated]InterfacePtr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Put PtrSet in mojo::internal. Created 4 years, 8 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 | « no previous file | content/browser/leveldb_wrapper_impl.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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 "components/mus/ws/user_display_manager.h" 5 #include "components/mus/ws/user_display_manager.h"
6 6
7 #include "components/mus/ws/display.h" 7 #include "components/mus/ws/display.h"
8 #include "components/mus/ws/display_manager.h" 8 #include "components/mus/ws/display_manager.h"
9 #include "components/mus/ws/window_manager_state.h" 9 #include "components/mus/ws/window_manager_state.h"
10 10
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 [&displays](mojom::DisplayManagerObserver* observer) { 109 [&displays](mojom::DisplayManagerObserver* observer) {
110 observer->OnDisplaysChanged(displays.Clone()); 110 observer->OnDisplaysChanged(displays.Clone());
111 }); 111 });
112 if (test_observer_) 112 if (test_observer_)
113 test_observer_->OnDisplaysChanged(displays.Clone()); 113 test_observer_->OnDisplaysChanged(displays.Clone());
114 } 114 }
115 115
116 void UserDisplayManager::AddObserver( 116 void UserDisplayManager::AddObserver(
117 mojom::DisplayManagerObserverPtr observer) { 117 mojom::DisplayManagerObserverPtr observer) {
118 mojom::DisplayManagerObserver* observer_impl = observer.get(); 118 mojom::DisplayManagerObserver* observer_impl = observer.get();
119 display_manager_observers_.AddInterfacePtr(std::move(observer)); 119 display_manager_observers_.AddPtr(std::move(observer));
120 OnObserverAdded(observer_impl); 120 OnObserverAdded(observer_impl);
121 } 121 }
122 122
123 } // namespace ws 123 } // namespace ws
124 } // namespace mus 124 } // namespace mus
OLDNEW
« no previous file with comments | « no previous file | content/browser/leveldb_wrapper_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698