WebCore/generated/JSClipboard.h
changeset 0 4f2f89ce4247
equal deleted inserted replaced
-1:000000000000 0:4f2f89ce4247
       
     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 JSClipboard_h
       
    22 #define JSClipboard_h
       
    23 
       
    24 #include "JSDOMBinding.h"
       
    25 #include <runtime/JSGlobalObject.h>
       
    26 #include <runtime/JSObjectWithGlobalObject.h>
       
    27 #include <runtime/ObjectPrototype.h>
       
    28 
       
    29 namespace WebCore {
       
    30 
       
    31 class Clipboard;
       
    32 
       
    33 class JSClipboard : public DOMObjectWithGlobalPointer {
       
    34     typedef DOMObjectWithGlobalPointer Base;
       
    35 public:
       
    36     JSClipboard(NonNullPassRefPtr<JSC::Structure>, JSDOMGlobalObject*, PassRefPtr<Clipboard>);
       
    37     virtual ~JSClipboard();
       
    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 
       
    52     // Custom attributes
       
    53     JSC::JSValue types(JSC::ExecState*) const;
       
    54 
       
    55     // Custom functions
       
    56     JSC::JSValue clearData(JSC::ExecState*);
       
    57     JSC::JSValue getData(JSC::ExecState*);
       
    58     JSC::JSValue setDragImage(JSC::ExecState*);
       
    59     Clipboard* impl() const { return m_impl.get(); }
       
    60 
       
    61 private:
       
    62     RefPtr<Clipboard> m_impl;
       
    63 protected:
       
    64     static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | Base::StructureFlags;
       
    65 };
       
    66 
       
    67 JSC::JSValue toJS(JSC::ExecState*, JSDOMGlobalObject*, Clipboard*);
       
    68 Clipboard* toClipboard(JSC::JSValue);
       
    69 
       
    70 class JSClipboardPrototype : public JSC::JSObjectWithGlobalObject {
       
    71     typedef JSC::JSObjectWithGlobalObject Base;
       
    72 public:
       
    73     static JSC::JSObject* self(JSC::ExecState*, JSC::JSGlobalObject*);
       
    74     virtual const JSC::ClassInfo* classInfo() const { return &s_info; }
       
    75     static const JSC::ClassInfo s_info;
       
    76     virtual bool getOwnPropertySlot(JSC::ExecState*, const JSC::Identifier&, JSC::PropertySlot&);
       
    77     virtual bool getOwnPropertyDescriptor(JSC::ExecState*, const JSC::Identifier&, JSC::PropertyDescriptor&);
       
    78     static PassRefPtr<JSC::Structure> createStructure(JSC::JSValue prototype)
       
    79     {
       
    80         return JSC::Structure::create(prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), AnonymousSlotCount);
       
    81     }
       
    82     JSClipboardPrototype(JSC::JSGlobalObject* globalObject, NonNullPassRefPtr<JSC::Structure> structure) : JSC::JSObjectWithGlobalObject(globalObject, structure) { }
       
    83 protected:
       
    84     static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | Base::StructureFlags;
       
    85 };
       
    86 
       
    87 // Functions
       
    88 
       
    89 JSC::EncodedJSValue JSC_HOST_CALL jsClipboardPrototypeFunctionClearData(JSC::ExecState*);
       
    90 JSC::EncodedJSValue JSC_HOST_CALL jsClipboardPrototypeFunctionGetData(JSC::ExecState*);
       
    91 JSC::EncodedJSValue JSC_HOST_CALL jsClipboardPrototypeFunctionSetData(JSC::ExecState*);
       
    92 JSC::EncodedJSValue JSC_HOST_CALL jsClipboardPrototypeFunctionSetDragImage(JSC::ExecState*);
       
    93 // Attributes
       
    94 
       
    95 JSC::JSValue jsClipboardDropEffect(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
       
    96 void setJSClipboardDropEffect(JSC::ExecState*, JSC::JSObject*, JSC::JSValue);
       
    97 JSC::JSValue jsClipboardEffectAllowed(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
       
    98 void setJSClipboardEffectAllowed(JSC::ExecState*, JSC::JSObject*, JSC::JSValue);
       
    99 JSC::JSValue jsClipboardTypes(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
       
   100 JSC::JSValue jsClipboardFiles(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
       
   101 JSC::JSValue jsClipboardConstructor(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
       
   102 
       
   103 } // namespace WebCore
       
   104 
       
   105 #endif