| 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 20 matching lines...) Expand all Loading... |
| 31 #include "config.h" | 31 #include "config.h" |
| 32 #include "V8MessageEvent.h" | 32 #include "V8MessageEvent.h" |
| 33 | 33 |
| 34 #include "V8Blob.h" | 34 #include "V8Blob.h" |
| 35 #include "V8MessagePort.h" | 35 #include "V8MessagePort.h" |
| 36 #include "V8Window.h" | 36 #include "V8Window.h" |
| 37 #include "bindings/v8/SerializedScriptValue.h" | 37 #include "bindings/v8/SerializedScriptValue.h" |
| 38 #include "bindings/v8/V8Binding.h" | 38 #include "bindings/v8/V8Binding.h" |
| 39 #include "bindings/v8/V8HiddenPropertyName.h" | 39 #include "bindings/v8/V8HiddenPropertyName.h" |
| 40 #include "bindings/v8/custom/V8ArrayBufferCustom.h" | 40 #include "bindings/v8/custom/V8ArrayBufferCustom.h" |
| 41 #include "core/events/MessageEvent.h" | 41 #include "core/dom/MessageEvent.h" |
| 42 | 42 |
| 43 namespace WebCore { | 43 namespace WebCore { |
| 44 | 44 |
| 45 void V8MessageEvent::dataAttributeGetterCustom(v8::Local<v8::String> name, const
v8::PropertyCallbackInfo<v8::Value>& info) | 45 void V8MessageEvent::dataAttributeGetterCustom(v8::Local<v8::String> name, const
v8::PropertyCallbackInfo<v8::Value>& info) |
| 46 { | 46 { |
| 47 MessageEvent* event = V8MessageEvent::toNative(info.Holder()); | 47 MessageEvent* event = V8MessageEvent::toNative(info.Holder()); |
| 48 | 48 |
| 49 v8::Handle<v8::Value> result; | 49 v8::Handle<v8::Value> result; |
| 50 switch (event->dataType()) { | 50 switch (event->dataType()) { |
| 51 case MessageEvent::DataTypeScriptValue: { | 51 case MessageEvent::DataTypeScriptValue: { |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 } | 130 } |
| 131 } | 131 } |
| 132 | 132 |
| 133 void V8MessageEvent::webkitInitMessageEventMethodCustom(const v8::FunctionCallba
ckInfo<v8::Value>& args) | 133 void V8MessageEvent::webkitInitMessageEventMethodCustom(const v8::FunctionCallba
ckInfo<v8::Value>& args) |
| 134 { | 134 { |
| 135 initMessageEventMethodCustom(args); | 135 initMessageEventMethodCustom(args); |
| 136 } | 136 } |
| 137 | 137 |
| 138 | 138 |
| 139 } // namespace WebCore | 139 } // namespace WebCore |
| OLD | NEW |