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

Side by Side Diff: ios/chrome/app/main_controller.mm

Issue 2629543009: Remove adapter code between MDCTypography and MDFRobotoFontLoader (Closed)
Patch Set: Created 3 years, 11 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 | no next file » | 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 #import "ios/chrome/app/main_controller.h" 5 #import "ios/chrome/app/main_controller.h"
6 6
7 #include <memory> 7 #include <memory>
8 #include <string> 8 #include <string>
9 9
10 #import <CoreSpotlight/CoreSpotlight.h> 10 #import <CoreSpotlight/CoreSpotlight.h>
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 #include "ios/chrome/grit/ios_strings.h" 128 #include "ios/chrome/grit/ios_strings.h"
129 #include "ios/net/cookies/cookie_store_ios.h" 129 #include "ios/net/cookies/cookie_store_ios.h"
130 #import "ios/net/crn_http_protocol_handler.h" 130 #import "ios/net/crn_http_protocol_handler.h"
131 #include "ios/public/provider/chrome/browser/chrome_browser_provider.h" 131 #include "ios/public/provider/chrome/browser/chrome_browser_provider.h"
132 #include "ios/public/provider/chrome/browser/distribution/app_distribution_provi der.h" 132 #include "ios/public/provider/chrome/browser/distribution/app_distribution_provi der.h"
133 #import "ios/public/provider/chrome/browser/native_app_launcher/native_app_white list_manager.h" 133 #import "ios/public/provider/chrome/browser/native_app_launcher/native_app_white list_manager.h"
134 #include "ios/public/provider/chrome/browser/signin/chrome_identity_service.h" 134 #include "ios/public/provider/chrome/browser/signin/chrome_identity_service.h"
135 #import "ios/public/provider/chrome/browser/user_feedback/user_feedback_provider .h" 135 #import "ios/public/provider/chrome/browser/user_feedback/user_feedback_provider .h"
136 #import "ios/third_party/material_components_ios/src/components/Typography/src/M aterialTypography.h" 136 #import "ios/third_party/material_components_ios/src/components/Typography/src/M aterialTypography.h"
137 #import "ios/third_party/material_roboto_font_loader_ios/src/src/MaterialRobotoF ontLoader.h" 137 #import "ios/third_party/material_roboto_font_loader_ios/src/src/MaterialRobotoF ontLoader.h"
138 #import "ios/third_party/material_roboto_font_loader_ios/src/src/MDCTypographyAd ditions/MDFRobotoFontLoader+MDCTypographyAdditions.h"
138 #include "ios/web/net/request_tracker_factory_impl.h" 139 #include "ios/web/net/request_tracker_factory_impl.h"
139 #include "ios/web/net/request_tracker_impl.h" 140 #include "ios/web/net/request_tracker_impl.h"
140 #include "ios/web/net/web_http_protocol_handler_delegate.h" 141 #include "ios/web/net/web_http_protocol_handler_delegate.h"
141 #import "ios/web/public/navigation_manager.h" 142 #import "ios/web/public/navigation_manager.h"
142 #include "ios/web/public/web_capabilities.h" 143 #include "ios/web/public/web_capabilities.h"
143 #include "ios/web/public/web_state/web_state.h" 144 #include "ios/web/public/web_state/web_state.h"
144 #import "ios/web/public/web_view_creation_util.h" 145 #import "ios/web/public/web_view_creation_util.h"
145 #include "ios/web/public/webui/web_ui_ios_controller_factory.h" 146 #include "ios/web/public/webui/web_ui_ios_controller_factory.h"
146 #include "mojo/edk/embedder/embedder.h" 147 #include "mojo/edk/embedder/embedder.h"
147 #import "net/base/mac/url_conversions.h" 148 #import "net/base/mac/url_conversions.h"
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 return UrlHasChromeScheme(url) && url.host() == kChromeUINewTabHost; 224 return UrlHasChromeScheme(url) && url.host() == kChromeUINewTabHost;
224 } 225 }
225 226
226 // Used to update the current BVC mode if a new tab is added while the stack 227 // Used to update the current BVC mode if a new tab is added while the stack
227 // view is being dimissed. This is different than ApplicationMode in that it 228 // view is being dimissed. This is different than ApplicationMode in that it
228 // can be set to |NONE| when not in use. 229 // can be set to |NONE| when not in use.
229 enum class StackViewDismissalMode { NONE, NORMAL, INCOGNITO }; 230 enum class StackViewDismissalMode { NONE, NORMAL, INCOGNITO };
230 231
231 } // namespace 232 } // namespace
232 233
233 // TODO(crbug.com/673904): Remove once MDFRobotoFontLoader declares it directly.
234 // MDFRobotoFontLoader implicitly implements MDCTypographyFontLoading but can't
235 // declare it until MDC is public.
236 @interface MDFRobotoFontLoader (MDCTypography)<MDCTypographyFontLoading>
237 @end
238
239 @interface MainController ()<BrowserStateStorageSwitching, 234 @interface MainController ()<BrowserStateStorageSwitching,
240 BrowsingDataRemovalControllerDelegate, 235 BrowsingDataRemovalControllerDelegate,
241 PrefObserverDelegate, 236 PrefObserverDelegate,
242 SettingsNavigationControllerDelegate, 237 SettingsNavigationControllerDelegate,
243 TabModelObserver, 238 TabModelObserver,
244 TabSwitcherDelegate, 239 TabSwitcherDelegate,
245 UserFeedbackDataSource> { 240 UserFeedbackDataSource> {
246 IBOutlet UIWindow* _window; 241 IBOutlet UIWindow* _window;
247 242
248 // Weak; owned by the ChromeBrowserProvider. 243 // Weak; owned by the ChromeBrowserProvider.
(...skipping 2448 matching lines...) Expand 10 before | Expand all | Expand 10 after
2697 }; 2692 };
2698 2693
2699 callbackCounter->IncrementCount(); 2694 callbackCounter->IncrementCount();
2700 [self removeBrowsingDataFromBrowserState:_mainBrowserState 2695 [self removeBrowsingDataFromBrowserState:_mainBrowserState
2701 mask:removeAllMask 2696 mask:removeAllMask
2702 timePeriod:browsing_data::ALL_TIME 2697 timePeriod:browsing_data::ALL_TIME
2703 completionHandler:decrementCallbackCounterCount]; 2698 completionHandler:decrementCallbackCounterCount];
2704 } 2699 }
2705 2700
2706 @end 2701 @end
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698