Chromium Code Reviews| 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 |