| 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/ui/browser_view_controller.h" | 5 #import "ios/chrome/browser/ui/browser_view_controller.h" |
| 6 | 6 |
| 7 #import <AssetsLibrary/AssetsLibrary.h> | 7 #import <AssetsLibrary/AssetsLibrary.h> |
| 8 #import <MobileCoreServices/MobileCoreServices.h> | 8 #import <MobileCoreServices/MobileCoreServices.h> |
| 9 #import <PassKit/PassKit.h> | 9 #import <PassKit/PassKit.h> |
| 10 #import <Photos/Photos.h> | 10 #import <Photos/Photos.h> |
| (...skipping 4227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4238 [[QRScannerViewController alloc] initWithDelegate:_toolbarController]); | 4238 [[QRScannerViewController alloc] initWithDelegate:_toolbarController]); |
| 4239 [self presentViewController:[_qrScannerViewController | 4239 [self presentViewController:[_qrScannerViewController |
| 4240 getViewControllerToPresent] | 4240 getViewControllerToPresent] |
| 4241 animated:YES | 4241 animated:YES |
| 4242 completion:nil]; | 4242 completion:nil]; |
| 4243 } | 4243 } |
| 4244 | 4244 |
| 4245 - (void)showSuggestionsUI { | 4245 - (void)showSuggestionsUI { |
| 4246 if (!_contentSuggestionsCoordinator) { | 4246 if (!_contentSuggestionsCoordinator) { |
| 4247 _contentSuggestionsCoordinator.reset([[ContentSuggestionsCoordinator alloc] | 4247 _contentSuggestionsCoordinator.reset([[ContentSuggestionsCoordinator alloc] |
| 4248 initWithBaseViewController:self]); | 4248 initWithBaseViewController:self |
| 4249 loader:self]); |
| 4249 } | 4250 } |
| 4250 [_contentSuggestionsCoordinator setBrowserState:_browserState]; | 4251 [_contentSuggestionsCoordinator setBrowserState:_browserState]; |
| 4251 [_contentSuggestionsCoordinator start]; | 4252 [_contentSuggestionsCoordinator start]; |
| 4252 } | 4253 } |
| 4253 | 4254 |
| 4254 - (void)showNTPPanel:(NewTabPage::PanelIdentifier)panel { | 4255 - (void)showNTPPanel:(NewTabPage::PanelIdentifier)panel { |
| 4255 DCHECK(self.visible || self.dismissingModal); | 4256 DCHECK(self.visible || self.dismissingModal); |
| 4256 GURL url(kChromeUINewTabURL); | 4257 GURL url(kChromeUINewTabURL); |
| 4257 std::string fragment(NewTabPage::FragmentFromIdentifier(panel)); | 4258 std::string fragment(NewTabPage::FragmentFromIdentifier(panel)); |
| 4258 if (fragment != "") { | 4259 if (fragment != "") { |
| (...skipping 738 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4997 | 4998 |
| 4998 - (UIView*)voiceSearchButton { | 4999 - (UIView*)voiceSearchButton { |
| 4999 return _voiceSearchButton; | 5000 return _voiceSearchButton; |
| 5000 } | 5001 } |
| 5001 | 5002 |
| 5002 - (id<LogoAnimationControllerOwner>)logoAnimationControllerOwner { | 5003 - (id<LogoAnimationControllerOwner>)logoAnimationControllerOwner { |
| 5003 return [self currentLogoAnimationControllerOwner]; | 5004 return [self currentLogoAnimationControllerOwner]; |
| 5004 } | 5005 } |
| 5005 | 5006 |
| 5006 @end | 5007 @end |
| OLD | NEW |