Chromium Code Reviews| OLD | NEW |
|---|---|
| (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 | |
| OLD | NEW |