Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(25)

Side by Side Diff: Source/modules/indexeddb/IDBCursor.h

Issue 14297012: IndexedDB: Use [Default] in IDLs to reduce overloads in implementations (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 61
62 // Implement the IDL 62 // Implement the IDL
63 const String& direction() const; 63 const String& direction() const;
64 const ScriptValue& key() const; 64 const ScriptValue& key() const;
65 const ScriptValue& primaryKey() const; 65 const ScriptValue& primaryKey() const;
66 const ScriptValue& value() const; 66 const ScriptValue& value() const;
67 IDBAny* source() const; 67 IDBAny* source() const;
68 68
69 PassRefPtr<IDBRequest> update(ScriptState*, ScriptValue&, ExceptionCode&); 69 PassRefPtr<IDBRequest> update(ScriptState*, ScriptValue&, ExceptionCode&);
70 void advance(unsigned long, ExceptionCode&); 70 void advance(unsigned long, ExceptionCode&);
71 // FIXME: Try to modify the code generator so this overload is unneeded.
72 void continueFunction(ScriptExecutionContext*, ExceptionCode& ec) { continue Function(static_cast<IDBKey*>(0), ec); }
73 void continueFunction(ScriptExecutionContext*, const ScriptValue& key, Excep tionCode&); 71 void continueFunction(ScriptExecutionContext*, const ScriptValue& key, Excep tionCode&);
74 PassRefPtr<IDBRequest> deleteFunction(ScriptExecutionContext*, ExceptionCode &); 72 PassRefPtr<IDBRequest> deleteFunction(ScriptExecutionContext*, ExceptionCode &);
75 73
76 void continueFunction(PassRefPtr<IDBKey>, ExceptionCode&); 74 void continueFunction(PassRefPtr<IDBKey>, ExceptionCode&);
77 void postSuccessHandlerCallback(); 75 void postSuccessHandlerCallback();
78 void close(); 76 void close();
79 void setValueReady(DOMRequestState*, PassRefPtr<IDBKey>, PassRefPtr<IDBKey> primaryKey, ScriptValue&); 77 void setValueReady(DOMRequestState*, PassRefPtr<IDBKey>, PassRefPtr<IDBKey> primaryKey, ScriptValue&);
80 PassRefPtr<IDBKey> idbPrimaryKey() { return m_currentPrimaryKey; } 78 PassRefPtr<IDBKey> idbPrimaryKey() { return m_currentPrimaryKey; }
81 79
82 protected: 80 protected:
(...skipping 15 matching lines...) Expand all
98 ScriptValue m_currentKeyValue; 96 ScriptValue m_currentKeyValue;
99 ScriptValue m_currentPrimaryKeyValue; 97 ScriptValue m_currentPrimaryKeyValue;
100 RefPtr<IDBKey> m_currentKey; 98 RefPtr<IDBKey> m_currentKey;
101 RefPtr<IDBKey> m_currentPrimaryKey; 99 RefPtr<IDBKey> m_currentPrimaryKey;
102 ScriptValue m_currentValue; 100 ScriptValue m_currentValue;
103 }; 101 };
104 102
105 } // namespace WebCore 103 } // namespace WebCore
106 104
107 #endif // IDBCursor_h 105 #endif // IDBCursor_h
OLDNEW
« no previous file with comments | « Source/core/inspector/InspectorIndexedDBAgent.cpp ('k') | Source/modules/indexeddb/IDBCursor.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698