| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // This file has been auto-generated by code_generator_v8.py. | 5 // This file has been auto-generated by code_generator_v8.py. |
| 6 // DO NOT MODIFY! | 6 // DO NOT MODIFY! |
| 7 | 7 |
| 8 // This file has been generated from the Jinja2 template in | 8 // This file has been generated from the Jinja2 template in |
| 9 // third_party/WebKit/Source/bindings/templates/interface.cpp.tmpl | 9 // third_party/WebKit/Source/bindings/templates/interface.cpp.tmpl |
| 10 | 10 |
| (...skipping 7715 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7726 if (info.Length() > 1) { | 7726 if (info.Length() > 1) { |
| 7727 const int transferablesArgIndex = 1; | 7727 const int transferablesArgIndex = 1; |
| 7728 if (!SerializedScriptValue::extractTransferables(info.GetIsolate(), info[tra
nsferablesArgIndex], transferablesArgIndex, transferables, exceptionState)) { | 7728 if (!SerializedScriptValue::extractTransferables(info.GetIsolate(), info[tra
nsferablesArgIndex], transferablesArgIndex, transferables, exceptionState)) { |
| 7729 return; | 7729 return; |
| 7730 } | 7730 } |
| 7731 } | 7731 } |
| 7732 | 7732 |
| 7733 RefPtr<SerializedScriptValue> message; | 7733 RefPtr<SerializedScriptValue> message; |
| 7734 if (instance->canTransferArrayBuffersAndImageBitmaps()) { | 7734 if (instance->canTransferArrayBuffersAndImageBitmaps()) { |
| 7735 // This instance supports sending array buffers by move semantics. | 7735 // This instance supports sending array buffers by move semantics. |
| 7736 message = SerializedScriptValue::serialize(info.GetIsolate(), info[0], &tran
sferables, nullptr, exceptionState); | 7736 SerializedScriptValue::SerializeOptions options; |
| 7737 options.transferables = &transferables; |
| 7738 message = SerializedScriptValue::serialize(info.GetIsolate(), info[0], optio
ns, exceptionState); |
| 7737 if (exceptionState.hadException()) | 7739 if (exceptionState.hadException()) |
| 7738 return; | 7740 return; |
| 7739 } else { | 7741 } else { |
| 7740 // This instance doesn't support sending array buffers and image bitmaps | 7742 // This instance doesn't support sending array buffers and image bitmaps |
| 7741 // by move semantics. Emulate it by copy-and-neuter semantics that sends | 7743 // by move semantics. Emulate it by copy-and-neuter semantics that sends |
| 7742 // array buffers and image bitmaps via structured clone and then neuters | 7744 // array buffers and image bitmaps via structured clone and then neuters |
| 7743 // the original objects | 7745 // the original objects |
| 7744 | 7746 |
| 7745 // Clear references to array buffers and image bitmaps from transferables | 7747 // Clear references to array buffers and image bitmaps from transferables |
| 7746 // so that the serializer can consider the array buffers as | 7748 // so that the serializer can consider the array buffers as |
| 7747 // non-transferable and serialize them into the message. | 7749 // non-transferable and serialize them into the message. |
| 7748 ArrayBufferArray transferableArrayBuffers = transferables.arrayBuffers; | 7750 ArrayBufferArray transferableArrayBuffers = transferables.arrayBuffers; |
| 7749 transferables.arrayBuffers.clear(); | 7751 transferables.arrayBuffers.clear(); |
| 7750 ImageBitmapArray transferableImageBitmaps = transferables.imageBitmaps; | 7752 ImageBitmapArray transferableImageBitmaps = transferables.imageBitmaps; |
| 7751 transferables.imageBitmaps.clear(); | 7753 transferables.imageBitmaps.clear(); |
| 7752 message = SerializedScriptValue::serialize(info.GetIsolate(), info[0], &tran
sferables, nullptr, exceptionState); | 7754 SerializedScriptValue::SerializeOptions options; |
| 7755 options.transferables = &transferables; |
| 7756 message = SerializedScriptValue::serialize(info.GetIsolate(), info[0], optio
ns, exceptionState); |
| 7753 if (exceptionState.hadException()) | 7757 if (exceptionState.hadException()) |
| 7754 return; | 7758 return; |
| 7755 | 7759 |
| 7756 // Neuter the original array buffers on the sender context. | 7760 // Neuter the original array buffers on the sender context. |
| 7757 SerializedScriptValue::transferArrayBufferContents(info.GetIsolate(), transf
erableArrayBuffers, exceptionState); | 7761 SerializedScriptValue::transferArrayBufferContents(info.GetIsolate(), transf
erableArrayBuffers, exceptionState); |
| 7758 if (exceptionState.hadException()) | 7762 if (exceptionState.hadException()) |
| 7759 return; | 7763 return; |
| 7760 // Neuter the original image bitmaps on the sender context. | 7764 // Neuter the original image bitmaps on the sender context. |
| 7761 SerializedScriptValue::transferImageBitmapContents(info.GetIsolate(), transf
erableImageBitmaps, exceptionState); | 7765 SerializedScriptValue::transferImageBitmapContents(info.GetIsolate(), transf
erableImageBitmaps, exceptionState); |
| 7762 if (exceptionState.hadException()) | 7766 if (exceptionState.hadException()) |
| (...skipping 4116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11879 unscopables->CreateDataProperty(context, v8AtomicString(isolate, "unscopable
RuntimeEnabledLongAttribute"), v8::True(isolate)).FromJust(); | 11883 unscopables->CreateDataProperty(context, v8AtomicString(isolate, "unscopable
RuntimeEnabledLongAttribute"), v8::True(isolate)).FromJust(); |
| 11880 } | 11884 } |
| 11881 if (RuntimeEnabledFeatures::featureNameEnabled()) { | 11885 if (RuntimeEnabledFeatures::featureNameEnabled()) { |
| 11882 unscopables->CreateDataProperty(context, v8AtomicString(isolate, "unscopable
RuntimeEnabledVoidMethod"), v8::True(isolate)).FromJust(); | 11886 unscopables->CreateDataProperty(context, v8AtomicString(isolate, "unscopable
RuntimeEnabledVoidMethod"), v8::True(isolate)).FromJust(); |
| 11883 } | 11887 } |
| 11884 unscopables->CreateDataProperty(context, v8AtomicString(isolate, "unscopableVo
idMethod"), v8::True(isolate)).FromJust(); | 11888 unscopables->CreateDataProperty(context, v8AtomicString(isolate, "unscopableVo
idMethod"), v8::True(isolate)).FromJust(); |
| 11885 prototypeObject->CreateDataProperty(context, unscopablesSymbol, unscopables).F
romJust(); | 11889 prototypeObject->CreateDataProperty(context, unscopablesSymbol, unscopables).F
romJust(); |
| 11886 } | 11890 } |
| 11887 | 11891 |
| 11888 } // namespace blink | 11892 } // namespace blink |
| OLD | NEW |