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

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

Issue 2793443003: Removed NOTIFICATION_BROWSER_CLOSING notification (Closed)
Patch Set: Reset g_shutdown_type on close cancel Created 3 years, 8 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
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 class BrowserListObserver { 12 class BrowserListObserver {
13 public: 13 public:
14 // Called immediately after a browser is added to the list 14 // Called immediately after a browser is added to the list
15 virtual void OnBrowserAdded(Browser* browser) {} 15 virtual void OnBrowserAdded(Browser* browser) {}
16 16
17 // When a browser closes OnBrowserCloseStarted() is called. This is
18 // followed by one of OnBrowserCloseCancelled() or OnBrowserRemoved().
19 virtual void OnBrowserCloseStarted(Browser* browser) {}
20
21 // Called when a browser closing is cancelled.
22 virtual void OnBrowserCloseCancelled(Browser* browser) {}
23
17 // Called immediately after a browser is removed from the list 24 // Called immediately after a browser is removed from the list
18 virtual void OnBrowserRemoved(Browser* browser) {} 25 virtual void OnBrowserRemoved(Browser* browser) {}
19 26
20 // Called immediately after a browser is set active (SetLastActive) 27 // Called immediately after a browser is set active (SetLastActive)
21 virtual void OnBrowserSetLastActive(Browser* browser) {} 28 virtual void OnBrowserSetLastActive(Browser* browser) {}
22 29
23 // Called immediately after a browser becomes not active. 30 // Called immediately after a browser becomes not active.
24 virtual void OnBrowserNoLongerActive(Browser* browser) {} 31 virtual void OnBrowserNoLongerActive(Browser* browser) {}
25 32
26 protected: 33 protected:
27 virtual ~BrowserListObserver() {} 34 virtual ~BrowserListObserver() {}
28 }; 35 };
29 36
30 } // namespace chrome 37 } // namespace chrome
31 38
32 #endif // CHROME_BROWSER_UI_BROWSER_LIST_OBSERVER_H_ 39 #endif // CHROME_BROWSER_UI_BROWSER_LIST_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698