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

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

Issue 2715753002: Convert TabModelTest to use the public API of TabModel. (Closed)
Patch Set: Rebase. Created 3 years, 9 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 266 matching lines...) Expand 10 before | Expand all | Expand 10 after
277 - (void)browserStateDestroyed; 277 - (void)browserStateDestroyed;
278 // Called by the Tab to inform its parent that it has been closed. 278 // Called by the Tab to inform its parent that it has been closed.
279 - (void)didCloseTab:(Tab*)closedTab; 279 - (void)didCloseTab:(Tab*)closedTab;
280 // Called by |tab| to inform the model that a navigation has taken place. 280 // Called by |tab| to inform the model that a navigation has taken place.
281 // TODO(crbug.com/661983): once more of the navigation state has moved into WC, 281 // TODO(crbug.com/661983): once more of the navigation state has moved into WC,
282 // replace this with WebStateObserver. 282 // replace this with WebStateObserver.
283 - (void)navigationCommittedInTab:(Tab*)tab; 283 - (void)navigationCommittedInTab:(Tab*)tab;
284 284
285 @end 285 @end
286 286
287 @interface TabModel (PrivateForTestingOnly)
288
289 // Opens a tab at the specified URL. The newly created tab will not be the child
290 // of any other tab. This does not go through the order controller. Used a page
291 // transition of TYPED.
292 - (Tab*)addTabWithURL:(const GURL&)URL referrer:(const web::Referrer&)referrer;
293
294 // Inserts a new tab at the given |index| with the given |URL| and |referrer|.
295 // This does not go through the order controller. Uses a page transition of
296 // TYPED.
297 - (Tab*)insertTabWithURL:(const GURL&)URL
298 referrer:(const web::Referrer&)referrer
299 opener:(Tab*)parentTab
300 atIndex:(NSUInteger)index;
301
302 @end
303
304 #endif // IOS_CHROME_BROWSER_TABS_TAB_MODEL_H_ 287 #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