| 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 4391 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4402 getViewControllerToPresent] | 4402 getViewControllerToPresent] |
| 4403 animated:YES | 4403 animated:YES |
| 4404 completion:nil]; | 4404 completion:nil]; |
| 4405 } | 4405 } |
| 4406 | 4406 |
| 4407 - (void)showSuggestionsUI { | 4407 - (void)showSuggestionsUI { |
| 4408 if (!_contentSuggestionsCoordinator) { | 4408 if (!_contentSuggestionsCoordinator) { |
| 4409 _contentSuggestionsCoordinator.reset([[ContentSuggestionsCoordinator alloc] | 4409 _contentSuggestionsCoordinator.reset([[ContentSuggestionsCoordinator alloc] |
| 4410 initWithBaseViewController:self]); | 4410 initWithBaseViewController:self]); |
| 4411 } | 4411 } |
| 4412 [_contentSuggestionsCoordinator setBrowserState:_browserState]; |
| 4412 [_contentSuggestionsCoordinator start]; | 4413 [_contentSuggestionsCoordinator start]; |
| 4413 } | 4414 } |
| 4414 | 4415 |
| 4415 - (void)showNTPPanel:(NewTabPage::PanelIdentifier)panel { | 4416 - (void)showNTPPanel:(NewTabPage::PanelIdentifier)panel { |
| 4416 DCHECK(self.visible || self.dismissingModal); | 4417 DCHECK(self.visible || self.dismissingModal); |
| 4417 GURL url(kChromeUINewTabURL); | 4418 GURL url(kChromeUINewTabURL); |
| 4418 std::string fragment(NewTabPage::FragmentFromIdentifier(panel)); | 4419 std::string fragment(NewTabPage::FragmentFromIdentifier(panel)); |
| 4419 if (fragment != "") { | 4420 if (fragment != "") { |
| 4420 GURL::Replacements replacement; | 4421 GURL::Replacements replacement; |
| 4421 replacement.SetRefStr(fragment); | 4422 replacement.SetRefStr(fragment); |
| (...skipping 755 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5177 | 5178 |
| 5178 - (UIView*)voiceSearchButton { | 5179 - (UIView*)voiceSearchButton { |
| 5179 return _voiceSearchButton; | 5180 return _voiceSearchButton; |
| 5180 } | 5181 } |
| 5181 | 5182 |
| 5182 - (id<LogoAnimationControllerOwner>)logoAnimationControllerOwner { | 5183 - (id<LogoAnimationControllerOwner>)logoAnimationControllerOwner { |
| 5183 return [self currentLogoAnimationControllerOwner]; | 5184 return [self currentLogoAnimationControllerOwner]; |
| 5184 } | 5185 } |
| 5185 | 5186 |
| 5186 @end | 5187 @end |
| OLD | NEW |