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

Side by Side Diff: Source/bindings/modules/v8/V8BindingForModules.cpp

Issue 966843002: Mark DOMStringList.contains() as deprecated, add console warning. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add more detailed use counters Created 5 years, 6 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) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 static v8::Local<v8::Value> deserializeIDBValueArray(v8::Isolate*, v8::Local<v8: :Object> creationContext, const Vector<RefPtr<IDBValue>>*); 62 static v8::Local<v8::Value> deserializeIDBValueArray(v8::Isolate*, v8::Local<v8: :Object> creationContext, const Vector<RefPtr<IDBValue>>*);
63 63
64 v8::Local<v8::Value> toV8(const IDBKeyPath& value, v8::Local<v8::Object> creatio nContext, v8::Isolate* isolate) 64 v8::Local<v8::Value> toV8(const IDBKeyPath& value, v8::Local<v8::Object> creatio nContext, v8::Isolate* isolate)
65 { 65 {
66 switch (value.type()) { 66 switch (value.type()) {
67 case IDBKeyPath::NullType: 67 case IDBKeyPath::NullType:
68 return v8::Null(isolate); 68 return v8::Null(isolate);
69 case IDBKeyPath::StringType: 69 case IDBKeyPath::StringType:
70 return v8String(isolate, value.string()); 70 return v8String(isolate, value.string());
71 case IDBKeyPath::ArrayType: 71 case IDBKeyPath::ArrayType:
72 RefPtrWillBeRawPtr<DOMStringList> keyPaths = DOMStringList::create(); 72 RefPtrWillBeRawPtr<DOMStringList> keyPaths = DOMStringList::create(DOMSt ringList::IndexedDB);
jsbell 2015/06/12 20:35:38 Side note: I'm rather surprised to see this here.
73 for (Vector<String>::const_iterator it = value.array().begin(); it != va lue.array().end(); ++it) 73 for (Vector<String>::const_iterator it = value.array().begin(); it != va lue.array().end(); ++it)
74 keyPaths->append(*it); 74 keyPaths->append(*it);
75 return toV8(keyPaths.release(), creationContext, isolate); 75 return toV8(keyPaths.release(), creationContext, isolate);
76 } 76 }
77 ASSERT_NOT_REACHED(); 77 ASSERT_NOT_REACHED();
78 return v8::Undefined(isolate); 78 return v8::Undefined(isolate);
79 } 79 }
80 80
81 v8::Local<v8::Value> toV8(const IDBKey* key, v8::Local<v8::Object> creationConte xt, v8::Isolate* isolate) 81 v8::Local<v8::Value> toV8(const IDBKey* key, v8::Local<v8::Object> creationConte xt, v8::Isolate* isolate)
82 { 82 {
(...skipping 448 matching lines...) Expand 10 before | Expand all | Expand 10 after
531 ASSERT(!exceptionState.hadException()); 531 ASSERT(!exceptionState.hadException());
532 if (expectedKey && expectedKey->isEqual(value->primaryKey())) 532 if (expectedKey && expectedKey->isEqual(value->primaryKey()))
533 return; 533 return;
534 534
535 bool injected = injectV8KeyIntoV8Value(isolate, keyValue.v8Value(), scriptVa lue.v8Value(), value->keyPath()); 535 bool injected = injectV8KeyIntoV8Value(isolate, keyValue.v8Value(), scriptVa lue.v8Value(), value->keyPath());
536 ASSERT_UNUSED(injected, injected); 536 ASSERT_UNUSED(injected, injected);
537 } 537 }
538 #endif 538 #endif
539 539
540 } // namespace blink 540 } // namespace blink
OLDNEW
« no previous file with comments | « LayoutTests/storage/indexeddb/version-change-abort-expected.txt ('k') | Source/core/dom/DOMStringList.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698