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

Side by Side Diff: chrome/browser/ui/browser_list_observer.h

Issue 10692195: Consolidate Browser Creation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 4 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
« no previous file with comments | « chrome/browser/ui/browser_list_impl.cc ('k') | chrome/browser/ui/browser_mac.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_BROWSER_LIST_OBSERVER_H_ 5 #ifndef CHROME_BROWSER_UI_BROWSER_LIST_OBSERVER_H_
6 #define CHROME_BROWSER_UI_BROWSER_LIST_OBSERVER_H_ 6 #define CHROME_BROWSER_UI_BROWSER_LIST_OBSERVER_H_
7 7
8 class Browser; 8 class Browser;
9 9
10 namespace chrome { 10 namespace chrome {
11 11
12 // Implementations must not change the contents of the BrowserList inside any
13 // of these methods.
14 class BrowserListObserver { 12 class BrowserListObserver {
15 public: 13 public:
16 // Called immediately after a browser is added to the list 14 // Called immediately after a browser is added to the list
17 virtual void OnBrowserAdded(Browser* browser) {} 15 virtual void OnBrowserAdded(Browser* browser) {}
18 16
19 // Called immediately after a browser is removed from the list 17 // Called immediately after a browser is removed from the list
20 virtual void OnBrowserRemoved(Browser* browser) {} 18 virtual void OnBrowserRemoved(Browser* browser) {}
21 19
22 // Called immediately after a browser is set active (SetLastActive) 20 // Called immediately after a browser is set active (SetLastActive)
23 virtual void OnBrowserSetLastActive(Browser* browser) {} 21 virtual void OnBrowserSetLastActive(Browser* browser) {}
24 22
25 protected: 23 protected:
26 virtual ~BrowserListObserver() {} 24 virtual ~BrowserListObserver() {}
27 }; 25 };
28 26
29 } // namespace chrome 27 } // namespace chrome
30 28
31 #endif // CHROME_BROWSER_UI_BROWSER_LIST_OBSERVER_H_ 29 #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/browser_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698