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 28 matching lines...) Expand all Loading... |
39 #include "modules/indexeddb/IDBTransaction.h" | 39 #include "modules/indexeddb/IDBTransaction.h" |
40 #include "modules/indexeddb/WebIDBCallbacksImpl.h" | 40 #include "modules/indexeddb/WebIDBCallbacksImpl.h" |
41 #include "public/platform/WebBlobInfo.h" | 41 #include "public/platform/WebBlobInfo.h" |
42 #include "public/platform/WebIDBDatabase.h" | 42 #include "public/platform/WebIDBDatabase.h" |
43 #include "public/platform/WebIDBKeyRange.h" | 43 #include "public/platform/WebIDBKeyRange.h" |
44 #include <limits> | 44 #include <limits> |
45 | 45 |
46 using blink::WebIDBCursor; | 46 using blink::WebIDBCursor; |
47 using blink::WebIDBDatabase; | 47 using blink::WebIDBDatabase; |
48 | 48 |
49 namespace WebCore { | 49 namespace blink { |
50 | 50 |
51 IDBCursor* IDBCursor::create(PassOwnPtr<blink::WebIDBCursor> backend, blink::Web
IDBCursorDirection direction, IDBRequest* request, IDBAny* source, IDBTransactio
n* transaction) | 51 IDBCursor* IDBCursor::create(PassOwnPtr<blink::WebIDBCursor> backend, blink::Web
IDBCursorDirection direction, IDBRequest* request, IDBAny* source, IDBTransactio
n* transaction) |
52 { | 52 { |
53 return new IDBCursor(backend, direction, request, source, transaction); | 53 return new IDBCursor(backend, direction, request, source, transaction); |
54 } | 54 } |
55 | 55 |
56 const AtomicString& IDBCursor::directionNext() | 56 const AtomicString& IDBCursor::directionNext() |
57 { | 57 { |
58 DEFINE_STATIC_LOCAL(AtomicString, next, ("next", AtomicString::ConstructFrom
Literal)); | 58 DEFINE_STATIC_LOCAL(AtomicString, next, ("next", AtomicString::ConstructFrom
Literal)); |
59 return next; | 59 return next; |
(...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
409 | 409 |
410 case blink::WebIDBCursorDirectionPrevNoDuplicate: | 410 case blink::WebIDBCursorDirectionPrevNoDuplicate: |
411 return IDBCursor::directionPrevUnique(); | 411 return IDBCursor::directionPrevUnique(); |
412 | 412 |
413 default: | 413 default: |
414 ASSERT_NOT_REACHED(); | 414 ASSERT_NOT_REACHED(); |
415 return IDBCursor::directionNext(); | 415 return IDBCursor::directionNext(); |
416 } | 416 } |
417 } | 417 } |
418 | 418 |
419 } // namespace WebCore | 419 } // namespace blink |
OLD | NEW |