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..e020477f1ad620c1de6471a007197e5122ac67ca |
--- /dev/null |
+++ b/ui/display/desktop_observer.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_OBSERVER_H_ |
+#define UI_DISPLAY_DESKTOP_OBSERVER_H_ |
+ |
+#include <string> |
+ |
+#include "ui/display/display_export.h" |
+ |
+namespace display { |
+ |
+// Observers for desktop configuration changes. |
+class DISPLAY_EXPORT DesktopObserver { |
+ public: |
+ // Called when the (platform-specific) workspace ID changes to |
+ // |new_workspace|. |
+ virtual void OnWorkspaceChanged(const std::string& new_workspace) = 0; |
+ |
+ protected: |
+ virtual ~DesktopObserver(); |
+}; |
+ |
+} // namespace display |
+ |
+#endif // UI_DISPLAY_DESKTOP_OBSERVER_H_ |