OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 21 matching lines...) Expand all Loading... |
32 #include "WebIDBTypes.h" | 32 #include "WebIDBTypes.h" |
33 #include "WebString.h" | 33 #include "WebString.h" |
34 | 34 |
35 namespace blink { | 35 namespace blink { |
36 | 36 |
37 // See comment in WebIDBFactory for a high level overview these classes. | 37 // See comment in WebIDBFactory for a high level overview these classes. |
38 class WebIDBCursor { | 38 class WebIDBCursor { |
39 public: | 39 public: |
40 virtual ~WebIDBCursor() { } | 40 virtual ~WebIDBCursor() { } |
41 | 41 |
42 // FIXME: Remove once Chromium is updated to use the new enums. | |
43 typedef WebIDBCursorDirection Direction; | |
44 static const WebIDBCursorDirection Next = WebIDBCursorDirectionNext; | |
45 static const WebIDBCursorDirection NextNoDuplicate =WebIDBCursorDirectionNex
tNoDuplicate; | |
46 static const WebIDBCursorDirection Prev = WebIDBCursorDirectionPrev; | |
47 static const WebIDBCursorDirection PrevNoDuplicate =WebIDBCursorDirectionPre
vNoDuplicate; | |
48 static const WebIDBCursorDirection DirectionLast =WebIDBCursorDirectionLast; | |
49 | |
50 virtual void advance(unsigned long, WebIDBCallbacks*) { BLINK_ASSERT_NOT_REA
CHED(); } | 42 virtual void advance(unsigned long, WebIDBCallbacks*) { BLINK_ASSERT_NOT_REA
CHED(); } |
51 virtual void continueFunction(const WebIDBKey&, const WebIDBKey& primaryKey,
WebIDBCallbacks*) { BLINK_ASSERT_NOT_REACHED(); } | 43 virtual void continueFunction(const WebIDBKey&, const WebIDBKey& primaryKey,
WebIDBCallbacks*) { BLINK_ASSERT_NOT_REACHED(); } |
52 virtual void postSuccessHandlerCallback() { } // Only used in frontend. | 44 virtual void postSuccessHandlerCallback() { } // Only used in frontend. |
53 | 45 |
54 protected: | 46 protected: |
55 WebIDBCursor() { } | 47 WebIDBCursor() { } |
56 }; | 48 }; |
57 | 49 |
58 } // namespace blink | 50 } // namespace blink |
59 | 51 |
60 #endif // WebIDBCursor_h | 52 #endif // WebIDBCursor_h |
OLD | NEW |