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

Unified Diff: content/common/indexed_db/indexed_db.mojom

Issue 2507233002: Define EnumTraits for many IndexedDB enums. (Closed)
Patch Set: GCC doesn't trust exhaustive switch statements. Created 4 years, 1 month 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 | « content/common/BUILD.gn ('k') | content/common/indexed_db/indexed_db.typemap » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/indexed_db/indexed_db.mojom
diff --git a/content/common/indexed_db/indexed_db.mojom b/content/common/indexed_db/indexed_db.mojom
index 39a47b85f0e1e1377a30938ec0ff566eabbf5cb6..b715909b9967a1299bd6577488613056b3a88fdf 100644
--- a/content/common/indexed_db/indexed_db.mojom
+++ b/content/common/indexed_db/indexed_db.mojom
@@ -11,11 +11,17 @@ module indexed_db.mojom;
import "mojo/common/common_custom_types.mojom";
import "url/mojo/origin.mojom";
-[Native]
-enum CursorDirection;
+enum CursorDirection {
+ Next,
+ NextNoDuplicate,
+ Prev,
+ PrevNoDuplicate,
+};
-[Native]
-enum DataLoss;
+enum DataLoss {
+ None,
+ Total,
+};
[Native]
struct Key;
@@ -26,14 +32,22 @@ struct KeyPath;
[Native]
struct KeyRange;
-[Native]
-enum PutMode;
+enum PutMode {
+ AddOrUpdate,
+ AddOnly,
+ CursorUpdate,
+};
-[Native]
-enum TaskType;
+enum TaskType {
+ Normal,
+ Preemptive,
+};
-[Native]
-enum TransactionMode;
+enum TransactionMode {
+ ReadOnly,
+ ReadWrite,
+ VersionChange,
+};
struct IndexMetadata {
int64 id;
« no previous file with comments | « content/common/BUILD.gn ('k') | content/common/indexed_db/indexed_db.typemap » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698