OLD | NEW |
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_TABS_TAB_STRIP_MODEL_OBSERVER_H_ | 5 #ifndef CHROME_BROWSER_UI_TABS_TAB_STRIP_MODEL_OBSERVER_H_ |
6 #define CHROME_BROWSER_UI_TABS_TAB_STRIP_MODEL_OBSERVER_H_ | 6 #define CHROME_BROWSER_UI_TABS_TAB_STRIP_MODEL_OBSERVER_H_ |
7 | 7 |
| 8 #include "base/macros.h" |
| 9 |
8 class TabStripModel; | 10 class TabStripModel; |
9 | 11 |
10 namespace content { | 12 namespace content { |
11 class WebContents; | 13 class WebContents; |
12 } | 14 } |
13 | 15 |
14 namespace ui { | 16 namespace ui { |
15 class ListSelectionModel; | 17 class ListSelectionModel; |
16 } | 18 } |
17 | 19 |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 // Sent any time an attempt is made to close all the tabs. This is not | 147 // Sent any time an attempt is made to close all the tabs. This is not |
146 // necessarily the result of CloseAllTabs(). For example, if the user closes | 148 // necessarily the result of CloseAllTabs(). For example, if the user closes |
147 // the last tab WillCloseAllTabs() is sent. If the close does not succeed | 149 // the last tab WillCloseAllTabs() is sent. If the close does not succeed |
148 // during the current event (say unload handlers block it) then | 150 // during the current event (say unload handlers block it) then |
149 // CloseAllTabsCanceled() is sent. Also note that if the last tab is detached | 151 // CloseAllTabsCanceled() is sent. Also note that if the last tab is detached |
150 // (DetachWebContentsAt()) then this is not sent. | 152 // (DetachWebContentsAt()) then this is not sent. |
151 virtual void WillCloseAllTabs(); | 153 virtual void WillCloseAllTabs(); |
152 virtual void CloseAllTabsCanceled(); | 154 virtual void CloseAllTabsCanceled(); |
153 | 155 |
154 protected: | 156 protected: |
| 157 TabStripModelObserver(); |
155 virtual ~TabStripModelObserver() {} | 158 virtual ~TabStripModelObserver() {} |
| 159 |
| 160 private: |
| 161 DISALLOW_COPY_AND_ASSIGN(TabStripModelObserver); |
156 }; | 162 }; |
157 | 163 |
158 #endif // CHROME_BROWSER_UI_TABS_TAB_STRIP_MODEL_OBSERVER_H_ | 164 #endif // CHROME_BROWSER_UI_TABS_TAB_STRIP_MODEL_OBSERVER_H_ |
OLD | NEW |