OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2007-2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2007-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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 #include "V8DOMImplementation.h" | 45 #include "V8DOMImplementation.h" |
46 #include "V8HTMLDocument.h" | 46 #include "V8HTMLDocument.h" |
47 #include "V8Node.h" | 47 #include "V8Node.h" |
48 #include "V8SVGDocument.h" | 48 #include "V8SVGDocument.h" |
49 #include "V8Touch.h" | 49 #include "V8Touch.h" |
50 #include "V8TouchList.h" | 50 #include "V8TouchList.h" |
51 #include "V8WebGLRenderingContext.h" | 51 #include "V8WebGLRenderingContext.h" |
52 #include "V8XPathNSResolver.h" | 52 #include "V8XPathNSResolver.h" |
53 #include "V8XPathResult.h" | 53 #include "V8XPathResult.h" |
54 #include "bindings/v8/V8Binding.h" | 54 #include "bindings/v8/V8Binding.h" |
| 55 #include "bindings/v8/V8DOMWindowShell.h" |
55 #include "bindings/v8/V8DOMWrapper.h" | 56 #include "bindings/v8/V8DOMWrapper.h" |
56 #include "bindings/v8/V8WindowShell.h" | |
57 #include "bindings/v8/custom/V8CustomXPathNSResolver.h" | 57 #include "bindings/v8/custom/V8CustomXPathNSResolver.h" |
58 | 58 |
59 #include "wtf/RefPtr.h" | 59 #include "wtf/RefPtr.h" |
60 | 60 |
61 namespace WebCore { | 61 namespace WebCore { |
62 | 62 |
63 void V8Document::evaluateMethodCustom(const v8::FunctionCallbackInfo<v8::Value>&
args) | 63 void V8Document::evaluateMethodCustom(const v8::FunctionCallbackInfo<v8::Value>&
args) |
64 { | 64 { |
65 RefPtr<Document> document = V8Document::toNative(args.Holder()); | 65 RefPtr<Document> document = V8Document::toNative(args.Holder()); |
66 ExceptionCode ec = 0; | 66 ExceptionCode ec = 0; |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 | 112 |
113 for (int i = 0; i < args.Length(); i++) { | 113 for (int i = 0; i < args.Length(); i++) { |
114 Touch* touch = V8DOMWrapper::isWrapperOfType(args[i], &V8Touch::info) ?
V8Touch::toNative(args[i]->ToObject()) : 0; | 114 Touch* touch = V8DOMWrapper::isWrapperOfType(args[i], &V8Touch::info) ?
V8Touch::toNative(args[i]->ToObject()) : 0; |
115 touchList->append(touch); | 115 touchList->append(touch); |
116 } | 116 } |
117 | 117 |
118 v8SetReturnValue(args, toV8(touchList.release(), args.Holder(), args.GetIsol
ate())); | 118 v8SetReturnValue(args, toV8(touchList.release(), args.Holder(), args.GetIsol
ate())); |
119 } | 119 } |
120 | 120 |
121 } // namespace WebCore | 121 } // namespace WebCore |
OLD | NEW |