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

Side by Side 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, 5 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 unified diff | Download patch
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698