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

Unified Diff: content/public/common/speech_recognition_error.h

Issue 625543002: Revert of Use the new java_cpp_enum rule in content. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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
Index: content/public/common/speech_recognition_error.h
diff --git a/content/public/common/speech_recognition_error.h b/content/public/common/speech_recognition_error.h
index bbd73c7494c23c4edc5aeeadaab74b1338ebd94e..a12bc401cabea1aae8e1888ae0041c6ee95b7566 100644
--- a/content/public/common/speech_recognition_error.h
+++ b/content/public/common/speech_recognition_error.h
@@ -7,34 +7,10 @@
namespace content {
-// A Java counterpart will be generated for this enum.
-// GENERATED_JAVA_ENUM_PACKAGE: org.chromium.content_public.common
-// GENERATED_JAVA_PREFIX_TO_STRIP: SPEECH_RECOGNITION_ERROR_
enum SpeechRecognitionErrorCode {
- // There was no error.
- SPEECH_RECOGNITION_ERROR_NONE,
-
- // The user or a script aborted speech input.
- SPEECH_RECOGNITION_ERROR_ABORTED,
-
- // There was an error with recording audio.
- SPEECH_RECOGNITION_ERROR_AUDIO,
-
- // There was a network error.
- SPEECH_RECOGNITION_ERROR_NETWORK,
-
- // Not allowed for privacy or security reasons.
- SPEECH_RECOGNITION_ERROR_NOT_ALLOWED,
-
- // No speech heard before timeout.
- SPEECH_RECOGNITION_ERROR_NO_SPEECH,
-
- // Speech was heard, but could not be interpreted.
- SPEECH_RECOGNITION_ERROR_NO_MATCH,
-
- // There was an error in the speech recognition grammar.
- SPEECH_RECOGNITION_ERROR_BAD_GRAMMAR,
- SPEECH_RECOGNITION_ERROR_LAST = SPEECH_RECOGNITION_ERROR_BAD_GRAMMAR,
+#define DEFINE_SPEECH_RECOGNITION_ERROR(x, y) SPEECH_RECOGNITION_ERROR_##x = y,
+#include "content/public/common/speech_recognition_error_list.h"
+#undef DEFINE_SPEECH_RECOGNITION_ERROR
};
// Error details for the SPEECH_RECOGNITION_ERROR_AUDIO error.
« no previous file with comments | « content/public/common/screen_orientation_values_list.h ('k') | content/public/common/speech_recognition_error_list.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698