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

Side by Side Diff: ios/chrome/browser/tabs/tab_model.h

Issue 2697193004: Add opener-opened relationship between WebState in WebStateList. (Closed)
Patch Set: Fix copy-n-paste error. Created 3 years, 10 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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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 IOS_CHROME_BROWSER_TABS_TAB_MODEL_H_ 5 #ifndef IOS_CHROME_BROWSER_TABS_TAB_MODEL_H_
6 #define IOS_CHROME_BROWSER_TABS_TAB_MODEL_H_ 6 #define IOS_CHROME_BROWSER_TABS_TAB_MODEL_H_
7 7
8 #import <Foundation/Foundation.h> 8 #import <Foundation/Foundation.h>
9 #import <UIKit/UIKit.h> 9 #import <UIKit/UIKit.h>
10 10
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 235
236 // Closes ALL the tabs. 236 // Closes ALL the tabs.
237 - (void)closeAllTabs; 237 - (void)closeAllTabs;
238 238
239 // Halts all tabs (terminating active requests) without closing them. Used 239 // Halts all tabs (terminating active requests) without closing them. Used
240 // when the app is shutting down. 240 // when the app is shutting down.
241 - (void)haltAllTabs; 241 - (void)haltAllTabs;
242 242
243 // Notifies observers that the given |tab| was changed. 243 // Notifies observers that the given |tab| was changed.
244 - (void)notifyTabChanged:(Tab*)tab; 244 - (void)notifyTabChanged:(Tab*)tab;
245
245 // Notifies observers that the snapshot for the given |tab| changed was changed 246 // Notifies observers that the snapshot for the given |tab| changed was changed
246 // to |image|. 247 // to |image|.
247 - (void)notifyTabSnapshotChanged:(Tab*)tab withImage:(UIImage*)image; 248 - (void)notifyTabSnapshotChanged:(Tab*)tab withImage:(UIImage*)image;
248 249
249 // Adds |observer| to the list of observers. |observer| is not retained. Does 250 // Adds |observer| to the list of observers. |observer| is not retained. Does
250 // nothing if |observer| is already in the list. Any added observers must be 251 // nothing if |observer| is already in the list. Any added observers must be
251 // explicitly removed before the TabModel is destroyed. 252 // explicitly removed before the TabModel is destroyed.
252 - (void)addObserver:(id<TabModelObserver>)observer; 253 - (void)addObserver:(id<TabModelObserver>)observer;
253 254
254 // Removes |observer| from the list of observers. 255 // Removes |observer| from the list of observers.
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
303 // TYPED. 304 // TYPED.
304 - (Tab*)insertTabWithURL:(const GURL&)URL 305 - (Tab*)insertTabWithURL:(const GURL&)URL
305 referrer:(const web::Referrer&)referrer 306 referrer:(const web::Referrer&)referrer
306 windowName:(NSString*)windowName 307 windowName:(NSString*)windowName
307 opener:(Tab*)parentTab 308 opener:(Tab*)parentTab
308 atIndex:(NSUInteger)index; 309 atIndex:(NSUInteger)index;
309 310
310 @end 311 @end
311 312
312 #endif // IOS_CHROME_BROWSER_TABS_TAB_MODEL_H_ 313 #endif // IOS_CHROME_BROWSER_TABS_TAB_MODEL_H_
OLDNEW
« no previous file with comments | « no previous file | ios/chrome/browser/tabs/tab_model.mm » ('j') | ios/shared/chrome/browser/tabs/web_state_list_unittest.mm » ('J')

Powered by Google App Engine
This is Rietveld 408576698