OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/public/provider/chrome/browser/voice/voice_search_provider.h" | 5 #import "ios/public/provider/chrome/browser/voice/voice_search_provider.h" |
6 | 6 |
7 #import "ios/public/provider/chrome/browser/voice/voice_search_controller.h" | 7 #import "ios/public/provider/chrome/browser/voice/voice_search_controller.h" |
8 | 8 |
| 9 #if !defined(__has_feature) || !__has_feature(objc_arc) |
| 10 #error "This file requires ARC support." |
| 11 #endif |
| 12 |
9 bool VoiceSearchProvider::IsVoiceSearchEnabled() const { | 13 bool VoiceSearchProvider::IsVoiceSearchEnabled() const { |
10 return false; | 14 return false; |
11 } | 15 } |
12 | 16 |
13 NSArray* VoiceSearchProvider::GetAvailableLanguages() const { | 17 NSArray* VoiceSearchProvider::GetAvailableLanguages() const { |
14 return @[]; | 18 return @[]; |
15 } | 19 } |
16 | 20 |
17 AudioSessionController* VoiceSearchProvider::GetAudioSessionController() const { | 21 AudioSessionController* VoiceSearchProvider::GetAudioSessionController() const { |
18 return nullptr; | 22 return nullptr; |
19 } | 23 } |
20 | 24 |
21 scoped_refptr<VoiceSearchController> | 25 scoped_refptr<VoiceSearchController> |
22 VoiceSearchProvider::CreateVoiceSearchController( | 26 VoiceSearchProvider::CreateVoiceSearchController( |
23 ios::ChromeBrowserState* browser_state) const { | 27 ios::ChromeBrowserState* browser_state) const { |
24 return scoped_refptr<VoiceSearchController>(nullptr); | 28 return scoped_refptr<VoiceSearchController>(nullptr); |
25 } | 29 } |
26 | 30 |
27 UIView<VoiceSearchBar>* VoiceSearchProvider::BuildVoiceSearchBar( | 31 UIView<VoiceSearchBar>* VoiceSearchProvider::BuildVoiceSearchBar( |
28 CGRect frame) const { | 32 CGRect frame) const { |
29 return nil; | 33 return nil; |
30 } | 34 } |
OLD | NEW |