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

Unified Diff: components/autofill/core/common/autofill_enums.h

Issue 159853003: Moving the autofill enum from blink side to browser side (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 10 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: components/autofill/core/common/autofill_enums.h
diff --git a/components/autofill/core/common/autofill_enums.h b/components/autofill/core/common/autofill_enums.h
new file mode 100644
index 0000000000000000000000000000000000000000..35901efbf121af7039d4c4332e9ea28af4679a5f
--- /dev/null
+++ b/components/autofill/core/common/autofill_enums.h
@@ -0,0 +1,27 @@
+// Copyright 2013 The Chromium Authors. All rights reserved.
Ilya Sherman 2014/02/11 22:21:33 nit: 2014
gnana 2014/02/12 13:34:09 Done.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// Contains enum specific to the Autofill component.
+
+#ifndef COMPONENTS_AUTOFILL_CORE_COMMON_AUTOFILL_ENUMS_H_
+#define COMPONENTS_AUTOFILL_CORE_COMMON_AUTOFILL_ENUMS_H_
+
+#include <stddef.h> // For size_t
Ilya Sherman 2014/02/11 22:21:33 nit: size_t isn't used in this header file, so the
gnana 2014/02/12 13:34:09 Done.
+
+namespace autofill {
+
+ enum {
Ilya Sherman 2014/02/11 22:21:33 nit: The enum should be named, probably "MenuItemI
gnana 2014/02/12 13:34:09 Done.
+ MenuItemIDAutocompleteEntry = 0,
blundell 2014/02/11 20:30:33 I would think this most naturally belongs in autof
gnana 2014/02/12 13:34:09 Applied the git cl format, to resolve indentation
+ MenuItemIDWarningMessage = -1,
+ MenuItemIDPasswordEntry = -2,
+ MenuItemIDSeparator = -3,
+ MenuItemIDClearForm = -4,
Ilya Sherman 2014/02/11 22:21:33 nit: Rather than "Menu", "Popup" or "PopupMenu" wo
gnana 2014/02/12 13:34:09 Done.
+ MenuItemIDAutofillOptions = -5,
+ MenuItemIDDataListEntry = -6
Ilya Sherman 2014/02/11 22:21:33 nit: Chromium enum values should be formatted in A
gnana 2014/02/12 13:34:09 Done.
+ };
+
+
+} // namespace autofill
+
+#endif // COMPONENTS_AUTOFILL_CORE_COMMON_AUTOFILL_ENUMS_H_

Powered by Google App Engine
This is Rietveld 408576698