| 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 // FIXME: Try to modify the code generator so this is unneeded. | 68 // FIXME: Try to modify the code generator so this is unneeded. |
| 69 void continueFunction(ExceptionCode& ec) { continueFunction(0, ec); } | 69 void continueFunction(ExceptionCode& ec) { continueFunction(0, ec); } |
| 70 | 70 |
| 71 // Implement the IDL | 71 // Implement the IDL |
| 72 const String& direction() const; | 72 const String& direction() const; |
| 73 PassRefPtr<IDBKey> key() const; | 73 PassRefPtr<IDBKey> key() const; |
| 74 PassRefPtr<IDBKey> primaryKey() const; | 74 PassRefPtr<IDBKey> primaryKey() const; |
| 75 PassRefPtr<IDBAny> value(); | 75 PassRefPtr<IDBAny> value(); |
| 76 IDBAny* source() const; | 76 IDBAny* source() const; |
| 77 | 77 |
| 78 PassRefPtr<IDBRequest> update(ScriptExecutionContext*, ScriptValue&, Excepti
onCode&); | 78 PassRefPtr<IDBRequest> update(ScriptExecutionContext*, PassRefPtr<Serialized
ScriptValue>, ExceptionCode&); |
| 79 void advance(long, ExceptionCode&); | 79 void advance(long, ExceptionCode&); |
| 80 void continueFunction(PassRefPtr<IDBKey>, ExceptionCode&); | 80 void continueFunction(PassRefPtr<IDBKey>, ExceptionCode&); |
| 81 PassRefPtr<IDBRequest> deleteFunction(ScriptExecutionContext*, ExceptionCode
&); | 81 PassRefPtr<IDBRequest> deleteFunction(ScriptExecutionContext*, ExceptionCode
&); |
| 82 | 82 |
| 83 void postSuccessHandlerCallback(); | 83 void postSuccessHandlerCallback(); |
| 84 void close(); | 84 void close(); |
| 85 void setValueReady(PassRefPtr<IDBKey>, PassRefPtr<IDBKey> primaryKey, PassRe
fPtr<SerializedScriptValue>); | 85 void setValueReady(PassRefPtr<IDBKey>, PassRefPtr<IDBKey> primaryKey, PassRe
fPtr<SerializedScriptValue>); |
| 86 | 86 |
| 87 // The spec requires that the script object that wraps the value | 87 // The spec requires that the script object that wraps the value |
| 88 // be unchanged until the value changes as a result of the cursor | 88 // be unchanged until the value changes as a result of the cursor |
| (...skipping 20 matching lines...) Expand all Loading... |
| 109 RefPtr<IDBKey> m_currentPrimaryKey; | 109 RefPtr<IDBKey> m_currentPrimaryKey; |
| 110 RefPtr<IDBAny> m_currentValue; | 110 RefPtr<IDBAny> m_currentValue; |
| 111 bool m_valueIsDirty; | 111 bool m_valueIsDirty; |
| 112 }; | 112 }; |
| 113 | 113 |
| 114 } // namespace WebCore | 114 } // namespace WebCore |
| 115 | 115 |
| 116 #endif | 116 #endif |
| 117 | 117 |
| 118 #endif // IDBCursor_h | 118 #endif // IDBCursor_h |
| OLD | NEW |