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

Side by Side Diff: Source/bindings/core/v8/DictionaryHelperForCore.cpp

Issue 537403002: bindings: Renames from/toInternalPointer, etc. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Synced. Created 6 years, 3 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 320 matching lines...) Expand 10 before | Expand all | Expand 10 after
331 return false; 331 return false;
332 332
333 TrackBase* source = 0; 333 TrackBase* source = 0;
334 if (v8Value->IsObject()) { 334 if (v8Value->IsObject()) {
335 v8::Handle<v8::Object> wrapper = v8::Handle<v8::Object>::Cast(v8Value); 335 v8::Handle<v8::Object> wrapper = v8::Handle<v8::Object>::Cast(v8Value);
336 336
337 // FIXME: this will need to be changed so it can also return an AudioTra ck or a VideoTrack once 337 // FIXME: this will need to be changed so it can also return an AudioTra ck or a VideoTrack once
338 // we add them. 338 // we add them.
339 v8::Handle<v8::Object> track = V8TextTrack::findInstanceInPrototypeChain (wrapper, dictionary.isolate()); 339 v8::Handle<v8::Object> track = V8TextTrack::findInstanceInPrototypeChain (wrapper, dictionary.isolate());
340 if (!track.IsEmpty()) 340 if (!track.IsEmpty())
341 source = V8TextTrack::toNative(track); 341 source = V8TextTrack::toImpl(track);
342 } 342 }
343 value = source; 343 value = source;
344 return true; 344 return true;
345 } 345 }
346 346
347 template <> 347 template <>
348 bool DictionaryHelper::get(const Dictionary& dictionary, const String& key, RefP trWillBeMember<EventTarget>& value) 348 bool DictionaryHelper::get(const Dictionary& dictionary, const String& key, RefP trWillBeMember<EventTarget>& value)
349 { 349 {
350 v8::Local<v8::Value> v8Value; 350 v8::Local<v8::Value> v8Value;
351 if (!dictionary.get(key, v8Value)) 351 if (!dictionary.get(key, v8Value))
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after
646 Dictionary::ConversionContextScope scope(context); 646 Dictionary::ConversionContextScope scope(context);
647 647
648 v8::Local<v8::Value> v8Value; 648 v8::Local<v8::Value> v8Value;
649 if (!dictionary.get(key, v8Value)) 649 if (!dictionary.get(key, v8Value))
650 return true; 650 return true;
651 651
652 return DictionaryHelper::get(dictionary, key, value); 652 return DictionaryHelper::get(dictionary, key, value);
653 } 653 }
654 654
655 } // namespace blink 655 } // namespace blink
OLDNEW
« no previous file with comments | « Source/bindings/core/v8/DictionaryHelperForBindings.h ('k') | Source/bindings/core/v8/NPV8Object.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698