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

Side by Side Diff: third_party/WebKit/Source/modules/indexeddb/IDBCursor.cpp

Issue 2595543003: Rename toV8(...) function in Blink to ToV8(...). (Closed)
Patch Set: Rebasing... Created 3 years, 11 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
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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 } 85 }
86 86
87 // Keep the request's wrapper alive as long as the cursor's wrapper is alive, 87 // Keep the request's wrapper alive as long as the cursor's wrapper is alive,
88 // so that the same script object is seen each time the cursor is used. 88 // so that the same script object is seen each time the cursor is used.
89 v8::Local<v8::Object> IDBCursor::associateWithWrapper( 89 v8::Local<v8::Object> IDBCursor::associateWithWrapper(
90 v8::Isolate* isolate, 90 v8::Isolate* isolate,
91 const WrapperTypeInfo* wrapperType, 91 const WrapperTypeInfo* wrapperType,
92 v8::Local<v8::Object> wrapper) { 92 v8::Local<v8::Object> wrapper) {
93 wrapper = 93 wrapper =
94 ScriptWrappable::associateWithWrapper(isolate, wrapperType, wrapper); 94 ScriptWrappable::associateWithWrapper(isolate, wrapperType, wrapper);
95 if (!wrapper.IsEmpty()) 95 if (!wrapper.IsEmpty()) {
96 V8HiddenValue::setHiddenValue(ScriptState::current(isolate), wrapper, 96 V8HiddenValue::setHiddenValue(ScriptState::current(isolate), wrapper,
97 V8HiddenValue::idbCursorRequest(isolate), 97 V8HiddenValue::idbCursorRequest(isolate),
98 toV8(m_request.get(), wrapper, isolate)); 98 ToV8(m_request.get(), wrapper, isolate));
99 }
99 return wrapper; 100 return wrapper;
100 } 101 }
101 102
102 IDBRequest* IDBCursor::update(ScriptState* scriptState, 103 IDBRequest* IDBCursor::update(ScriptState* scriptState,
103 const ScriptValue& value, 104 const ScriptValue& value,
104 ExceptionState& exceptionState) { 105 ExceptionState& exceptionState) {
105 IDB_TRACE("IDBCursor::update"); 106 IDB_TRACE("IDBCursor::update");
106 107
107 if (m_transaction->isFinished() || m_transaction->isFinishing()) { 108 if (m_transaction->isFinished() || m_transaction->isFinishing()) {
108 exceptionState.throwDOMException( 109 exceptionState.throwDOMException(
(...skipping 374 matching lines...) Expand 10 before | Expand all | Expand 10 after
483 case WebIDBCursorDirectionPrevNoDuplicate: 484 case WebIDBCursorDirectionPrevNoDuplicate:
484 return IndexedDBNames::prevunique; 485 return IndexedDBNames::prevunique;
485 486
486 default: 487 default:
487 NOTREACHED(); 488 NOTREACHED();
488 return IndexedDBNames::next; 489 return IndexedDBNames::next;
489 } 490 }
490 } 491 }
491 492
492 } // namespace blink 493 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698