|
1 /* |
|
2 This file is part of the WebKit open source project. |
|
3 This file has been generated by generate-bindings.pl. DO NOT MODIFY! |
|
4 |
|
5 This library is free software; you can redistribute it and/or |
|
6 modify it under the terms of the GNU Library General Public |
|
7 License as published by the Free Software Foundation; either |
|
8 version 2 of the License, or (at your option) any later version. |
|
9 |
|
10 This library is distributed in the hope that it will be useful, |
|
11 but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
|
13 Library General Public License for more details. |
|
14 |
|
15 You should have received a copy of the GNU Library General Public License |
|
16 along with this library; see the file COPYING.LIB. If not, write to |
|
17 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
|
18 Boston, MA 02110-1301, USA. |
|
19 */ |
|
20 |
|
21 #ifndef JSHTMLVideoElement_h |
|
22 #define JSHTMLVideoElement_h |
|
23 |
|
24 #if ENABLE(VIDEO) |
|
25 |
|
26 #include "HTMLVideoElement.h" |
|
27 #include "JSHTMLMediaElement.h" |
|
28 #include <runtime/JSObjectWithGlobalObject.h> |
|
29 |
|
30 namespace WebCore { |
|
31 |
|
32 class HTMLVideoElement; |
|
33 |
|
34 class JSHTMLVideoElement : public JSHTMLMediaElement { |
|
35 typedef JSHTMLMediaElement Base; |
|
36 public: |
|
37 JSHTMLVideoElement(NonNullPassRefPtr<JSC::Structure>, JSDOMGlobalObject*, PassRefPtr<HTMLVideoElement>); |
|
38 static JSC::JSObject* createPrototype(JSC::ExecState*, JSC::JSGlobalObject*); |
|
39 virtual bool getOwnPropertySlot(JSC::ExecState*, const JSC::Identifier& propertyName, JSC::PropertySlot&); |
|
40 virtual bool getOwnPropertyDescriptor(JSC::ExecState*, const JSC::Identifier& propertyName, JSC::PropertyDescriptor&); |
|
41 virtual void put(JSC::ExecState*, const JSC::Identifier& propertyName, JSC::JSValue, JSC::PutPropertySlot&); |
|
42 virtual const JSC::ClassInfo* classInfo() const { return &s_info; } |
|
43 static const JSC::ClassInfo s_info; |
|
44 |
|
45 static PassRefPtr<JSC::Structure> createStructure(JSC::JSValue prototype) |
|
46 { |
|
47 return JSC::Structure::create(prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), AnonymousSlotCount); |
|
48 } |
|
49 |
|
50 static JSC::JSValue getConstructor(JSC::ExecState*, JSC::JSGlobalObject*); |
|
51 HTMLVideoElement* impl() const |
|
52 { |
|
53 return static_cast<HTMLVideoElement*>(Base::impl()); |
|
54 } |
|
55 protected: |
|
56 static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | Base::StructureFlags; |
|
57 }; |
|
58 |
|
59 HTMLVideoElement* toHTMLVideoElement(JSC::JSValue); |
|
60 |
|
61 class JSHTMLVideoElementPrototype : public JSC::JSObjectWithGlobalObject { |
|
62 typedef JSC::JSObjectWithGlobalObject Base; |
|
63 public: |
|
64 static JSC::JSObject* self(JSC::ExecState*, JSC::JSGlobalObject*); |
|
65 virtual const JSC::ClassInfo* classInfo() const { return &s_info; } |
|
66 static const JSC::ClassInfo s_info; |
|
67 virtual bool getOwnPropertySlot(JSC::ExecState*, const JSC::Identifier&, JSC::PropertySlot&); |
|
68 virtual bool getOwnPropertyDescriptor(JSC::ExecState*, const JSC::Identifier&, JSC::PropertyDescriptor&); |
|
69 static PassRefPtr<JSC::Structure> createStructure(JSC::JSValue prototype) |
|
70 { |
|
71 return JSC::Structure::create(prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), AnonymousSlotCount); |
|
72 } |
|
73 JSHTMLVideoElementPrototype(JSC::JSGlobalObject* globalObject, NonNullPassRefPtr<JSC::Structure> structure) : JSC::JSObjectWithGlobalObject(globalObject, structure) { } |
|
74 protected: |
|
75 static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | Base::StructureFlags; |
|
76 }; |
|
77 |
|
78 // Functions |
|
79 |
|
80 JSC::EncodedJSValue JSC_HOST_CALL jsHTMLVideoElementPrototypeFunctionWebkitEnterFullscreen(JSC::ExecState*); |
|
81 JSC::EncodedJSValue JSC_HOST_CALL jsHTMLVideoElementPrototypeFunctionWebkitExitFullscreen(JSC::ExecState*); |
|
82 JSC::EncodedJSValue JSC_HOST_CALL jsHTMLVideoElementPrototypeFunctionWebkitEnterFullScreen(JSC::ExecState*); |
|
83 JSC::EncodedJSValue JSC_HOST_CALL jsHTMLVideoElementPrototypeFunctionWebkitExitFullScreen(JSC::ExecState*); |
|
84 // Attributes |
|
85 |
|
86 JSC::JSValue jsHTMLVideoElementWidth(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&); |
|
87 void setJSHTMLVideoElementWidth(JSC::ExecState*, JSC::JSObject*, JSC::JSValue); |
|
88 JSC::JSValue jsHTMLVideoElementHeight(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&); |
|
89 void setJSHTMLVideoElementHeight(JSC::ExecState*, JSC::JSObject*, JSC::JSValue); |
|
90 JSC::JSValue jsHTMLVideoElementVideoWidth(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&); |
|
91 JSC::JSValue jsHTMLVideoElementVideoHeight(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&); |
|
92 JSC::JSValue jsHTMLVideoElementPoster(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&); |
|
93 void setJSHTMLVideoElementPoster(JSC::ExecState*, JSC::JSObject*, JSC::JSValue); |
|
94 JSC::JSValue jsHTMLVideoElementWebkitSupportsFullscreen(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&); |
|
95 JSC::JSValue jsHTMLVideoElementWebkitDisplayingFullscreen(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&); |
|
96 JSC::JSValue jsHTMLVideoElementConstructor(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&); |
|
97 |
|
98 } // namespace WebCore |
|
99 |
|
100 #endif // ENABLE(VIDEO) |
|
101 |
|
102 #endif |