| OLD | NEW |
| 1 // Copyright (c) 2010 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_UI_COCOA_TABS_TAB_STRIP_MODEL_OBSERVER_BRIDGE_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_TABS_TAB_STRIP_MODEL_OBSERVER_BRIDGE_H_ |
| 6 #define CHROME_BROWSER_UI_COCOA_TABS_TAB_STRIP_MODEL_OBSERVER_BRIDGE_H_ | 6 #define CHROME_BROWSER_UI_COCOA_TABS_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 |
| 11 #include "chrome/browser/tabs/tab_strip_model_observer.h" | 11 #include "chrome/browser/tabs/tab_strip_model_observer.h" |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 // Cocoa object to receive updates about changes to a tab strip model. It is | 57 // Cocoa object to receive updates about changes to a tab strip model. It is |
| 58 // ok to not implement them, the calling code checks before calling. | 58 // ok to not implement them, the calling code checks before calling. |
| 59 @interface NSObject(TabStripModelBridge) | 59 @interface NSObject(TabStripModelBridge) |
| 60 - (void)insertTabWithContents:(TabContentsWrapper*)contents | 60 - (void)insertTabWithContents:(TabContentsWrapper*)contents |
| 61 atIndex:(NSInteger)index | 61 atIndex:(NSInteger)index |
| 62 inForeground:(bool)inForeground; | 62 inForeground:(bool)inForeground; |
| 63 - (void)tabClosingWithContents:(TabContentsWrapper*)contents | 63 - (void)tabClosingWithContents:(TabContentsWrapper*)contents |
| 64 atIndex:(NSInteger)index; | 64 atIndex:(NSInteger)index; |
| 65 - (void)tabDetachedWithContents:(TabContentsWrapper*)contents | 65 - (void)tabDetachedWithContents:(TabContentsWrapper*)contents |
| 66 atIndex:(NSInteger)index; | 66 atIndex:(NSInteger)index; |
| 67 - (void)selectTabWithContents:(TabContentsWrapper*)newContents | 67 - (void)activateTabWithContents:(TabContentsWrapper*)newContents |
| 68 previousContents:(TabContentsWrapper*)oldContents | 68 previousContents:(TabContentsWrapper*)oldContents |
| 69 atIndex:(NSInteger)index | 69 atIndex:(NSInteger)index |
| 70 userGesture:(bool)wasUserGesture; | 70 userGesture:(bool)wasUserGesture; |
| 71 - (void)tabMovedWithContents:(TabContentsWrapper*)contents | 71 - (void)tabMovedWithContents:(TabContentsWrapper*)contents |
| 72 fromIndex:(NSInteger)from | 72 fromIndex:(NSInteger)from |
| 73 toIndex:(NSInteger)to; | 73 toIndex:(NSInteger)to; |
| 74 - (void)tabChangedWithContents:(TabContentsWrapper*)contents | 74 - (void)tabChangedWithContents:(TabContentsWrapper*)contents |
| 75 atIndex:(NSInteger)index | 75 atIndex:(NSInteger)index |
| 76 changeType:(TabStripModelObserver::TabChangeType)change; | 76 changeType:(TabStripModelObserver::TabChangeType)change; |
| 77 - (void)tabReplacedWithContents:(TabContentsWrapper*)newContents | 77 - (void)tabReplacedWithContents:(TabContentsWrapper*)newContents |
| 78 previousContents:(TabContentsWrapper*)oldContents | 78 previousContents:(TabContentsWrapper*)oldContents |
| 79 atIndex:(NSInteger)index; | 79 atIndex:(NSInteger)index; |
| 80 - (void)tabMiniStateChangedWithContents:(TabContentsWrapper*)contents | 80 - (void)tabMiniStateChangedWithContents:(TabContentsWrapper*)contents |
| 81 atIndex:(NSInteger)index; | 81 atIndex:(NSInteger)index; |
| 82 - (void)tabStripEmpty; | 82 - (void)tabStripEmpty; |
| 83 - (void)tabStripModelDeleted; | 83 - (void)tabStripModelDeleted; |
| 84 @end | 84 @end |
| 85 | 85 |
| 86 #endif // CHROME_BROWSER_UI_COCOA_TABS_TAB_STRIP_MODEL_OBSERVER_BRIDGE_H_ | 86 #endif // CHROME_BROWSER_UI_COCOA_TABS_TAB_STRIP_MODEL_OBSERVER_BRIDGE_H_ |
| OLD | NEW |