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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 // 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
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 CHROME_BROWSER_UI_BROWSER_LIST_OBSERVER_H_
6 #define CHROME_BROWSER_UI_BROWSER_LIST_OBSERVER_H_
7
8 class Browser;
9
10 namespace chrome {
11
12 // Implementations must not change the contents of the BrowserList inside any
13 // of these methods.
14 class BrowserListObserver {
15 public:
tfarina 2012/07/13 00:55:22 nit: indent one less space ;)
16 // Called immediately after a browser is added to the list
17 virtual void OnBrowserAdded(Browser* browser) {}
18
19 // Called immediately after a browser is removed from the list
20 virtual void OnBrowserRemoved(Browser* browser) {}
21
22 // Called immediately after a browser is set active (SetLastActive)
23 virtual void OnBrowserSetLastActive(Browser* browser) {}
24
25 protected:
26 virtual ~BrowserListObserver() {}
27 };
28
29 } // namespace chrome
30
31 #endif // CHROME_BROWSER_UI_BROWSER_LIST_OBSERVER_H_
OLDNEW
« 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