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

Unified Diff: ui/display/desktop.cc

Issue 2108933003: Reorder browser list on workspace switch (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase & add desktop.* :P Created 4 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: ui/display/desktop.cc
diff --git a/ui/display/desktop.cc b/ui/display/desktop.cc
new file mode 100644
index 0000000000000000000000000000000000000000..c0238f23fc2d8996456c1b6a359a740bc007e169
--- /dev/null
+++ b/ui/display/desktop.cc
@@ -0,0 +1,21 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "ui/display/desktop.h"
+
+namespace display {
+
+//static
+base::LazyInstance<base::ObserverList<DesktopObserver>>::Leaky
+ Desktop::desktop_observer_list_;
+
+void Desktop::AddObserver(DesktopObserver* observer) {
+ desktop_observer_list_.Get().AddObserver(observer);
+}
+
+void Desktop::RemoveObserver(DesktopObserver* observer) {
+ desktop_observer_list_.Get().RemoveObserver(observer);
+}
+
+} // namespace display
« ui/display/desktop.h ('K') | « ui/display/desktop.h ('k') | ui/display/desktop_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698