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_OBSERVER_H_ | |
6 #define UI_DISPLAY_DESKTOP_OBSERVER_H_ | |
7 | |
8 #include <string> | |
9 | |
10 #include "base/observer_list.h" | |
Lei Zhang
2016/06/29 20:51:01
Move to .cc
Tom (Use chromium acct)
2016/06/29 21:12:50
Done.
| |
11 #include "ui/display/display_export.h" | |
12 | |
13 namespace display { | |
14 | |
15 namespace desktop { | |
16 | |
17 // Observers for desktop configuration changes. | |
18 class DISPLAY_EXPORT DesktopObserver { | |
19 public: | |
20 virtual void OnWorkspaceChanged(const std::string& new_workspace) = 0; | |
Lei Zhang
2016/06/29 20:51:01
Please describe what the method(s) do.
Tom (Use chromium acct)
2016/06/29 21:12:50
Done.
| |
21 | |
22 protected: | |
23 virtual ~DesktopObserver(); | |
24 }; | |
25 | |
26 DISPLAY_EXPORT void AddObserver(DesktopObserver* observer); | |
27 DISPLAY_EXPORT void RemoveObserver(DesktopObserver* observer); | |
28 DISPLAY_EXPORT void OnWorkspaceChanged(const std::string& new_workspace); | |
29 | |
30 } // namespace display | |
31 | |
32 } // namespace desktop | |
33 | |
34 #endif // UI_DISPLAY_DESKTOP_OBSERVER_H_ | |
OLD | NEW |