OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 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 22 matching lines...) Expand all Loading... |
33 #include "wtf/PassOwnPtr.h" | 33 #include "wtf/PassOwnPtr.h" |
34 | 34 |
35 namespace blink { | 35 namespace blink { |
36 | 36 |
37 class IDBAny; | 37 class IDBAny; |
38 class IDBRequest; | 38 class IDBRequest; |
39 class IDBTransaction; | 39 class IDBTransaction; |
40 | 40 |
41 class IDBCursorWithValue FINAL : public IDBCursor { | 41 class IDBCursorWithValue FINAL : public IDBCursor { |
42 public: | 42 public: |
43 static IDBCursorWithValue* create(PassOwnPtr<blink::WebIDBCursor>, blink::We
bIDBCursorDirection, IDBRequest*, IDBAny* source, IDBTransaction*); | 43 static IDBCursorWithValue* create(PassOwnPtr<WebIDBCursor>, WebIDBCursorDire
ction, IDBRequest*, IDBAny* source, IDBTransaction*); |
44 virtual ~IDBCursorWithValue(); | 44 virtual ~IDBCursorWithValue(); |
45 | 45 |
46 // The value attribute defined in the IDL is simply implemented in IDBCursor
(but not exposed via | 46 // The value attribute defined in the IDL is simply implemented in IDBCursor
(but not exposed via |
47 // its IDL). This is to make the implementation more simple while matching w
hat the spec says. | 47 // its IDL). This is to make the implementation more simple while matching w
hat the spec says. |
48 | 48 |
49 virtual bool isKeyCursor() const OVERRIDE { return false; } | 49 virtual bool isKeyCursor() const OVERRIDE { return false; } |
50 virtual bool isCursorWithValue() const OVERRIDE { return true; } | 50 virtual bool isCursorWithValue() const OVERRIDE { return true; } |
51 | 51 |
52 private: | 52 private: |
53 IDBCursorWithValue(PassOwnPtr<blink::WebIDBCursor>, blink::WebIDBCursorDirec
tion, IDBRequest*, IDBAny* source, IDBTransaction*); | 53 IDBCursorWithValue(PassOwnPtr<WebIDBCursor>, WebIDBCursorDirection, IDBReque
st*, IDBAny* source, IDBTransaction*); |
54 }; | 54 }; |
55 | 55 |
56 DEFINE_TYPE_CASTS(IDBCursorWithValue, IDBCursor, cursor, cursor->isCursorWithVal
ue(), cursor.isCursorWithValue()); | 56 DEFINE_TYPE_CASTS(IDBCursorWithValue, IDBCursor, cursor, cursor->isCursorWithVal
ue(), cursor.isCursorWithValue()); |
57 | 57 |
58 } // namespace blink | 58 } // namespace blink |
59 | 59 |
60 #endif // IDBCursorWithValue_h | 60 #endif // IDBCursorWithValue_h |
OLD | NEW |