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

Unified Diff: ios/chrome/browser/voice/speech_input_locale.h

Issue 2425713002: [ios] Adds configuration helper files for voice search. (Closed)
Patch Set: Review and file moves. Created 4 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ios/chrome/browser/voice/OWNERS ('k') | ios/chrome/browser/voice/speech_input_locale_config.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/voice/speech_input_locale.h
diff --git a/ios/chrome/browser/voice/speech_input_locale.h b/ios/chrome/browser/voice/speech_input_locale.h
new file mode 100644
index 0000000000000000000000000000000000000000..9fdb10848ea78d047bdd92bef64401e675987796
--- /dev/null
+++ b/ios/chrome/browser/voice/speech_input_locale.h
@@ -0,0 +1,24 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef IOS_CHROME_BROWSER_VOICE_SPEECH_INPUT_LOCALE_H_
+#define IOS_CHROME_BROWSER_VOICE_SPEECH_INPUT_LOCALE_H_
+
+#include <string>
+
+#include "base/strings/string16.h"
+
+namespace voice {
+
+// Struct describing a valid speech input locale.
+typedef struct {
+ // The locale code in canonical form (e.g. "en-US", "fr-FR").
+ std::string code;
+ // The display name (e.g. "English U.S.", "Français (France)").
+ base::string16 display_name;
+} SpeechInputLocale;
+
+} // namespace voice
+
+#endif // IOS_CHROME_BROWSER_VOICE_SPEECH_INPUT_LOCALE_H_
« no previous file with comments | « ios/chrome/browser/voice/OWNERS ('k') | ios/chrome/browser/voice/speech_input_locale_config.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698