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

Unified Diff: ui/display/desktop.h

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
« no previous file with comments | « ui/display/BUILD.gn ('k') | ui/display/desktop.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/display/desktop.h
diff --git a/ui/display/desktop.h b/ui/display/desktop.h
new file mode 100644
index 0000000000000000000000000000000000000000..ef4d766452f4aa3276acca1427db9846ecd3b872
--- /dev/null
+++ b/ui/display/desktop.h
@@ -0,0 +1,27 @@
+// 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.
+
+#ifndef UI_DISPLAY_DESKTOP_H_
+#define UI_DISPLAY_DESKTOP_H_
+
+#include "base/lazy_instance.h"
+#include "base/observer_list.h"
+#include "ui/display/display_export.h"
+
+namespace display {
+
+class DesktopObserver;
+
+class DISPLAY_EXPORT Desktop {
sky 2016/07/01 22:18:33 Sorry for not being clear. I was suggesting you ha
+public:
+ static void AddObserver(DesktopObserver* observer);
+ static void RemoveObserver(DesktopObserver* observer);
+protected:
+ static base::LazyInstance<base::ObserverList<DesktopObserver>>::Leaky
+ desktop_observer_list_;
+};
+
+} // namespace display
+
+#endif
« no previous file with comments | « ui/display/BUILD.gn ('k') | ui/display/desktop.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698