| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_COCOA_TAB_STRIP_MODEL_OBSERVER_BRIDGE_H_ | 5 #ifndef CHROME_BROWSER_COCOA_TAB_STRIP_MODEL_OBSERVER_BRIDGE_H_ |
| 6 #define CHROME_BROWSER_COCOA_TAB_STRIP_MODEL_OBSERVER_BRIDGE_H_ | 6 #define CHROME_BROWSER_COCOA_TAB_STRIP_MODEL_OBSERVER_BRIDGE_H_ |
| 7 | 7 |
| 8 #import <Foundation/Foundation.h> | 8 #import <Foundation/Foundation.h> |
| 9 | 9 |
| 10 #include "chrome/browser/tabs/tab_strip_model.h" | 10 #include "chrome/browser/tabs/tab_strip_model.h" |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 int index, | 26 int index, |
| 27 bool foreground); | 27 bool foreground); |
| 28 virtual void TabClosingAt(TabContents* contents, int index); | 28 virtual void TabClosingAt(TabContents* contents, int index); |
| 29 virtual void TabDetachedAt(TabContents* contents, int index); | 29 virtual void TabDetachedAt(TabContents* contents, int index); |
| 30 virtual void TabSelectedAt(TabContents* old_contents, | 30 virtual void TabSelectedAt(TabContents* old_contents, |
| 31 TabContents* new_contents, | 31 TabContents* new_contents, |
| 32 int index, | 32 int index, |
| 33 bool user_gesture); | 33 bool user_gesture); |
| 34 virtual void TabMoved(TabContents* contents, | 34 virtual void TabMoved(TabContents* contents, |
| 35 int from_index, | 35 int from_index, |
| 36 int to_index); | 36 int to_index, |
| 37 bool pinned_state_changed); |
| 37 virtual void TabChangedAt(TabContents* contents, int index, | 38 virtual void TabChangedAt(TabContents* contents, int index, |
| 38 bool loading_only); | 39 bool loading_only); |
| 39 virtual void TabStripEmpty(); | 40 virtual void TabStripEmpty(); |
| 40 | 41 |
| 41 private: | 42 private: |
| 42 id controller_; // weak, owns me | 43 id controller_; // weak, owns me |
| 43 TabStripModel* model_; // weak, owned by Browser | 44 TabStripModel* model_; // weak, owned by Browser |
| 44 }; | 45 }; |
| 45 | 46 |
| 46 // A collection of methods which can be selectively implemented by any | 47 // A collection of methods which can be selectively implemented by any |
| (...skipping 14 matching lines...) Expand all Loading... |
| 61 - (void)tabMovedWithContents:(TabContents*)contents | 62 - (void)tabMovedWithContents:(TabContents*)contents |
| 62 fromIndex:(NSInteger)from | 63 fromIndex:(NSInteger)from |
| 63 toIndex:(NSInteger)to; | 64 toIndex:(NSInteger)to; |
| 64 - (void)tabChangedWithContents:(TabContents*)contents | 65 - (void)tabChangedWithContents:(TabContents*)contents |
| 65 atIndex:(NSInteger)index | 66 atIndex:(NSInteger)index |
| 66 loadingOnly:(BOOL)loading; | 67 loadingOnly:(BOOL)loading; |
| 67 - (void)tabStripEmpty; | 68 - (void)tabStripEmpty; |
| 68 @end | 69 @end |
| 69 | 70 |
| 70 #endif // CHROME_BROWSER_COCOA_TAB_STRIP_MODEL_OBSERVER_BRIDGE_H_ | 71 #endif // CHROME_BROWSER_COCOA_TAB_STRIP_MODEL_OBSERVER_BRIDGE_H_ |
| OLD | NEW |