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

Side by Side Diff: ios/chrome/browser/ui/browser_view_controller.mm

Issue 2691303002: Add context menu for ContentSuggestions (Closed)
Patch Set: Fix gn deps Created 3 years, 10 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
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/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 4229 matching lines...) Expand 10 before | Expand all | Expand 10 after
4240 [self presentViewController:[_qrScannerViewController 4240 [self presentViewController:[_qrScannerViewController
4241 getViewControllerToPresent] 4241 getViewControllerToPresent]
4242 animated:YES 4242 animated:YES
4243 completion:nil]; 4243 completion:nil];
4244 } 4244 }
4245 4245
4246 - (void)showSuggestionsUI { 4246 - (void)showSuggestionsUI {
4247 if (!_contentSuggestionsCoordinator) { 4247 if (!_contentSuggestionsCoordinator) {
4248 _contentSuggestionsCoordinator.reset([[ContentSuggestionsCoordinator alloc] 4248 _contentSuggestionsCoordinator.reset([[ContentSuggestionsCoordinator alloc]
4249 initWithBaseViewController:self]); 4249 initWithBaseViewController:self]);
4250 [_contentSuggestionsCoordinator setURLLoader:self];
4250 } 4251 }
4251 [_contentSuggestionsCoordinator setBrowserState:_browserState]; 4252 [_contentSuggestionsCoordinator setBrowserState:_browserState];
4252 [_contentSuggestionsCoordinator start]; 4253 [_contentSuggestionsCoordinator start];
4253 } 4254 }
4254 4255
4255 - (void)showNTPPanel:(NewTabPage::PanelIdentifier)panel { 4256 - (void)showNTPPanel:(NewTabPage::PanelIdentifier)panel {
4256 DCHECK(self.visible || self.dismissingModal); 4257 DCHECK(self.visible || self.dismissingModal);
4257 GURL url(kChromeUINewTabURL); 4258 GURL url(kChromeUINewTabURL);
4258 std::string fragment(NewTabPage::FragmentFromIdentifier(panel)); 4259 std::string fragment(NewTabPage::FragmentFromIdentifier(panel));
4259 if (fragment != "") { 4260 if (fragment != "") {
(...skipping 738 matching lines...) Expand 10 before | Expand all | Expand 10 after
4998 4999
4999 - (UIView*)voiceSearchButton { 5000 - (UIView*)voiceSearchButton {
5000 return _voiceSearchButton; 5001 return _voiceSearchButton;
5001 } 5002 }
5002 5003
5003 - (id<LogoAnimationControllerOwner>)logoAnimationControllerOwner { 5004 - (id<LogoAnimationControllerOwner>)logoAnimationControllerOwner {
5004 return [self currentLogoAnimationControllerOwner]; 5005 return [self currentLogoAnimationControllerOwner];
5005 } 5006 }
5006 5007
5007 @end 5008 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698