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 4101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4112 [self showReadingList]; | 4112 [self showReadingList]; |
4113 break; | 4113 break; |
4114 case IDC_VOICE_SEARCH: | 4114 case IDC_VOICE_SEARCH: |
4115 // If the voice search command is coming from a UIView sender, store it | 4115 // If the voice search command is coming from a UIView sender, store it |
4116 // before sending the command up the responder chain. | 4116 // before sending the command up the responder chain. |
4117 if ([sender isKindOfClass:[UIView class]]) | 4117 if ([sender isKindOfClass:[UIView class]]) |
4118 _voiceSearchButton.reset(sender); | 4118 _voiceSearchButton.reset(sender); |
4119 [super chromeExecuteCommand:sender]; | 4119 [super chromeExecuteCommand:sender]; |
4120 break; | 4120 break; |
4121 case IDC_SHOW_QR_SCANNER: | 4121 case IDC_SHOW_QR_SCANNER: |
4122 if (experimental_flags::IsQRCodeReaderEnabled()) { | 4122 [self showQRScanner]; |
4123 [self showQRScanner]; | |
4124 } | |
4125 break; | 4123 break; |
4126 case IDC_SHOW_SUGGESTIONS: | 4124 case IDC_SHOW_SUGGESTIONS: |
4127 if (experimental_flags::IsSuggestionsUIEnabled()) { | 4125 if (experimental_flags::IsSuggestionsUIEnabled()) { |
4128 [self showSuggestionsUI]; | 4126 [self showSuggestionsUI]; |
4129 } | 4127 } |
4130 break; | 4128 break; |
4131 default: | 4129 default: |
4132 // Unknown commands get sent up the responder chain. | 4130 // Unknown commands get sent up the responder chain. |
4133 [super chromeExecuteCommand:sender]; | 4131 [super chromeExecuteCommand:sender]; |
4134 break; | 4132 break; |
(...skipping 1034 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5169 | 5167 |
5170 - (UIView*)voiceSearchButton { | 5168 - (UIView*)voiceSearchButton { |
5171 return _voiceSearchButton; | 5169 return _voiceSearchButton; |
5172 } | 5170 } |
5173 | 5171 |
5174 - (id<LogoAnimationControllerOwner>)logoAnimationControllerOwner { | 5172 - (id<LogoAnimationControllerOwner>)logoAnimationControllerOwner { |
5175 return [self currentLogoAnimationControllerOwner]; | 5173 return [self currentLogoAnimationControllerOwner]; |
5176 } | 5174 } |
5177 | 5175 |
5178 @end | 5176 @end |
OLD | NEW |