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

Side by Side 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: Moved code into ChromeBrowserMainExtraPartsX11 Created 4 years, 5 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef UI_DISPLAY_DESKTOP_H_
6 #define UI_DISPLAY_DESKTOP_H_
7
8 #include "base/lazy_instance.h"
9 #include "base/observer_list.h"
10 #include "ui/display/display_export.h"
11
12 namespace display {
13
14 class DesktopObserver;
15
16 class DISPLAY_EXPORT Desktop {
17 public:
18 // Retreives the Desktop singleton.
19 static Desktop* GetDesktop();
Tom (Use chromium acct) 2016/07/06 18:19:11 GetDesktop currently is not used anywhere, but Chr
sky 2016/07/06 20:33:05 Yes. Here is what I recommend doing: . remove all
Tom (Use chromium acct) 2016/07/06 22:29:16 Done.
20
21 // Sets the Desktop singleton instance.
22 static void SetDesktopInstance(Desktop* desktop);
23
24 void AddObserver(DesktopObserver* observer);
25 void RemoveObserver(DesktopObserver* observer);
26
27 protected:
28 Desktop();
29 ~Desktop();
30
31 base::ObserverList<DesktopObserver> desktop_observer_list_;
32 };
33
34 } // namespace display
35
36 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698