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

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

Issue 2677263002: Remove unused parameter for -replaceTab:withTab:keepOldTabOpen:. (Closed)
Patch Set: Fix comment. 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
« no previous file with comments | « no previous file | ios/chrome/browser/tabs/tab_model.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 // method doesn't check that. 221 // method doesn't check that.
222 - (void)insertTab:(Tab*)tab atIndex:(NSUInteger)index; 222 - (void)insertTab:(Tab*)tab atIndex:(NSUInteger)index;
223 223
224 // Moves |tab| to the given |index|. |index| must be valid for this tab model 224 // Moves |tab| to the given |index|. |index| must be valid for this tab model
225 // (must be less than the current number of tabs). |tab| must already be in this 225 // (must be less than the current number of tabs). |tab| must already be in this
226 // tab model. If |tab| is already at |index|, this method does nothing and will 226 // tab model. If |tab| is already at |index|, this method does nothing and will
227 // not notify observers. 227 // not notify observers.
228 - (void)moveTab:(Tab*)tab toIndex:(NSUInteger)index; 228 - (void)moveTab:(Tab*)tab toIndex:(NSUInteger)index;
229 229
230 // Replaces |oldTab| in the model with |newTab|. Closes the oldTab when 230 // Replaces |oldTab| in the model with |newTab|. Closes the oldTab when
231 // replacing it in the model unless |keepOldTabOpen|. 231 // replacing it in the model.
232 - (void)replaceTab:(Tab*)oldTab 232 - (void)replaceTab:(Tab*)oldTab withTab:(Tab*)newTab;
233 withTab:(Tab*)newTab
234 keepOldTabOpen:(BOOL)keepOldTabOpen;
235 233
236 // Closes the tab at the given |index|. |index| must be valid. 234 // Closes the tab at the given |index|. |index| must be valid.
237 - (void)closeTabAtIndex:(NSUInteger)index; 235 - (void)closeTabAtIndex:(NSUInteger)index;
238 236
239 // Closes the given tab. 237 // Closes the given tab.
240 - (void)closeTab:(Tab*)tab; 238 - (void)closeTab:(Tab*)tab;
241 239
242 // Closes ALL the tabs. 240 // Closes ALL the tabs.
243 - (void)closeAllTabs; 241 - (void)closeAllTabs;
244 242
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
309 // TYPED. 307 // TYPED.
310 - (Tab*)insertTabWithURL:(const GURL&)URL 308 - (Tab*)insertTabWithURL:(const GURL&)URL
311 referrer:(const web::Referrer&)referrer 309 referrer:(const web::Referrer&)referrer
312 windowName:(NSString*)windowName 310 windowName:(NSString*)windowName
313 opener:(Tab*)parentTab 311 opener:(Tab*)parentTab
314 atIndex:(NSUInteger)index; 312 atIndex:(NSUInteger)index;
315 313
316 @end 314 @end
317 315
318 #endif // IOS_CHROME_BROWSER_TABS_TAB_MODEL_H_ 316 #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') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698