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

Side by Side Diff: ui/views/mus/mus_client.cc

Issue 2655513002: mash: Relay some Chrome aura window properties to Ash. (Closed)
Patch Set: More cleanup. 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
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 "ui/views/mus/mus_client.h" 5 #include "ui/views/mus/mus_client.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/memory/ptr_util.h" 8 #include "base/memory/ptr_util.h"
9 #include "base/threading/thread.h" 9 #include "base/threading/thread.h"
10 #include "components/discardable_memory/client/client_discardable_shared_memory_ manager.h" 10 #include "components/discardable_memory/client/client_discardable_shared_memory_ manager.h"
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 } 219 }
220 220
221 void MusClient::AddObserver(MusClientObserver* observer) { 221 void MusClient::AddObserver(MusClientObserver* observer) {
222 observer_list_.AddObserver(observer); 222 observer_list_.AddObserver(observer);
223 } 223 }
224 224
225 void MusClient::RemoveObserver(MusClientObserver* observer) { 225 void MusClient::RemoveObserver(MusClientObserver* observer) {
226 observer_list_.RemoveObserver(observer); 226 observer_list_.RemoveObserver(observer);
227 } 227 }
228 228
229 void MusClient::OnWindowPropertyChanged(aura::Window* window, const void* key) {
230 for (auto& observer : observer_list_)
231 observer.OnWindowPropertyChanged(window, key);
232 }
233
229 void MusClient::OnEmbed( 234 void MusClient::OnEmbed(
230 std::unique_ptr<aura::WindowTreeHostMus> window_tree_host) { 235 std::unique_ptr<aura::WindowTreeHostMus> window_tree_host) {
231 NOTREACHED(); 236 NOTREACHED();
232 } 237 }
233 238
234 void MusClient::OnLostConnection(aura::WindowTreeClient* client) {} 239 void MusClient::OnLostConnection(aura::WindowTreeClient* client) {}
235 240
236 void MusClient::OnEmbedRootDestroyed( 241 void MusClient::OnEmbedRootDestroyed(
237 aura::WindowTreeHostMus* window_tree_host) { 242 aura::WindowTreeHostMus* window_tree_host) {
238 static_cast<DesktopWindowTreeHostMus*>(window_tree_host) 243 static_cast<DesktopWindowTreeHostMus*>(window_tree_host)
(...skipping 30 matching lines...) Expand all
269 return root->GetTopWindowContainingPoint(relative_point); 274 return root->GetTopWindowContainingPoint(relative_point);
270 } 275 }
271 return nullptr; 276 return nullptr;
272 } 277 }
273 278
274 std::unique_ptr<OSExchangeData::Provider> MusClient::BuildProvider() { 279 std::unique_ptr<OSExchangeData::Provider> MusClient::BuildProvider() {
275 return base::MakeUnique<aura::OSExchangeDataProviderMus>(); 280 return base::MakeUnique<aura::OSExchangeDataProviderMus>();
276 } 281 }
277 282
278 } // namespace views 283 } // namespace views
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698