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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 virtual ~IDBCursor(); | 59 virtual ~IDBCursor(); |
60 | 60 |
61 // Implement the IDL | 61 // Implement the IDL |
62 const String& direction() const { return directionToString(m_direction); } | 62 const String& direction() const { return directionToString(m_direction); } |
63 const ScriptValue& key() const { return m_currentKeyValue; } | 63 const ScriptValue& key() const { return m_currentKeyValue; } |
64 const ScriptValue& primaryKey() const { return m_currentPrimaryKeyValue; } | 64 const ScriptValue& primaryKey() const { return m_currentPrimaryKeyValue; } |
65 const ScriptValue& value() const { return m_currentValue; } | 65 const ScriptValue& value() const { return m_currentValue; } |
66 IDBAny* source() const { return m_source.get(); } | 66 IDBAny* source() const { return m_source.get(); } |
67 | 67 |
68 PassRefPtr<IDBRequest> update(ScriptState*, ScriptValue&, ExceptionState&); | 68 PassRefPtr<IDBRequest> update(ScriptState*, ScriptValue&, ExceptionState&); |
69 void advance(unsigned long, ExceptionState&); | 69 void advance(unsigned, ExceptionState&); |
70 void continueFunction(ScriptExecutionContext*, const ScriptValue& key, Excep
tionState&); | 70 void continueFunction(ScriptExecutionContext*, const ScriptValue& key, Excep
tionState&); |
71 PassRefPtr<IDBRequest> deleteFunction(ScriptExecutionContext*, ExceptionStat
e&); | 71 PassRefPtr<IDBRequest> deleteFunction(ScriptExecutionContext*, ExceptionStat
e&); |
72 | 72 |
73 void continueFunction(PassRefPtr<IDBKey>, ExceptionState&); | 73 void continueFunction(PassRefPtr<IDBKey>, ExceptionState&); |
74 void postSuccessHandlerCallback(); | 74 void postSuccessHandlerCallback(); |
75 void close(); | 75 void close(); |
76 void setValueReady(DOMRequestState*, PassRefPtr<IDBKey>, PassRefPtr<IDBKey>
primaryKey, ScriptValue&); | 76 void setValueReady(DOMRequestState*, PassRefPtr<IDBKey>, PassRefPtr<IDBKey>
primaryKey, ScriptValue&); |
77 PassRefPtr<IDBKey> idbPrimaryKey() { return m_currentPrimaryKey; } | 77 PassRefPtr<IDBKey> idbPrimaryKey() { return m_currentPrimaryKey; } |
78 | 78 |
79 protected: | 79 protected: |
(...skipping 17 matching lines...) Expand all Loading... |
97 ScriptValue m_currentKeyValue; | 97 ScriptValue m_currentKeyValue; |
98 ScriptValue m_currentPrimaryKeyValue; | 98 ScriptValue m_currentPrimaryKeyValue; |
99 RefPtr<IDBKey> m_currentKey; | 99 RefPtr<IDBKey> m_currentKey; |
100 RefPtr<IDBKey> m_currentPrimaryKey; | 100 RefPtr<IDBKey> m_currentPrimaryKey; |
101 ScriptValue m_currentValue; | 101 ScriptValue m_currentValue; |
102 }; | 102 }; |
103 | 103 |
104 } // namespace WebCore | 104 } // namespace WebCore |
105 | 105 |
106 #endif // IDBCursor_h | 106 #endif // IDBCursor_h |
OLD | NEW |