| 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 29 matching lines...) Expand all Loading... |
| 40 | 40 |
| 41 class ExceptionState; | 41 class ExceptionState; |
| 42 class IDBAny; | 42 class IDBAny; |
| 43 class IDBTransaction; | 43 class IDBTransaction; |
| 44 class IDBValue; | 44 class IDBValue; |
| 45 class ScriptState; | 45 class ScriptState; |
| 46 | 46 |
| 47 class IDBCursor : public GarbageCollectedFinalized<IDBCursor>, public ScriptWrap
pable { | 47 class IDBCursor : public GarbageCollectedFinalized<IDBCursor>, public ScriptWrap
pable { |
| 48 DEFINE_WRAPPERTYPEINFO(); | 48 DEFINE_WRAPPERTYPEINFO(); |
| 49 public: | 49 public: |
| 50 static WebIDBCursorDirection stringToDirection(const String& modeString, Exc
eptionState&); | 50 static WebIDBCursorDirection stringToDirection(const String& modeString); |
| 51 | 51 |
| 52 static IDBCursor* create(PassOwnPtr<WebIDBCursor>, WebIDBCursorDirection, ID
BRequest*, IDBAny* source, IDBTransaction*); | 52 static IDBCursor* create(PassOwnPtr<WebIDBCursor>, WebIDBCursorDirection, ID
BRequest*, IDBAny* source, IDBTransaction*); |
| 53 virtual ~IDBCursor(); | 53 virtual ~IDBCursor(); |
| 54 DECLARE_TRACE(); | 54 DECLARE_TRACE(); |
| 55 void contextWillBeDestroyed() { m_backend.clear(); } | 55 void contextWillBeDestroyed() { m_backend.clear(); } |
| 56 | 56 |
| 57 // Implement the IDL | 57 // Implement the IDL |
| 58 const String& direction() const; | 58 const String& direction() const; |
| 59 ScriptValue key(ScriptState*); | 59 ScriptValue key(ScriptState*); |
| 60 ScriptValue primaryKey(ScriptState*); | 60 ScriptValue primaryKey(ScriptState*); |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 bool m_primaryKeyDirty; | 97 bool m_primaryKeyDirty; |
| 98 bool m_valueDirty; | 98 bool m_valueDirty; |
| 99 Member<IDBKey> m_key; | 99 Member<IDBKey> m_key; |
| 100 Member<IDBKey> m_primaryKey; | 100 Member<IDBKey> m_primaryKey; |
| 101 RefPtr<IDBValue> m_value; | 101 RefPtr<IDBValue> m_value; |
| 102 }; | 102 }; |
| 103 | 103 |
| 104 } // namespace blink | 104 } // namespace blink |
| 105 | 105 |
| 106 #endif // IDBCursor_h | 106 #endif // IDBCursor_h |
| OLD | NEW |