Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(491)

Unified Diff: ui/display/desktop_observer.h

Issue 2108933003: Reorder browser list on workspace switch (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments from erg and thestig Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..29a471d6be51832d144b52dc50481db77d3e4ee3
--- /dev/null
+++ b/ui/display/desktop_observer.h
@@ -0,0 +1,34 @@
+// 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 "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.
+#include "ui/display/display_export.h"
+
+namespace display {
+
+namespace desktop {
+
+// Observers for desktop configuration changes.
+class DISPLAY_EXPORT DesktopObserver {
+ public:
+ 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.
+
+ protected:
+ virtual ~DesktopObserver();
+};
+
+DISPLAY_EXPORT void AddObserver(DesktopObserver* observer);
+DISPLAY_EXPORT void RemoveObserver(DesktopObserver* observer);
+DISPLAY_EXPORT void OnWorkspaceChanged(const std::string& new_workspace);
+
+} // namespace display
+
+} // namespace desktop
+
+#endif // UI_DISPLAY_DESKTOP_OBSERVER_H_

Powered by Google App Engine
This is Rietveld 408576698