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

Unified Diff: chrome/browser/ui/browser_list_observer.h

Issue 10690151: Move implementation of BrowserList onto an inner, instantiatable class, BrowserListImpl. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/browser_list_impl.cc ('k') | chrome/browser/ui/cocoa/profile_menu_controller.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/browser_list_observer.h
===================================================================
--- chrome/browser/ui/browser_list_observer.h (revision 0)
+++ chrome/browser/ui/browser_list_observer.h (revision 0)
@@ -0,0 +1,31 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
tfarina 2012/07/13 00:55:22 Thanks for doing this! Although I had a patch in m
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_UI_BROWSER_LIST_OBSERVER_H_
+#define CHROME_BROWSER_UI_BROWSER_LIST_OBSERVER_H_
+
+class Browser;
+
+namespace chrome {
+
+// Implementations must not change the contents of the BrowserList inside any
+// of these methods.
+class BrowserListObserver {
+ public:
tfarina 2012/07/13 00:55:22 nit: indent one less space ;)
+ // Called immediately after a browser is added to the list
+ virtual void OnBrowserAdded(Browser* browser) {}
+
+ // Called immediately after a browser is removed from the list
+ virtual void OnBrowserRemoved(Browser* browser) {}
+
+ // Called immediately after a browser is set active (SetLastActive)
+ virtual void OnBrowserSetLastActive(Browser* browser) {}
+
+ protected:
+ virtual ~BrowserListObserver() {}
+};
+
+} // namespace chrome
+
+#endif // CHROME_BROWSER_UI_BROWSER_LIST_OBSERVER_H_
Property changes on: chrome\browser\ui\browser_list_observer.h
___________________________________________________________________
Added: svn:eol-style
+ LF
« no previous file with comments | « chrome/browser/ui/browser_list_impl.cc ('k') | chrome/browser/ui/cocoa/profile_menu_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698