| 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 class TabContents; | 8 class TabContents; |
| 9 class TabStripModel; | 9 class TabStripModel; |
| 10 class TabStripSelectionModel; | 10 class TabStripSelectionModel; |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 int index, | 83 int index, |
| 84 bool user_gesture); | 84 bool user_gesture); |
| 85 | 85 |
| 86 // Sent when the selection changes in |tab_strip_model|. More precisely when | 86 // Sent when the selection changes in |tab_strip_model|. More precisely when |
| 87 // selected tabs, anchor tab or active tab change. |old_model| is a snapshot | 87 // selected tabs, anchor tab or active tab change. |old_model| is a snapshot |
| 88 // of the selection model before the change. See also ActiveTabChanged for | 88 // of the selection model before the change. See also ActiveTabChanged for |
| 89 // details. | 89 // details. |
| 90 virtual void TabSelectionChanged(TabStripModel* tab_strip_model, | 90 virtual void TabSelectionChanged(TabStripModel* tab_strip_model, |
| 91 const TabStripSelectionModel& old_model); | 91 const TabStripSelectionModel& old_model); |
| 92 | 92 |
| 93 // The specified TabContents at |from_index| was moved to |to_index|. | 93 // The specified WebContents at |from_index| was moved to |to_index|. |
| 94 virtual void TabMoved(TabContents* contents, | 94 virtual void TabMoved(content::WebContents* contents, |
| 95 int from_index, | 95 int from_index, |
| 96 int to_index); | 96 int to_index); |
| 97 | 97 |
| 98 // The specified TabContents at |index| changed in some way. |contents| | 98 // The specified TabContents at |index| changed in some way. |contents| |
| 99 // may be an entirely different object and the old value is no longer | 99 // may be an entirely different object and the old value is no longer |
| 100 // available by the time this message is delivered. | 100 // available by the time this message is delivered. |
| 101 // | 101 // |
| 102 // See TabChangeType for a description of |change_type|. | 102 // See TabChangeType for a description of |change_type|. |
| 103 virtual void TabChangedAt(TabContents* contents, | 103 virtual void TabChangedAt(TabContents* contents, |
| 104 int index, | 104 int index, |
| (...skipping 30 matching lines...) Expand all Loading... |
| 135 | 135 |
| 136 // Sent when the tabstrip model is about to be deleted and any reference held | 136 // Sent when the tabstrip model is about to be deleted and any reference held |
| 137 // must be dropped. | 137 // must be dropped. |
| 138 virtual void TabStripModelDeleted(); | 138 virtual void TabStripModelDeleted(); |
| 139 | 139 |
| 140 protected: | 140 protected: |
| 141 virtual ~TabStripModelObserver() {} | 141 virtual ~TabStripModelObserver() {} |
| 142 }; | 142 }; |
| 143 | 143 |
| 144 #endif // CHROME_BROWSER_UI_TABS_TAB_STRIP_MODEL_OBSERVER_H_ | 144 #endif // CHROME_BROWSER_UI_TABS_TAB_STRIP_MODEL_OBSERVER_H_ |
| OLD | NEW |