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

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

Issue 719933004: Use "unsigned" rather than "unsigned long" for C++ code interacting with WebIDL's "unsigned long". (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 1 month 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
« no previous file with comments | « no previous file | Source/modules/indexeddb/IDBCursor.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 void contextWillBeDestroyed() { m_backend.clear(); } 57 void contextWillBeDestroyed() { m_backend.clear(); }
58 58
59 // Implement the IDL 59 // Implement the IDL
60 const String& direction() const; 60 const String& direction() const;
61 ScriptValue key(ScriptState*); 61 ScriptValue key(ScriptState*);
62 ScriptValue primaryKey(ScriptState*); 62 ScriptValue primaryKey(ScriptState*);
63 ScriptValue value(ScriptState*); 63 ScriptValue value(ScriptState*);
64 ScriptValue source(ScriptState*) const; 64 ScriptValue source(ScriptState*) const;
65 65
66 IDBRequest* update(ScriptState*, const ScriptValue&, ExceptionState&); 66 IDBRequest* update(ScriptState*, const ScriptValue&, ExceptionState&);
67 void advance(unsigned long, ExceptionState&); 67 void advance(unsigned, ExceptionState&);
68 void continueFunction(ScriptState*, const ScriptValue& key, ExceptionState&) ; 68 void continueFunction(ScriptState*, const ScriptValue& key, ExceptionState&) ;
69 void continuePrimaryKey(ScriptState*, const ScriptValue& key, const ScriptVa lue& primaryKey, ExceptionState&); 69 void continuePrimaryKey(ScriptState*, const ScriptValue& key, const ScriptVa lue& primaryKey, ExceptionState&);
70 IDBRequest* deleteFunction(ScriptState*, ExceptionState&); 70 IDBRequest* deleteFunction(ScriptState*, ExceptionState&);
71 71
72 bool isKeyDirty() const { return m_keyDirty; } 72 bool isKeyDirty() const { return m_keyDirty; }
73 bool isPrimaryKeyDirty() const { return m_primaryKeyDirty; } 73 bool isPrimaryKeyDirty() const { return m_primaryKeyDirty; }
74 bool isValueDirty() const { return m_valueDirty; } 74 bool isValueDirty() const { return m_valueDirty; }
75 75
76 void continueFunction(IDBKey*, IDBKey* primaryKey, ExceptionState&); 76 void continueFunction(IDBKey*, IDBKey* primaryKey, ExceptionState&);
77 void postSuccessHandlerCallback(); 77 void postSuccessHandlerCallback();
(...skipping 24 matching lines...) Expand all
102 bool m_valueDirty; 102 bool m_valueDirty;
103 Member<IDBKey> m_key; 103 Member<IDBKey> m_key;
104 Member<IDBKey> m_primaryKey; 104 Member<IDBKey> m_primaryKey;
105 RefPtr<SharedBuffer> m_value; 105 RefPtr<SharedBuffer> m_value;
106 OwnPtr<Vector<WebBlobInfo> > m_blobInfo; 106 OwnPtr<Vector<WebBlobInfo> > m_blobInfo;
107 }; 107 };
108 108
109 } // namespace blink 109 } // namespace blink
110 110
111 #endif // IDBCursor_h 111 #endif // IDBCursor_h
OLDNEW
« no previous file with comments | « no previous file | Source/modules/indexeddb/IDBCursor.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698