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 18 matching lines...) Expand all Loading... |
29 #include "bindings/v8/ExceptionMessages.h" | 29 #include "bindings/v8/ExceptionMessages.h" |
30 #include "bindings/v8/ExceptionState.h" | 30 #include "bindings/v8/ExceptionState.h" |
31 #include "bindings/v8/IDBBindingUtilities.h" | 31 #include "bindings/v8/IDBBindingUtilities.h" |
32 #include "core/dom/ExceptionCode.h" | 32 #include "core/dom/ExceptionCode.h" |
33 #include "core/dom/ExecutionContext.h" | 33 #include "core/dom/ExecutionContext.h" |
34 #include "core/inspector/ScriptCallStack.h" | 34 #include "core/inspector/ScriptCallStack.h" |
35 #include "platform/SharedBuffer.h" | 35 #include "platform/SharedBuffer.h" |
36 #include "modules/indexeddb/IDBAny.h" | 36 #include "modules/indexeddb/IDBAny.h" |
37 #include "modules/indexeddb/IDBCallbacks.h" | 37 #include "modules/indexeddb/IDBCallbacks.h" |
38 #include "modules/indexeddb/IDBCursorBackendInterface.h" | 38 #include "modules/indexeddb/IDBCursorBackendInterface.h" |
39 #include "modules/indexeddb/IDBKey.h" | |
40 #include "modules/indexeddb/IDBObjectStore.h" | 39 #include "modules/indexeddb/IDBObjectStore.h" |
41 #include "modules/indexeddb/IDBRequest.h" | 40 #include "modules/indexeddb/IDBRequest.h" |
42 #include "modules/indexeddb/IDBTracing.h" | 41 #include "modules/indexeddb/IDBTracing.h" |
43 #include "modules/indexeddb/IDBTransaction.h" | |
44 #include <limits> | 42 #include <limits> |
45 | 43 |
46 namespace WebCore { | 44 namespace WebCore { |
47 | 45 |
48 PassRefPtr<IDBCursor> IDBCursor::create(PassRefPtr<IDBCursorBackendInterface> ba
ckend, IndexedDB::CursorDirection direction, IDBRequest* request, IDBAny* source
, IDBTransaction* transaction) | 46 PassRefPtr<IDBCursor> IDBCursor::create(PassRefPtr<IDBCursorBackendInterface> ba
ckend, IndexedDB::CursorDirection direction, IDBRequest* request, IDBAny* source
, IDBTransaction* transaction) |
49 { | 47 { |
50 return adoptRef(new IDBCursor(backend, direction, request, source, transacti
on)); | 48 return adoptRef(new IDBCursor(backend, direction, request, source, transacti
on)); |
51 } | 49 } |
52 | 50 |
53 const AtomicString& IDBCursor::directionNext() | 51 const AtomicString& IDBCursor::directionNext() |
(...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
387 case IndexedDB::CursorPrevNoDuplicate: | 385 case IndexedDB::CursorPrevNoDuplicate: |
388 return IDBCursor::directionPrevUnique(); | 386 return IDBCursor::directionPrevUnique(); |
389 | 387 |
390 default: | 388 default: |
391 ASSERT_NOT_REACHED(); | 389 ASSERT_NOT_REACHED(); |
392 return IDBCursor::directionNext(); | 390 return IDBCursor::directionNext(); |
393 } | 391 } |
394 } | 392 } |
395 | 393 |
396 } // namespace WebCore | 394 } // namespace WebCore |
OLD | NEW |