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

Side by Side Diff: Source/bindings/v8/V8Binding.h

Issue 173363002: Move mediastream module to oilpan transition types (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * Copyright (C) 2012 Ericsson AB. All rights reserved. 3 * Copyright (C) 2012 Ericsson AB. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 616 matching lines...) Expand 10 before | Expand all | Expand 10 after
627 if (value->IsArray()) { 627 if (value->IsArray()) {
628 length = v8::Local<v8::Array>::Cast(v8Value)->Length(); 628 length = v8::Local<v8::Array>::Cast(v8Value)->Length();
629 } else if (toV8Sequence(value, length, isolate).IsEmpty()) { 629 } else if (toV8Sequence(value, length, isolate).IsEmpty()) {
630 throwTypeError(ExceptionMessages::notASequenceTypeProperty(propertyName) , isolate); 630 throwTypeError(ExceptionMessages::notASequenceTypeProperty(propertyName) , isolate);
631 return Vector<RefPtr<T> >(); 631 return Vector<RefPtr<T> >();
632 } 632 }
633 return toRefPtrNativeArrayUnchecked<T, V8T>(v8Value, length, isolate, succes s); 633 return toRefPtrNativeArrayUnchecked<T, V8T>(v8Value, length, isolate, succes s);
634 } 634 }
635 635
636 template <class T, class V8T> 636 template <class T, class V8T>
637 HeapVector<Member<T> > toRefPtrWillBeMemberNativeArray(v8::Handle<v8::Value> val ue, int argumentIndex, v8::Isolate* isolate, bool* success = 0) 637 WillBeHeapVector<RefPtrWillBeMember<T> > toRefPtrWillBeMemberNativeArray(v8::Han dle<v8::Value> value, int argumentIndex, v8::Isolate* isolate, bool* success = 0 )
638 { 638 {
639 if (success) 639 if (success)
640 *success = true; 640 *success = true;
641 641
642 v8::Local<v8::Value> v8Value(v8::Local<v8::Value>::New(isolate, value)); 642 v8::Local<v8::Value> v8Value(v8::Local<v8::Value>::New(isolate, value));
643 uint32_t length = 0; 643 uint32_t length = 0;
644 if (value->IsArray()) { 644 if (value->IsArray()) {
645 length = v8::Local<v8::Array>::Cast(v8Value)->Length(); 645 length = v8::Local<v8::Array>::Cast(v8Value)->Length();
646 } else if (toV8Sequence(value, length, isolate).IsEmpty()) { 646 } else if (toV8Sequence(value, length, isolate).IsEmpty()) {
647 throwTypeError(ExceptionMessages::notAnArrayTypeArgumentOrValue(argument Index), isolate); 647 throwTypeError(ExceptionMessages::notAnArrayTypeArgumentOrValue(argument Index), isolate);
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
847 847
848 private: 848 private:
849 v8::HandleScope m_handleScope; 849 v8::HandleScope m_handleScope;
850 v8::Context::Scope m_contextScope; 850 v8::Context::Scope m_contextScope;
851 RefPtr<NewScriptState> m_scriptState; 851 RefPtr<NewScriptState> m_scriptState;
852 }; 852 };
853 853
854 } // namespace WebCore 854 } // namespace WebCore
855 855
856 #endif // V8Binding_h 856 #endif // V8Binding_h
OLDNEW
« no previous file with comments | « no previous file | Source/modules/mediastream/MediaDeviceInfo.h » ('j') | Source/modules/mediastream/MediaStream.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698