Chromium Code Reviews| Index: ui/display/desktop_observer.h |
| diff --git a/ui/display/desktop_observer.h b/ui/display/desktop_observer.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..7e605e71cca4f9aa6d02bf14d8b644974cf75d22 |
| --- /dev/null |
| +++ b/ui/display/desktop_observer.h |
| @@ -0,0 +1,29 @@ |
| +// Copyright (c) 2016 The Chromium Authors. All rights reserved. |
|
Lei Zhang
2016/06/29 18:30:53
no (c)
Tom (Use chromium acct)
2016/06/29 20:16:05
Done.
|
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef UI_DISPLAY_DESKTOP_OBSERVER_H_ |
| +#define UI_DISPLAY_DESKTOP_OBSERVER_H_ |
| + |
| +#include <string> |
| + |
| +#include "base/observer_list.h" |
| +#include "ui/display/display_export.h" |
| + |
| +namespace display { |
| + |
| +// Observers for desktop configuration changes. |
| +class DISPLAY_EXPORT DesktopObserver { |
| + public: |
| + virtual void OnWorkspaceChanged(const std::string& new_workspace) = 0; |
| + |
| + protected: |
| + virtual ~DesktopObserver(); |
| +}; |
| + |
| +DISPLAY_EXPORT extern base::ObserverList<display::DesktopObserver> |
| + g_desktop_observer_list; |
|
Elliot Glaysher
2016/06/29 18:21:09
I'm pretty sure you don't want to have a raw Obser
Tom (Use chromium acct)
2016/06/29 20:16:05
Done.
|
| + |
| +} // namespace display |
| + |
| +#endif // UI_DISPLAY_DESKTOP_OBSERVER_H_ |