| 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 4382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4393 getViewControllerToPresent] | 4393 getViewControllerToPresent] |
| 4394 animated:YES | 4394 animated:YES |
| 4395 completion:nil]; | 4395 completion:nil]; |
| 4396 } | 4396 } |
| 4397 | 4397 |
| 4398 - (void)showSuggestionsUI { | 4398 - (void)showSuggestionsUI { |
| 4399 if (!_contentSuggestionsCoordinator) { | 4399 if (!_contentSuggestionsCoordinator) { |
| 4400 _contentSuggestionsCoordinator.reset([[ContentSuggestionsCoordinator alloc] | 4400 _contentSuggestionsCoordinator.reset([[ContentSuggestionsCoordinator alloc] |
| 4401 initWithBaseViewController:self]); | 4401 initWithBaseViewController:self]); |
| 4402 } | 4402 } |
| 4403 [_contentSuggestionsCoordinator setBrowserState:_browserState]; |
| 4403 [_contentSuggestionsCoordinator start]; | 4404 [_contentSuggestionsCoordinator start]; |
| 4404 } | 4405 } |
| 4405 | 4406 |
| 4406 - (void)showNTPPanel:(NewTabPage::PanelIdentifier)panel { | 4407 - (void)showNTPPanel:(NewTabPage::PanelIdentifier)panel { |
| 4407 DCHECK(self.visible || self.dismissingModal); | 4408 DCHECK(self.visible || self.dismissingModal); |
| 4408 GURL url(kChromeUINewTabURL); | 4409 GURL url(kChromeUINewTabURL); |
| 4409 std::string fragment(NewTabPage::FragmentFromIdentifier(panel)); | 4410 std::string fragment(NewTabPage::FragmentFromIdentifier(panel)); |
| 4410 if (fragment != "") { | 4411 if (fragment != "") { |
| 4411 GURL::Replacements replacement; | 4412 GURL::Replacements replacement; |
| 4412 replacement.SetRefStr(fragment); | 4413 replacement.SetRefStr(fragment); |
| (...skipping 755 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5168 | 5169 |
| 5169 - (UIView*)voiceSearchButton { | 5170 - (UIView*)voiceSearchButton { |
| 5170 return _voiceSearchButton; | 5171 return _voiceSearchButton; |
| 5171 } | 5172 } |
| 5172 | 5173 |
| 5173 - (id<LogoAnimationControllerOwner>)logoAnimationControllerOwner { | 5174 - (id<LogoAnimationControllerOwner>)logoAnimationControllerOwner { |
| 5174 return [self currentLogoAnimationControllerOwner]; | 5175 return [self currentLogoAnimationControllerOwner]; |
| 5175 } | 5176 } |
| 5176 | 5177 |
| 5177 @end | 5178 @end |
| OLD | NEW |