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

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

Issue 2659693004: Add context menu when long press on a reading list entry (Closed)
Patch Set: Cleanup 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 4364 matching lines...) Expand 10 before | Expand all | Expand 10 after
4375 Tab* tab = [_model currentTab]; 4375 Tab* tab = [_model currentTab];
4376 web::NavigationManager::WebLoadParams params(URL); 4376 web::NavigationManager::WebLoadParams params(URL);
4377 params.transition_type = ui::PAGE_TRANSITION_AUTO_BOOKMARK; 4377 params.transition_type = ui::PAGE_TRANSITION_AUTO_BOOKMARK;
4378 [[tab webController] loadWithParams:params]; 4378 [[tab webController] loadWithParams:params];
4379 } 4379 }
4380 4380
4381 - (void)showReadingList { 4381 - (void)showReadingList {
4382 DCHECK(reading_list::switches::IsReadingListEnabled()); 4382 DCHECK(reading_list::switches::IsReadingListEnabled());
4383 UIViewController* vc = [ReadingListViewControllerBuilder 4383 UIViewController* vc = [ReadingListViewControllerBuilder
4384 readingListViewControllerInBrowserState:self.browserState 4384 readingListViewControllerInBrowserState:self.browserState
4385 tabModel:_model]; 4385 loader:self];
4386 [self presentViewController:vc animated:YES completion:nil]; 4386 [self presentViewController:vc animated:YES completion:nil];
4387 } 4387 }
4388 4388
4389 - (void)showQRScanner { 4389 - (void)showQRScanner {
4390 _qrScannerViewController.reset( 4390 _qrScannerViewController.reset(
4391 [[QRScannerViewController alloc] initWithDelegate:_toolbarController]); 4391 [[QRScannerViewController alloc] initWithDelegate:_toolbarController]);
4392 [self presentViewController:[_qrScannerViewController 4392 [self presentViewController:[_qrScannerViewController
4393 getViewControllerToPresent] 4393 getViewControllerToPresent]
4394 animated:YES 4394 animated:YES
4395 completion:nil]; 4395 completion:nil];
(...skipping 772 matching lines...) Expand 10 before | Expand all | Expand 10 after
5168 5168
5169 - (UIView*)voiceSearchButton { 5169 - (UIView*)voiceSearchButton {
5170 return _voiceSearchButton; 5170 return _voiceSearchButton;
5171 } 5171 }
5172 5172
5173 - (id<LogoAnimationControllerOwner>)logoAnimationControllerOwner { 5173 - (id<LogoAnimationControllerOwner>)logoAnimationControllerOwner {
5174 return [self currentLogoAnimationControllerOwner]; 5174 return [self currentLogoAnimationControllerOwner];
5175 } 5175 }
5176 5176
5177 @end 5177 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698