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

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

Issue 2793443003: Removed NOTIFICATION_BROWSER_CLOSING notification (Closed)
Patch Set: Removed NOTIFICATION_BROWSER_CLOSING as separate patch Created 3 years, 7 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 may be called
18 // more than once for a particular browser.
19 virtual void OnBrowserCloseStarted(Browser* browser) {}
sky 2017/05/09 17:19:28 Please name this OnBrowserClosing() with a comment
Alexey Seren 2017/05/10 10:25:30 Acknowledged.
20
17 // Called immediately after a browser is removed from the list 21 // Called immediately after a browser is removed from the list
18 virtual void OnBrowserRemoved(Browser* browser) {} 22 virtual void OnBrowserRemoved(Browser* browser) {}
19 23
20 // Called immediately after a browser is set active (SetLastActive) 24 // Called immediately after a browser is set active (SetLastActive)
21 virtual void OnBrowserSetLastActive(Browser* browser) {} 25 virtual void OnBrowserSetLastActive(Browser* browser) {}
22 26
23 // Called immediately after a browser becomes not active. 27 // Called immediately after a browser becomes not active.
24 virtual void OnBrowserNoLongerActive(Browser* browser) {} 28 virtual void OnBrowserNoLongerActive(Browser* browser) {}
25 29
26 protected: 30 protected:
27 virtual ~BrowserListObserver() {} 31 virtual ~BrowserListObserver() {}
28 }; 32 };
29 33
30 } // namespace chrome 34 } // namespace chrome
31 35
32 #endif // CHROME_BROWSER_UI_BROWSER_LIST_OBSERVER_H_ 36 #endif // CHROME_BROWSER_UI_BROWSER_LIST_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698