| 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 void trace(Visitor*); | 54 void trace(Visitor*); |
| 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*); |
| 61 ScriptValue value(ScriptState*); | 61 ScriptValue value(ScriptState*); |
| 62 ScriptValue source(ScriptState*) const; | 62 ScriptValue source(ScriptState*) const; |
| 63 | 63 |
| 64 IDBRequest* update(ScriptState*, ScriptValue&, ExceptionState&); | 64 IDBRequest* update(ScriptState*, const ScriptValue&, ExceptionState&); |
| 65 void advance(unsigned long, ExceptionState&); | 65 void advance(unsigned long, ExceptionState&); |
| 66 void continueFunction(ScriptState*, const ScriptValue& key, ExceptionState&)
; | 66 void continueFunction(ScriptState*, const ScriptValue& key, ExceptionState&)
; |
| 67 void continuePrimaryKey(ScriptState*, const ScriptValue& key, const ScriptVa
lue& primaryKey, ExceptionState&); | 67 void continuePrimaryKey(ScriptState*, const ScriptValue& key, const ScriptVa
lue& primaryKey, ExceptionState&); |
| 68 IDBRequest* deleteFunction(ScriptState*, ExceptionState&); | 68 IDBRequest* deleteFunction(ScriptState*, ExceptionState&); |
| 69 | 69 |
| 70 bool isKeyDirty() const { return m_keyDirty; } | 70 bool isKeyDirty() const { return m_keyDirty; } |
| 71 bool isPrimaryKeyDirty() const { return m_primaryKeyDirty; } | 71 bool isPrimaryKeyDirty() const { return m_primaryKeyDirty; } |
| 72 bool isValueDirty() const { return m_valueDirty; } | 72 bool isValueDirty() const { return m_valueDirty; } |
| 73 | 73 |
| 74 void continueFunction(IDBKey*, IDBKey* primaryKey, ExceptionState&); | 74 void continueFunction(IDBKey*, IDBKey* primaryKey, ExceptionState&); |
| (...skipping 24 matching lines...) Expand all Loading... |
| 99 bool m_valueDirty; | 99 bool m_valueDirty; |
| 100 Member<IDBKey> m_key; | 100 Member<IDBKey> m_key; |
| 101 Member<IDBKey> m_primaryKey; | 101 Member<IDBKey> m_primaryKey; |
| 102 RefPtr<SharedBuffer> m_value; | 102 RefPtr<SharedBuffer> m_value; |
| 103 OwnPtr<Vector<WebBlobInfo> > m_blobInfo; | 103 OwnPtr<Vector<WebBlobInfo> > m_blobInfo; |
| 104 }; | 104 }; |
| 105 | 105 |
| 106 } // namespace blink | 106 } // namespace blink |
| 107 | 107 |
| 108 #endif // IDBCursor_h | 108 #endif // IDBCursor_h |
| OLD | NEW |