OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_COCOA_TAB_STRIP_MODEL_OBSERVER_BRIDGE_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_TAB_STRIP_MODEL_OBSERVER_BRIDGE_H_ |
6 #define CHROME_BROWSER_UI_COCOA_TAB_STRIP_MODEL_OBSERVER_BRIDGE_H_ | 6 #define CHROME_BROWSER_UI_COCOA_TAB_STRIP_MODEL_OBSERVER_BRIDGE_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #import <Foundation/Foundation.h> | 9 #import <Foundation/Foundation.h> |
10 | 10 |
(...skipping 22 matching lines...) Expand all Loading... |
33 virtual void TabDetachedAt(TabContentsWrapper* contents, int index); | 33 virtual void TabDetachedAt(TabContentsWrapper* contents, int index); |
34 virtual void TabSelectedAt(TabContentsWrapper* old_contents, | 34 virtual void TabSelectedAt(TabContentsWrapper* old_contents, |
35 TabContentsWrapper* new_contents, | 35 TabContentsWrapper* new_contents, |
36 int index, | 36 int index, |
37 bool user_gesture); | 37 bool user_gesture); |
38 virtual void TabMoved(TabContentsWrapper* contents, | 38 virtual void TabMoved(TabContentsWrapper* contents, |
39 int from_index, | 39 int from_index, |
40 int to_index); | 40 int to_index); |
41 virtual void TabChangedAt(TabContentsWrapper* contents, int index, | 41 virtual void TabChangedAt(TabContentsWrapper* contents, int index, |
42 TabChangeType change_type); | 42 TabChangeType change_type); |
43 virtual void TabReplacedAt(TabContentsWrapper* old_contents, | 43 virtual void TabReplacedAt(TabStripModel* tab_strip_model, |
| 44 TabContentsWrapper* old_contents, |
44 TabContentsWrapper* new_contents, | 45 TabContentsWrapper* new_contents, |
45 int index); | 46 int index); |
46 virtual void TabMiniStateChanged(TabContentsWrapper* contents, int index); | 47 virtual void TabMiniStateChanged(TabContentsWrapper* contents, int index); |
47 virtual void TabStripEmpty(); | 48 virtual void TabStripEmpty(); |
48 virtual void TabStripModelDeleted(); | 49 virtual void TabStripModelDeleted(); |
49 | 50 |
50 private: | 51 private: |
51 id controller_; // weak, owns me | 52 id controller_; // weak, owns me |
52 TabStripModel* model_; // weak, owned by Browser | 53 TabStripModel* model_; // weak, owned by Browser |
53 }; | 54 }; |
(...skipping 22 matching lines...) Expand all Loading... |
76 - (void)tabReplacedWithContents:(TabContentsWrapper*)newContents | 77 - (void)tabReplacedWithContents:(TabContentsWrapper*)newContents |
77 previousContents:(TabContentsWrapper*)oldContents | 78 previousContents:(TabContentsWrapper*)oldContents |
78 atIndex:(NSInteger)index; | 79 atIndex:(NSInteger)index; |
79 - (void)tabMiniStateChangedWithContents:(TabContentsWrapper*)contents | 80 - (void)tabMiniStateChangedWithContents:(TabContentsWrapper*)contents |
80 atIndex:(NSInteger)index; | 81 atIndex:(NSInteger)index; |
81 - (void)tabStripEmpty; | 82 - (void)tabStripEmpty; |
82 - (void)tabStripModelDeleted; | 83 - (void)tabStripModelDeleted; |
83 @end | 84 @end |
84 | 85 |
85 #endif // CHROME_BROWSER_UI_COCOA_TAB_STRIP_MODEL_OBSERVER_BRIDGE_H_ | 86 #endif // CHROME_BROWSER_UI_COCOA_TAB_STRIP_MODEL_OBSERVER_BRIDGE_H_ |
OLD | NEW |