| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_TABS_TAB_STRIP_MODEL_OBSERVER_H_ | 5 #ifndef CHROME_BROWSER_TABS_TAB_STRIP_MODEL_OBSERVER_H_ |
| 6 #define CHROME_BROWSER_TABS_TAB_STRIP_MODEL_OBSERVER_H_ | 6 #define CHROME_BROWSER_TABS_TAB_STRIP_MODEL_OBSERVER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 class TabContentsWrapper; | 9 class TabContentsWrapper; |
| 10 class TabStripModel; | 10 class TabStripModel; |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 | 120 |
| 121 // The TabStripModel now no longer has any tabs. The implementer may | 121 // The TabStripModel now no longer has any tabs. The implementer may |
| 122 // use this as a trigger to try and close the window containing the | 122 // use this as a trigger to try and close the window containing the |
| 123 // TabStripModel, for example... | 123 // TabStripModel, for example... |
| 124 virtual void TabStripEmpty(); | 124 virtual void TabStripEmpty(); |
| 125 | 125 |
| 126 // Sent when the tabstrip model is about to be deleted and any reference held | 126 // Sent when the tabstrip model is about to be deleted and any reference held |
| 127 // must be dropped. | 127 // must be dropped. |
| 128 virtual void TabStripModelDeleted(); | 128 virtual void TabStripModelDeleted(); |
| 129 | 129 |
| 130 // Invoked when an active/selected tab at |index| is selected again (ie - the |
| 131 // active/foreground tab is clicked). |
| 132 virtual void ActiveTabClicked(int index); |
| 133 |
| 130 protected: | 134 protected: |
| 131 virtual ~TabStripModelObserver() {} | 135 virtual ~TabStripModelObserver() {} |
| 132 }; | 136 }; |
| 133 | 137 |
| 134 #endif // CHROME_BROWSER_TABS_TAB_STRIP_MODEL_OBSERVER_H_ | 138 #endif // CHROME_BROWSER_TABS_TAB_STRIP_MODEL_OBSERVER_H_ |
| OLD | NEW |