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 2535 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2546 | 2546 |
2547 - (void)webState:(web::WebState*)webState | 2547 - (void)webState:(web::WebState*)webState |
2548 runRepostFormDialogWithCompletionHandler:(void (^)(BOOL))handler { | 2548 runRepostFormDialogWithCompletionHandler:(void (^)(BOOL))handler { |
2549 // Display the action sheet with the arrow pointing at the top center of the | 2549 // Display the action sheet with the arrow pointing at the top center of the |
2550 // web contents. | 2550 // web contents. |
2551 Tab* tab = LegacyTabHelper::GetTabForWebState(webState); | 2551 Tab* tab = LegacyTabHelper::GetTabForWebState(webState); |
2552 UIView* view = webState->GetView(); | 2552 UIView* view = webState->GetView(); |
2553 CGPoint dialogLocation = | 2553 CGPoint dialogLocation = |
2554 CGPointMake(CGRectGetMidX(view.frame), | 2554 CGPointMake(CGRectGetMidX(view.frame), |
2555 CGRectGetMinY(view.frame) + [self headerHeightForTab:tab]); | 2555 CGRectGetMinY(view.frame) + [self headerHeightForTab:tab]); |
2556 auto helper = RepostFormTabHelper::FromWebState(webState); | 2556 auto* helper = RepostFormTabHelper::FromWebState(webState); |
2557 helper->PresentDialog(dialogLocation, base::BindBlock(^(bool shouldContinue) { | 2557 helper->PresentDialog(dialogLocation, base::BindBlock(^(bool shouldContinue) { |
2558 handler(shouldContinue); | 2558 handler(shouldContinue); |
2559 })); | 2559 })); |
2560 } | 2560 } |
2561 | 2561 |
2562 - (web::JavaScriptDialogPresenter*)javaScriptDialogPresenterForWebState: | 2562 - (web::JavaScriptDialogPresenter*)javaScriptDialogPresenterForWebState: |
2563 (web::WebState*)webState { | 2563 (web::WebState*)webState { |
2564 return _javaScriptDialogPresenter.get(); | 2564 return _javaScriptDialogPresenter.get(); |
2565 } | 2565 } |
2566 | 2566 |
(...skipping 2458 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5025 | 5025 |
5026 - (UIView*)voiceSearchButton { | 5026 - (UIView*)voiceSearchButton { |
5027 return _voiceSearchButton; | 5027 return _voiceSearchButton; |
5028 } | 5028 } |
5029 | 5029 |
5030 - (id<LogoAnimationControllerOwner>)logoAnimationControllerOwner { | 5030 - (id<LogoAnimationControllerOwner>)logoAnimationControllerOwner { |
5031 return [self currentLogoAnimationControllerOwner]; | 5031 return [self currentLogoAnimationControllerOwner]; |
5032 } | 5032 } |
5033 | 5033 |
5034 @end | 5034 @end |
OLD | NEW |