WebCore/generated/JSNavigator.h
changeset 0 4f2f89ce4247
child 2 303757a437d3
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 JSNavigator_h
       
    22 #define JSNavigator_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 Navigator;
       
    32 
       
    33 class JSNavigator : public DOMObjectWithGlobalPointer {
       
    34     typedef DOMObjectWithGlobalPointer Base;
       
    35 public:
       
    36     JSNavigator(NonNullPassRefPtr<JSC::Structure>, JSDOMGlobalObject*, PassRefPtr<Navigator>);
       
    37     virtual ~JSNavigator();
       
    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 const JSC::ClassInfo* classInfo() const { return &s_info; }
       
    42     static const JSC::ClassInfo s_info;
       
    43 
       
    44     static PassRefPtr<JSC::Structure> createStructure(JSC::JSValue prototype)
       
    45     {
       
    46         return JSC::Structure::create(prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), AnonymousSlotCount);
       
    47     }
       
    48 
       
    49     virtual void markChildren(JSC::MarkStack&);
       
    50 
       
    51     Navigator* impl() const { return m_impl.get(); }
       
    52 
       
    53 private:
       
    54     RefPtr<Navigator> m_impl;
       
    55 protected:
       
    56     static const unsigned StructureFlags = JSC::OverridesMarkChildren | JSC::OverridesGetOwnPropertySlot | Base::StructureFlags;
       
    57 };
       
    58 
       
    59 JSC::JSValue toJS(JSC::ExecState*, JSDOMGlobalObject*, Navigator*);
       
    60 Navigator* toNavigator(JSC::JSValue);
       
    61 
       
    62 class JSNavigatorPrototype : public JSC::JSObjectWithGlobalObject {
       
    63     typedef JSC::JSObjectWithGlobalObject Base;
       
    64 public:
       
    65     static JSC::JSObject* self(JSC::ExecState*, JSC::JSGlobalObject*);
       
    66     virtual const JSC::ClassInfo* classInfo() const { return &s_info; }
       
    67     static const JSC::ClassInfo s_info;
       
    68     virtual bool getOwnPropertySlot(JSC::ExecState*, const JSC::Identifier&, JSC::PropertySlot&);
       
    69     virtual bool getOwnPropertyDescriptor(JSC::ExecState*, const JSC::Identifier&, JSC::PropertyDescriptor&);
       
    70     static PassRefPtr<JSC::Structure> createStructure(JSC::JSValue prototype)
       
    71     {
       
    72         return JSC::Structure::create(prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), AnonymousSlotCount);
       
    73     }
       
    74     JSNavigatorPrototype(JSC::JSGlobalObject* globalObject, NonNullPassRefPtr<JSC::Structure> structure) : JSC::JSObjectWithGlobalObject(globalObject, structure) { }
       
    75 protected:
       
    76     static const unsigned StructureFlags = JSC::OverridesMarkChildren | JSC::OverridesGetOwnPropertySlot | Base::StructureFlags;
       
    77 };
       
    78 
       
    79 // Functions
       
    80 
       
    81 JSC::EncodedJSValue JSC_HOST_CALL jsNavigatorPrototypeFunctionJavaEnabled(JSC::ExecState*);
       
    82 JSC::EncodedJSValue JSC_HOST_CALL jsNavigatorPrototypeFunctionGetStorageUpdates(JSC::ExecState*);
       
    83 // Attributes
       
    84 
       
    85 JSC::JSValue jsNavigatorAppCodeName(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
       
    86 JSC::JSValue jsNavigatorAppName(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
       
    87 JSC::JSValue jsNavigatorAppVersion(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
       
    88 JSC::JSValue jsNavigatorLanguage(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
       
    89 JSC::JSValue jsNavigatorUserAgent(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
       
    90 JSC::JSValue jsNavigatorPlatform(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
       
    91 JSC::JSValue jsNavigatorPlugins(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
       
    92 JSC::JSValue jsNavigatorMimeTypes(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
       
    93 JSC::JSValue jsNavigatorProduct(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
       
    94 JSC::JSValue jsNavigatorProductSub(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
       
    95 JSC::JSValue jsNavigatorVendor(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
       
    96 JSC::JSValue jsNavigatorVendorSub(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
       
    97 JSC::JSValue jsNavigatorCookieEnabled(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
       
    98 JSC::JSValue jsNavigatorOnLine(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
       
    99 JSC::JSValue jsNavigatorGeolocation(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
       
   100 
       
   101 } // namespace WebCore
       
   102 
       
   103 #endif