webengine/osswebengine/DerivedSources/WebCore/JSCanvasPattern.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 JSCanvasPattern_H
       
    22 #define JSCanvasPattern_H
       
    23 
       
    24 #include "kjs_binding.h"
       
    25 
       
    26 namespace WebCore {
       
    27 
       
    28 class CanvasPattern;
       
    29 
       
    30 class JSCanvasPattern : public KJS::DOMObject {
       
    31 public:
       
    32     JSCanvasPattern(KJS::ExecState*, CanvasPattern*);
       
    33     virtual ~JSCanvasPattern();
       
    34     virtual const KJS::ClassInfo* classInfo() const { return &info; }
       
    35     static const KJS::ClassInfo info;
       
    36 
       
    37     CanvasPattern* impl() const { return m_impl.get(); }
       
    38 private:
       
    39     RefPtr<CanvasPattern> m_impl;
       
    40 };
       
    41 
       
    42 KJS::JSValue* toJS(KJS::ExecState*, CanvasPattern*);
       
    43 CanvasPattern* toCanvasPattern(KJS::JSValue*);
       
    44 
       
    45 class JSCanvasPatternPrototype : public KJS::JSObject {
       
    46 public:
       
    47     static KJS::JSObject* self(KJS::ExecState* exec);
       
    48     virtual const KJS::ClassInfo* classInfo() const { return &info; }
       
    49     static const KJS::ClassInfo info;
       
    50     JSCanvasPatternPrototype(KJS::ExecState* exec)
       
    51         : KJS::JSObject(exec->lexicalInterpreter()->builtinObjectPrototype()) { }
       
    52 };
       
    53 
       
    54 } // namespace WebCore
       
    55 
       
    56 #endif