OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 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 are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * 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 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 19 matching lines...) Expand all Loading... |
30 | 30 |
31 #include "bindings/core/v8/V8MessageEvent.h" | 31 #include "bindings/core/v8/V8MessageEvent.h" |
32 | 32 |
33 #include "bindings/core/v8/IDLTypes.h" | 33 #include "bindings/core/v8/IDLTypes.h" |
34 #include "bindings/core/v8/NativeValueTraitsImpl.h" | 34 #include "bindings/core/v8/NativeValueTraitsImpl.h" |
35 #include "bindings/core/v8/V8ArrayBuffer.h" | 35 #include "bindings/core/v8/V8ArrayBuffer.h" |
36 #include "bindings/core/v8/V8BindingForCore.h" | 36 #include "bindings/core/v8/V8BindingForCore.h" |
37 #include "bindings/core/v8/V8Blob.h" | 37 #include "bindings/core/v8/V8Blob.h" |
38 #include "bindings/core/v8/V8EventTarget.h" | 38 #include "bindings/core/v8/V8EventTarget.h" |
39 #include "bindings/core/v8/V8MessagePort.h" | 39 #include "bindings/core/v8/V8MessagePort.h" |
40 #include "bindings/core/v8/V8PrivateProperty.h" | |
41 #include "bindings/core/v8/V8Window.h" | 40 #include "bindings/core/v8/V8Window.h" |
42 #include "bindings/core/v8/serialization/SerializedScriptValue.h" | 41 #include "platform/bindings/V8PrivateProperty.h" |
43 #include "bindings/core/v8/serialization/SerializedScriptValueFactory.h" | |
44 | 42 |
45 namespace blink { | 43 namespace blink { |
46 | 44 |
47 void V8MessageEvent::dataAttributeGetterCustom( | 45 void V8MessageEvent::dataAttributeGetterCustom( |
48 const v8::FunctionCallbackInfo<v8::Value>& info) { | 46 const v8::FunctionCallbackInfo<v8::Value>& info) { |
49 v8::Isolate* isolate = info.GetIsolate(); | 47 v8::Isolate* isolate = info.GetIsolate(); |
50 auto private_cached_data = | 48 auto private_cached_data = |
51 V8PrivateProperty::GetMessageEventCachedData(isolate); | 49 V8PrivateProperty::GetMessageEventCachedData(isolate); |
52 v8::Local<v8::Value> cached_data = | 50 v8::Local<v8::Value> cached_data = |
53 private_cached_data.GetOrEmpty(info.Holder()); | 51 private_cached_data.GetOrEmpty(info.Holder()); |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 if (exception_state.HadException()) | 126 if (exception_state.HadException()) |
129 return; | 127 return; |
130 } | 128 } |
131 event->initMessageEvent( | 129 event->initMessageEvent( |
132 type_arg, can_bubble_arg, cancelable_arg, | 130 type_arg, can_bubble_arg, cancelable_arg, |
133 ScriptValue(ScriptState::Current(info.GetIsolate()), data_arg), | 131 ScriptValue(ScriptState::Current(info.GetIsolate()), data_arg), |
134 origin_arg, last_event_id_arg, source_arg, port_array); | 132 origin_arg, last_event_id_arg, source_arg, port_array); |
135 } | 133 } |
136 | 134 |
137 } // namespace blink | 135 } // namespace blink |
OLD | NEW |