Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(314)

Side by Side Diff: chrome/browser/cocoa/tab_strip_model_observer_bridge.h

Issue 2821011: Removes phantom tabs. (Closed)
Patch Set: Created 10 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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_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 18 matching lines...) Expand all
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 virtual void TabChangedAt(TabContents* contents, int index, 37 virtual void TabChangedAt(TabContents* contents, int index,
38 TabChangeType change_type); 38 TabChangeType change_type);
39 virtual void TabReplacedAt(TabContents* old_contents,
40 TabContents* new_contents,
41 int index);
42 virtual void TabMiniStateChanged(TabContents* contents, int index); 39 virtual void TabMiniStateChanged(TabContents* contents, int index);
43 virtual void TabStripEmpty(); 40 virtual void TabStripEmpty();
44 41
45 private: 42 private:
46 id controller_; // weak, owns me 43 id controller_; // weak, owns me
47 TabStripModel* model_; // weak, owned by Browser 44 TabStripModel* model_; // weak, owned by Browser
48 }; 45 };
49 46
50 // A collection of methods which can be selectively implemented by any 47 // A collection of methods which can be selectively implemented by any
51 // Cocoa object to receive updates about changes to a tab strip model. It is 48 // Cocoa object to receive updates about changes to a tab strip model. It is
(...skipping 15 matching lines...) Expand all
67 toIndex:(NSInteger)to; 64 toIndex:(NSInteger)to;
68 - (void)tabChangedWithContents:(TabContents*)contents 65 - (void)tabChangedWithContents:(TabContents*)contents
69 atIndex:(NSInteger)index 66 atIndex:(NSInteger)index
70 changeType:(TabStripModelObserver::TabChangeType)change; 67 changeType:(TabStripModelObserver::TabChangeType)change;
71 - (void)tabMiniStateChangedWithContents:(TabContents*)contents 68 - (void)tabMiniStateChangedWithContents:(TabContents*)contents
72 atIndex:(NSInteger)index; 69 atIndex:(NSInteger)index;
73 - (void)tabStripEmpty; 70 - (void)tabStripEmpty;
74 @end 71 @end
75 72
76 #endif // CHROME_BROWSER_COCOA_TAB_STRIP_MODEL_OBSERVER_BRIDGE_H_ 73 #endif // CHROME_BROWSER_COCOA_TAB_STRIP_MODEL_OBSERVER_BRIDGE_H_
OLDNEW
« no previous file with comments | « chrome/browser/cocoa/tab_strip_controller.mm ('k') | chrome/browser/cocoa/tab_strip_model_observer_bridge.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698