webengine/osswebengine/DerivedSources/WebCore/JSUIEvent.h
changeset 0 dd21522fd290
equal deleted inserted replaced
-1:000000000000 0:dd21522fd290
       
     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 JSUIEvent_H
       
    22 #define JSUIEvent_H
       
    23 
       
    24 #include "JSEvent.h"
       
    25 
       
    26 namespace WebCore {
       
    27 
       
    28 class UIEvent;
       
    29 
       
    30 class JSUIEvent : public JSEvent {
       
    31 public:
       
    32     JSUIEvent(KJS::ExecState*, UIEvent*);
       
    33     virtual bool getOwnPropertySlot(KJS::ExecState*, const KJS::Identifier&, KJS::PropertySlot&);
       
    34     KJS::JSValue* getValueProperty(KJS::ExecState*, int token) const;
       
    35     virtual const KJS::ClassInfo* classInfo() const { return &info; }
       
    36     static const KJS::ClassInfo info;
       
    37 
       
    38     enum {
       
    39         // Attributes
       
    40         ViewAttrNum, DetailAttrNum, KeyCodeAttrNum, CharCodeAttrNum, 
       
    41         LayerXAttrNum, LayerYAttrNum, PageXAttrNum, PageYAttrNum, 
       
    42         WhichAttrNum, 
       
    43 
       
    44         // Functions
       
    45         InitUIEventFuncNum
       
    46     };
       
    47 };
       
    48 
       
    49 
       
    50 class JSUIEventPrototype : public KJS::JSObject {
       
    51 public:
       
    52     static KJS::JSObject* self(KJS::ExecState* exec);
       
    53     virtual const KJS::ClassInfo* classInfo() const { return &info; }
       
    54     static const KJS::ClassInfo info;
       
    55     bool getOwnPropertySlot(KJS::ExecState*, const KJS::Identifier&, KJS::PropertySlot&);
       
    56     JSUIEventPrototype(KJS::ExecState* exec)
       
    57         : KJS::JSObject(JSEventPrototype::self(exec)) { }
       
    58 };
       
    59 
       
    60 class JSUIEventPrototypeFunction : public KJS::InternalFunctionImp {
       
    61 public:
       
    62     JSUIEventPrototypeFunction(KJS::ExecState* exec, int i, int len, const KJS::Identifier& name)
       
    63         : KJS::InternalFunctionImp(static_cast<KJS::FunctionPrototype*>(exec->lexicalInterpreter()->builtinFunctionPrototype()), name)
       
    64         , id(i)
       
    65     {
       
    66         put(exec, exec->propertyNames().length, KJS::jsNumber(len), KJS::DontDelete|KJS::ReadOnly|KJS::DontEnum);
       
    67     }
       
    68     virtual KJS::JSValue* callAsFunction(KJS::ExecState*, KJS::JSObject*, const KJS::List&);
       
    69 
       
    70 private:
       
    71     int id;
       
    72 };
       
    73 
       
    74 } // namespace WebCore
       
    75 
       
    76 #endif