WebCore/generated/JSInspectorBackend.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 JSInspectorBackend_h
       
    22 #define JSInspectorBackend_h
       
    23 
       
    24 #if ENABLE(INSPECTOR)
       
    25 
       
    26 #include "JSDOMBinding.h"
       
    27 #include <runtime/JSGlobalObject.h>
       
    28 #include <runtime/JSObjectWithGlobalObject.h>
       
    29 #include <runtime/ObjectPrototype.h>
       
    30 
       
    31 namespace WebCore {
       
    32 
       
    33 class InspectorBackend;
       
    34 
       
    35 class JSInspectorBackend : public DOMObjectWithGlobalPointer {
       
    36     typedef DOMObjectWithGlobalPointer Base;
       
    37 public:
       
    38     JSInspectorBackend(NonNullPassRefPtr<JSC::Structure>, JSDOMGlobalObject*, PassRefPtr<InspectorBackend>);
       
    39     virtual ~JSInspectorBackend();
       
    40     static JSC::JSObject* createPrototype(JSC::ExecState*, JSC::JSGlobalObject*);
       
    41     virtual bool getOwnPropertySlot(JSC::ExecState*, const JSC::Identifier& propertyName, JSC::PropertySlot&);
       
    42     virtual bool getOwnPropertyDescriptor(JSC::ExecState*, const JSC::Identifier& propertyName, JSC::PropertyDescriptor&);
       
    43     virtual const JSC::ClassInfo* classInfo() const { return &s_info; }
       
    44     static const JSC::ClassInfo s_info;
       
    45 
       
    46     static PassRefPtr<JSC::Structure> createStructure(JSC::JSValue prototype)
       
    47     {
       
    48         return JSC::Structure::create(prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), AnonymousSlotCount);
       
    49     }
       
    50 
       
    51     static JSC::JSValue getConstructor(JSC::ExecState*, JSC::JSGlobalObject*);
       
    52     InspectorBackend* impl() const { return m_impl.get(); }
       
    53 
       
    54 private:
       
    55     RefPtr<InspectorBackend> m_impl;
       
    56 protected:
       
    57     static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | Base::StructureFlags;
       
    58 };
       
    59 
       
    60 JSC::JSValue toJS(JSC::ExecState*, JSDOMGlobalObject*, InspectorBackend*);
       
    61 InspectorBackend* toInspectorBackend(JSC::JSValue);
       
    62 
       
    63 class JSInspectorBackendPrototype : public JSC::JSObjectWithGlobalObject {
       
    64     typedef JSC::JSObjectWithGlobalObject Base;
       
    65 public:
       
    66     static JSC::JSObject* self(JSC::ExecState*, JSC::JSGlobalObject*);
       
    67     virtual const JSC::ClassInfo* classInfo() const { return &s_info; }
       
    68     static const JSC::ClassInfo s_info;
       
    69     virtual bool getOwnPropertySlot(JSC::ExecState*, const JSC::Identifier&, JSC::PropertySlot&);
       
    70     virtual bool getOwnPropertyDescriptor(JSC::ExecState*, const JSC::Identifier&, JSC::PropertyDescriptor&);
       
    71     static PassRefPtr<JSC::Structure> createStructure(JSC::JSValue prototype)
       
    72     {
       
    73         return JSC::Structure::create(prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), AnonymousSlotCount);
       
    74     }
       
    75     JSInspectorBackendPrototype(JSC::JSGlobalObject* globalObject, NonNullPassRefPtr<JSC::Structure> structure) : JSC::JSObjectWithGlobalObject(globalObject, structure) { }
       
    76 protected:
       
    77     static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | Base::StructureFlags;
       
    78 };
       
    79 
       
    80 // Functions
       
    81 
       
    82 JSC::EncodedJSValue JSC_HOST_CALL jsInspectorBackendPrototypeFunctionStoreLastActivePanel(JSC::ExecState*);
       
    83 JSC::EncodedJSValue JSC_HOST_CALL jsInspectorBackendPrototypeFunctionSaveApplicationSettings(JSC::ExecState*);
       
    84 JSC::EncodedJSValue JSC_HOST_CALL jsInspectorBackendPrototypeFunctionSaveSessionSettings(JSC::ExecState*);
       
    85 JSC::EncodedJSValue JSC_HOST_CALL jsInspectorBackendPrototypeFunctionEnableSearchingForNode(JSC::ExecState*);
       
    86 JSC::EncodedJSValue JSC_HOST_CALL jsInspectorBackendPrototypeFunctionDisableSearchingForNode(JSC::ExecState*);
       
    87 JSC::EncodedJSValue JSC_HOST_CALL jsInspectorBackendPrototypeFunctionEnableMonitoringXHR(JSC::ExecState*);
       
    88 JSC::EncodedJSValue JSC_HOST_CALL jsInspectorBackendPrototypeFunctionDisableMonitoringXHR(JSC::ExecState*);
       
    89 JSC::EncodedJSValue JSC_HOST_CALL jsInspectorBackendPrototypeFunctionEnableResourceTracking(JSC::ExecState*);
       
    90 JSC::EncodedJSValue JSC_HOST_CALL jsInspectorBackendPrototypeFunctionDisableResourceTracking(JSC::ExecState*);
       
    91 JSC::EncodedJSValue JSC_HOST_CALL jsInspectorBackendPrototypeFunctionGetResourceContent(JSC::ExecState*);
       
    92 JSC::EncodedJSValue JSC_HOST_CALL jsInspectorBackendPrototypeFunctionReloadPage(JSC::ExecState*);
       
    93 JSC::EncodedJSValue JSC_HOST_CALL jsInspectorBackendPrototypeFunctionStartTimelineProfiler(JSC::ExecState*);
       
    94 JSC::EncodedJSValue JSC_HOST_CALL jsInspectorBackendPrototypeFunctionStopTimelineProfiler(JSC::ExecState*);
       
    95 JSC::EncodedJSValue JSC_HOST_CALL jsInspectorBackendPrototypeFunctionEnableDebugger(JSC::ExecState*);
       
    96 JSC::EncodedJSValue JSC_HOST_CALL jsInspectorBackendPrototypeFunctionDisableDebugger(JSC::ExecState*);
       
    97 JSC::EncodedJSValue JSC_HOST_CALL jsInspectorBackendPrototypeFunctionSetBreakpoint(JSC::ExecState*);
       
    98 JSC::EncodedJSValue JSC_HOST_CALL jsInspectorBackendPrototypeFunctionRemoveBreakpoint(JSC::ExecState*);
       
    99 JSC::EncodedJSValue JSC_HOST_CALL jsInspectorBackendPrototypeFunctionActivateBreakpoints(JSC::ExecState*);
       
   100 JSC::EncodedJSValue JSC_HOST_CALL jsInspectorBackendPrototypeFunctionDeactivateBreakpoints(JSC::ExecState*);
       
   101 JSC::EncodedJSValue JSC_HOST_CALL jsInspectorBackendPrototypeFunctionPause(JSC::ExecState*);
       
   102 JSC::EncodedJSValue JSC_HOST_CALL jsInspectorBackendPrototypeFunctionResume(JSC::ExecState*);
       
   103 JSC::EncodedJSValue JSC_HOST_CALL jsInspectorBackendPrototypeFunctionStepOverStatement(JSC::ExecState*);
       
   104 JSC::EncodedJSValue JSC_HOST_CALL jsInspectorBackendPrototypeFunctionStepIntoStatement(JSC::ExecState*);
       
   105 JSC::EncodedJSValue JSC_HOST_CALL jsInspectorBackendPrototypeFunctionStepOutOfFunction(JSC::ExecState*);
       
   106 JSC::EncodedJSValue JSC_HOST_CALL jsInspectorBackendPrototypeFunctionSetPauseOnExceptionsState(JSC::ExecState*);
       
   107 JSC::EncodedJSValue JSC_HOST_CALL jsInspectorBackendPrototypeFunctionEditScriptSource(JSC::ExecState*);
       
   108 JSC::EncodedJSValue JSC_HOST_CALL jsInspectorBackendPrototypeFunctionGetScriptSource(JSC::ExecState*);
       
   109 JSC::EncodedJSValue JSC_HOST_CALL jsInspectorBackendPrototypeFunctionEnableProfiler(JSC::ExecState*);
       
   110 JSC::EncodedJSValue JSC_HOST_CALL jsInspectorBackendPrototypeFunctionDisableProfiler(JSC::ExecState*);
       
   111 JSC::EncodedJSValue JSC_HOST_CALL jsInspectorBackendPrototypeFunctionStartProfiling(JSC::ExecState*);
       
   112 JSC::EncodedJSValue JSC_HOST_CALL jsInspectorBackendPrototypeFunctionStopProfiling(JSC::ExecState*);
       
   113 JSC::EncodedJSValue JSC_HOST_CALL jsInspectorBackendPrototypeFunctionGetProfileHeaders(JSC::ExecState*);
       
   114 JSC::EncodedJSValue JSC_HOST_CALL jsInspectorBackendPrototypeFunctionGetProfile(JSC::ExecState*);
       
   115 JSC::EncodedJSValue JSC_HOST_CALL jsInspectorBackendPrototypeFunctionRemoveProfile(JSC::ExecState*);
       
   116 JSC::EncodedJSValue JSC_HOST_CALL jsInspectorBackendPrototypeFunctionClearProfiles(JSC::ExecState*);
       
   117 JSC::EncodedJSValue JSC_HOST_CALL jsInspectorBackendPrototypeFunctionTakeHeapSnapshot(JSC::ExecState*);
       
   118 JSC::EncodedJSValue JSC_HOST_CALL jsInspectorBackendPrototypeFunctionSetInjectedScriptSource(JSC::ExecState*);
       
   119 JSC::EncodedJSValue JSC_HOST_CALL jsInspectorBackendPrototypeFunctionDispatchOnInjectedScript(JSC::ExecState*);
       
   120 JSC::EncodedJSValue JSC_HOST_CALL jsInspectorBackendPrototypeFunctionAddScriptToEvaluateOnLoad(JSC::ExecState*);
       
   121 JSC::EncodedJSValue JSC_HOST_CALL jsInspectorBackendPrototypeFunctionRemoveAllScriptsToEvaluateOnLoad(JSC::ExecState*);
       
   122 JSC::EncodedJSValue JSC_HOST_CALL jsInspectorBackendPrototypeFunctionGetChildNodes(JSC::ExecState*);
       
   123 JSC::EncodedJSValue JSC_HOST_CALL jsInspectorBackendPrototypeFunctionSetAttribute(JSC::ExecState*);
       
   124 JSC::EncodedJSValue JSC_HOST_CALL jsInspectorBackendPrototypeFunctionRemoveAttribute(JSC::ExecState*);
       
   125 JSC::EncodedJSValue JSC_HOST_CALL jsInspectorBackendPrototypeFunctionSetTextNodeValue(JSC::ExecState*);
       
   126 JSC::EncodedJSValue JSC_HOST_CALL jsInspectorBackendPrototypeFunctionGetEventListenersForNode(JSC::ExecState*);
       
   127 JSC::EncodedJSValue JSC_HOST_CALL jsInspectorBackendPrototypeFunctionCopyNode(JSC::ExecState*);
       
   128 JSC::EncodedJSValue JSC_HOST_CALL jsInspectorBackendPrototypeFunctionRemoveNode(JSC::ExecState*);
       
   129 JSC::EncodedJSValue JSC_HOST_CALL jsInspectorBackendPrototypeFunctionChangeTagName(JSC::ExecState*);
       
   130 JSC::EncodedJSValue JSC_HOST_CALL jsInspectorBackendPrototypeFunctionGetOuterHTML(JSC::ExecState*);
       
   131 JSC::EncodedJSValue JSC_HOST_CALL jsInspectorBackendPrototypeFunctionSetOuterHTML(JSC::ExecState*);
       
   132 JSC::EncodedJSValue JSC_HOST_CALL jsInspectorBackendPrototypeFunctionAddInspectedNode(JSC::ExecState*);
       
   133 JSC::EncodedJSValue JSC_HOST_CALL jsInspectorBackendPrototypeFunctionPerformSearch(JSC::ExecState*);
       
   134 JSC::EncodedJSValue JSC_HOST_CALL jsInspectorBackendPrototypeFunctionSearchCanceled(JSC::ExecState*);
       
   135 JSC::EncodedJSValue JSC_HOST_CALL jsInspectorBackendPrototypeFunctionPushNodeByPathToFrontend(JSC::ExecState*);
       
   136 JSC::EncodedJSValue JSC_HOST_CALL jsInspectorBackendPrototypeFunctionClearConsoleMessages(JSC::ExecState*);
       
   137 JSC::EncodedJSValue JSC_HOST_CALL jsInspectorBackendPrototypeFunctionHighlightDOMNode(JSC::ExecState*);
       
   138 JSC::EncodedJSValue JSC_HOST_CALL jsInspectorBackendPrototypeFunctionHideDOMNodeHighlight(JSC::ExecState*);
       
   139 JSC::EncodedJSValue JSC_HOST_CALL jsInspectorBackendPrototypeFunctionGetStyles(JSC::ExecState*);
       
   140 JSC::EncodedJSValue JSC_HOST_CALL jsInspectorBackendPrototypeFunctionGetAllStyles(JSC::ExecState*);
       
   141 JSC::EncodedJSValue JSC_HOST_CALL jsInspectorBackendPrototypeFunctionGetInlineStyle(JSC::ExecState*);
       
   142 JSC::EncodedJSValue JSC_HOST_CALL jsInspectorBackendPrototypeFunctionGetComputedStyle(JSC::ExecState*);
       
   143 JSC::EncodedJSValue JSC_HOST_CALL jsInspectorBackendPrototypeFunctionGetStyleSheet(JSC::ExecState*);
       
   144 JSC::EncodedJSValue JSC_HOST_CALL jsInspectorBackendPrototypeFunctionGetRuleRangesForStyleSheetId(JSC::ExecState*);
       
   145 JSC::EncodedJSValue JSC_HOST_CALL jsInspectorBackendPrototypeFunctionApplyStyleText(JSC::ExecState*);
       
   146 JSC::EncodedJSValue JSC_HOST_CALL jsInspectorBackendPrototypeFunctionSetStyleText(JSC::ExecState*);
       
   147 JSC::EncodedJSValue JSC_HOST_CALL jsInspectorBackendPrototypeFunctionSetStyleProperty(JSC::ExecState*);
       
   148 JSC::EncodedJSValue JSC_HOST_CALL jsInspectorBackendPrototypeFunctionToggleStyleEnabled(JSC::ExecState*);
       
   149 JSC::EncodedJSValue JSC_HOST_CALL jsInspectorBackendPrototypeFunctionSetRuleSelector(JSC::ExecState*);
       
   150 JSC::EncodedJSValue JSC_HOST_CALL jsInspectorBackendPrototypeFunctionAddRule(JSC::ExecState*);
       
   151 JSC::EncodedJSValue JSC_HOST_CALL jsInspectorBackendPrototypeFunctionGetCookies(JSC::ExecState*);
       
   152 JSC::EncodedJSValue JSC_HOST_CALL jsInspectorBackendPrototypeFunctionDeleteCookie(JSC::ExecState*);
       
   153 JSC::EncodedJSValue JSC_HOST_CALL jsInspectorBackendPrototypeFunctionGetApplicationCaches(JSC::ExecState*);
       
   154 JSC::EncodedJSValue JSC_HOST_CALL jsInspectorBackendPrototypeFunctionReleaseWrapperObjectGroup(JSC::ExecState*);
       
   155 JSC::EncodedJSValue JSC_HOST_CALL jsInspectorBackendPrototypeFunctionDidEvaluateForTestInFrontend(JSC::ExecState*);
       
   156 JSC::EncodedJSValue JSC_HOST_CALL jsInspectorBackendPrototypeFunctionGetDatabaseTableNames(JSC::ExecState*);
       
   157 JSC::EncodedJSValue JSC_HOST_CALL jsInspectorBackendPrototypeFunctionGetDOMStorageEntries(JSC::ExecState*);
       
   158 JSC::EncodedJSValue JSC_HOST_CALL jsInspectorBackendPrototypeFunctionSetDOMStorageItem(JSC::ExecState*);
       
   159 JSC::EncodedJSValue JSC_HOST_CALL jsInspectorBackendPrototypeFunctionRemoveDOMStorageItem(JSC::ExecState*);
       
   160 // Attributes
       
   161 
       
   162 JSC::JSValue jsInspectorBackendConstructor(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
       
   163 
       
   164 } // namespace WebCore
       
   165 
       
   166 #endif // ENABLE(INSPECTOR)
       
   167 
       
   168 #endif