OLD | NEW |
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 20 matching lines...) Expand all Loading... |
31 class WebState; | 31 class WebState; |
32 } | 32 } |
33 | 33 |
34 // A list of notifications about changes in the model or changes in tab | 34 // A list of notifications about changes in the model or changes in tab |
35 // state. | 35 // state. |
36 | 36 |
37 // A tab is about to load a URL. The tab in question is in the userInfo under | 37 // A tab is about to load a URL. The tab in question is in the userInfo under |
38 // kTabModelTabKey. This may fire multiple times during a load, for example, on | 38 // kTabModelTabKey. This may fire multiple times during a load, for example, on |
39 // redirects. | 39 // redirects. |
40 extern NSString* const kTabModelTabWillStartLoadingNotification; | 40 extern NSString* const kTabModelTabWillStartLoadingNotification; |
41 // Notification sent when user navigates away from the current page. | |
42 extern NSString* const kTabModelUserNavigatedNotification; | |
43 // A tab started to load a URL. The tab in question is in the userInfo under | 41 // A tab started to load a URL. The tab in question is in the userInfo under |
44 // kTabModelTabKey. | 42 // kTabModelTabKey. |
45 extern NSString* const kTabModelTabDidStartLoadingNotification; | 43 extern NSString* const kTabModelTabDidStartLoadingNotification; |
46 // A tab finished loading a URL. The tab in question is in the userInfo under | 44 // A tab finished loading a URL. The tab in question is in the userInfo under |
47 // kTabModelTabKey. | 45 // kTabModelTabKey. |
48 extern NSString* const kTabModelTabDidFinishLoadingNotification; | 46 extern NSString* const kTabModelTabDidFinishLoadingNotification; |
49 // All tabs have finished their shutdown sequences. | 47 // All tabs have finished their shutdown sequences. |
50 // NOTE: This notification is not sent when closing a single tab that happens | 48 // NOTE: This notification is not sent when closing a single tab that happens |
51 // to be the last tab. | 49 // to be the last tab. |
52 extern NSString* const kTabModelAllTabsDidCloseNotification; | 50 extern NSString* const kTabModelAllTabsDidCloseNotification; |
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
278 // Called by the Tab to inform its parent that it has been closed. | 276 // Called by the Tab to inform its parent that it has been closed. |
279 - (void)didCloseTab:(Tab*)closedTab; | 277 - (void)didCloseTab:(Tab*)closedTab; |
280 // Called by |tab| to inform the model that a navigation has taken place. | 278 // 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, | 279 // TODO(crbug.com/661983): once more of the navigation state has moved into WC, |
282 // replace this with WebStateObserver. | 280 // replace this with WebStateObserver. |
283 - (void)navigationCommittedInTab:(Tab*)tab; | 281 - (void)navigationCommittedInTab:(Tab*)tab; |
284 | 282 |
285 @end | 283 @end |
286 | 284 |
287 #endif // IOS_CHROME_BROWSER_TABS_TAB_MODEL_H_ | 285 #endif // IOS_CHROME_BROWSER_TABS_TAB_MODEL_H_ |
OLD | NEW |