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

Unified Diff: chrome/browser/ui/browser_list.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
« no previous file with comments | « no previous file | chrome/browser/ui/browser_list.cc » ('j') | ui/display/desktop_observer.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/browser_list.h
diff --git a/chrome/browser/ui/browser_list.h b/chrome/browser/ui/browser_list.h
index 19ffaba1b1a12823e86f80566639b3f59965c185..99c42d611aeb4234fdededf3c9f06f3bf97be672 100644
--- a/chrome/browser/ui/browser_list.h
+++ b/chrome/browser/ui/browser_list.h
@@ -12,6 +12,7 @@
#include "base/lazy_instance.h"
#include "base/macros.h"
#include "base/observer_list.h"
+#include "ui/display/desktop_observer.h"
class Browser;
class Profile;
@@ -25,7 +26,7 @@ class BrowserListObserver;
}
// Maintains a list of Browser objects.
-class BrowserList {
+class BrowserList : private display::desktop::DesktopObserver {
Lei Zhang 2016/06/29 20:51:01 This stays public, but you can leave the overrides
Tom (Use chromium acct) 2016/06/29 21:12:50 Done.
public:
typedef std::vector<Browser*> BrowserVector;
typedef BrowserVector::const_iterator const_iterator;
@@ -96,7 +97,10 @@ class BrowserList {
private:
BrowserList();
- ~BrowserList();
+ ~BrowserList() override;
+
+ // display::DesktopObserver:
+ void OnWorkspaceChanged(const std::string& new_workspace) override;
// Helper method to remove a browser instance from a list of browsers
static void RemoveBrowserFrom(Browser* browser, BrowserVector* browser_list);
« no previous file with comments | « no previous file | chrome/browser/ui/browser_list.cc » ('j') | ui/display/desktop_observer.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698