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

Unified Diff: public/platform/WebIDBCursor.h

Issue 325683002: [IndexedDB] Use consistent enums on both sides of IPC. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Incorporated review comments as build bot was failing with previous patch. Created 6 years, 6 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 | « Source/modules/indexeddb/InspectorIndexedDBAgent.cpp ('k') | public/platform/WebIDBDatabase.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/platform/WebIDBCursor.h
diff --git a/public/platform/WebIDBCursor.h b/public/platform/WebIDBCursor.h
index b64b505ff5c45e4d057dca0d3631711984dea174..cc35c70fda7322d04a0780be520bb28b4cd7e97f 100644
--- a/public/platform/WebIDBCursor.h
+++ b/public/platform/WebIDBCursor.h
@@ -29,6 +29,7 @@
#include "WebCommon.h"
#include "WebIDBCallbacks.h"
#include "WebIDBKey.h"
+#include "WebIDBTypes.h"
#include "WebString.h"
namespace blink {
@@ -38,13 +39,13 @@ class WebIDBCursor {
public:
virtual ~WebIDBCursor() { }
- enum Direction {
- Next = 0,
- NextNoDuplicate = 1,
- Prev = 2,
- PrevNoDuplicate = 3,
- DirectionLast = PrevNoDuplicate
- };
+ // FIXME: Remove once Chromium is updated to use the new enums.
+ typedef WebIDBCursorDirection Direction;
+ static const WebIDBCursorDirection Next = WebIDBCursorDirectionNext;
+ static const WebIDBCursorDirection NextNoDuplicate =WebIDBCursorDirectionNextNoDuplicate;
+ static const WebIDBCursorDirection Prev = WebIDBCursorDirectionPrev;
+ static const WebIDBCursorDirection PrevNoDuplicate =WebIDBCursorDirectionPrevNoDuplicate;
+ static const WebIDBCursorDirection DirectionLast =WebIDBCursorDirectionLast;
virtual void advance(unsigned long, WebIDBCallbacks*) { BLINK_ASSERT_NOT_REACHED(); }
virtual void continueFunction(const WebIDBKey&, const WebIDBKey& primaryKey, WebIDBCallbacks*) { BLINK_ASSERT_NOT_REACHED(); }
« no previous file with comments | « Source/modules/indexeddb/InspectorIndexedDBAgent.cpp ('k') | public/platform/WebIDBDatabase.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698