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 #import "ios/chrome/browser/tabs/tab_model.h" | 5 #import "ios/chrome/browser/tabs/tab_model.h" |
6 | 6 |
7 #include <cstdint> | 7 #include <cstdint> |
8 #include <utility> | 8 #include <utility> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 #include "ios/web/public/certificate_policy_cache.h" | 50 #include "ios/web/public/certificate_policy_cache.h" |
51 #include "ios/web/public/navigation_item.h" | 51 #include "ios/web/public/navigation_item.h" |
52 #import "ios/web/public/navigation_manager.h" | 52 #import "ios/web/public/navigation_manager.h" |
53 #include "ios/web/public/web_thread.h" | 53 #include "ios/web/public/web_thread.h" |
54 #import "ios/web/web_state/ui/crw_web_controller.h" | 54 #import "ios/web/web_state/ui/crw_web_controller.h" |
55 #import "ios/web/web_state/web_state_impl.h" | 55 #import "ios/web/web_state/web_state_impl.h" |
56 #include "url/gurl.h" | 56 #include "url/gurl.h" |
57 | 57 |
58 NSString* const kTabModelTabWillStartLoadingNotification = | 58 NSString* const kTabModelTabWillStartLoadingNotification = |
59 @"kTabModelTabWillStartLoadingNotification"; | 59 @"kTabModelTabWillStartLoadingNotification"; |
60 NSString* const kTabModelUserNavigatedNotification = @"kTabModelUserNavigation"; | |
61 NSString* const kTabModelTabDidStartLoadingNotification = | 60 NSString* const kTabModelTabDidStartLoadingNotification = |
62 @"kTabModelTabDidStartLoadingNotification"; | 61 @"kTabModelTabDidStartLoadingNotification"; |
63 NSString* const kTabModelTabDidFinishLoadingNotification = | 62 NSString* const kTabModelTabDidFinishLoadingNotification = |
64 @"kTabModelTabDidFinishLoadingNotification"; | 63 @"kTabModelTabDidFinishLoadingNotification"; |
65 NSString* const kTabModelAllTabsDidCloseNotification = | 64 NSString* const kTabModelAllTabsDidCloseNotification = |
66 @"kTabModelAllTabsDidCloseNotification"; | 65 @"kTabModelAllTabsDidCloseNotification"; |
67 NSString* const kTabModelTabDeselectedNotification = | 66 NSString* const kTabModelTabDeselectedNotification = |
68 @"kTabModelTabDeselectedNotification"; | 67 @"kTabModelTabDeselectedNotification"; |
69 NSString* const kTabModelNewTabWillOpenNotification = | 68 NSString* const kTabModelNewTabWillOpenNotification = |
70 @"kTabModelNewTabWillOpenNotification"; | 69 @"kTabModelNewTabWillOpenNotification"; |
(...skipping 895 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
966 } | 965 } |
967 | 966 |
968 // Called when UIApplicationWillEnterForegroundNotification is received. | 967 // Called when UIApplicationWillEnterForegroundNotification is received. |
969 - (void)applicationWillEnterForeground:(NSNotification*)notify { | 968 - (void)applicationWillEnterForeground:(NSNotification*)notify { |
970 if (_tabUsageRecorder) { | 969 if (_tabUsageRecorder) { |
971 _tabUsageRecorder->AppWillEnterForeground(); | 970 _tabUsageRecorder->AppWillEnterForeground(); |
972 } | 971 } |
973 } | 972 } |
974 | 973 |
975 @end | 974 @end |
OLD | NEW |