X-Git-Url: https://git.webkit.org/?p=WebKit-https.git;a=blobdiff_plain;f=WebKitTools%2FDrosera%2Fwin%2FServerConnection.h;h=7007c1bb92c79a381203f651e255f10a34a13488;hp=2beea4a22ca1e1ca789f3740d4ea00f04517f65e;hb=81b059576087d992a1b04f7e88eaca3f1ba0da40;hpb=ba2ad9b9449f53b32f2e87eb01f02a953a097f73 diff --git a/WebKitTools/Drosera/win/ServerConnection.h b/WebKitTools/Drosera/win/ServerConnection.h index 2beea4a22ca1..7007c1bb92c7 100644 --- a/WebKitTools/Drosera/win/ServerConnection.h +++ b/WebKitTools/Drosera/win/ServerConnection.h @@ -36,7 +36,7 @@ #include class DebuggerClient; -class WebScriptCallFrame; +interface IWebScriptCallFrame; typedef struct OpaqueJSContext* JSGlobalContextRef; @@ -52,7 +52,8 @@ public: void applicationTerminating(); void serverConnectionDidDie(); - WebScriptCallFrame* currentFrame() const; + IWebScriptCallFrame* currentFrame() const; + IWebScriptCallFrame* getCallerFrame(int callFrame) const; // IUnknown HRESULT STDMETHODCALLTYPE QueryInterface( @@ -64,57 +65,58 @@ public: // IWebScriptDebugListener HRESULT STDMETHODCALLTYPE didLoadMainResourceForDataSource( - /* [in] */ IWebView* view, + /* [in] */ IWebView*, /* [in] */ IWebDataSource* dataSource); HRESULT STDMETHODCALLTYPE didParseSource( - /* [in] */ IWebView* view, + /* [in] */ IWebView*, /* [in] */ BSTR sourceCode, /* [in] */ UINT baseLineNumber, /* [in] */ BSTR url, /* [in] */ int sourceID, - /* [in] */ IWebFrame* forWebFrame); + /* [in] */ IWebFrame* webFrame); HRESULT STDMETHODCALLTYPE failedToParseSource( - /* [in] */ IWebView* view, + /* [in] */ IWebView*, /* [in] */ BSTR sourceCode, /* [in] */ UINT baseLineNumber, /* [in] */ BSTR url, /* [in] */ BSTR error, - /* [in] */ IWebFrame* forWebFrame); + /* [in] */ IWebFrame*); HRESULT STDMETHODCALLTYPE didEnterCallFrame( - /* [in] */ IWebView* view, + /* [in] */ IWebView*, /* [in] */ IWebScriptCallFrame* frame, /* [in] */ int sourceID, /* [in] */ int lineNumber, - /* [in] */ IWebFrame* forWebFrame); + /* [in] */ IWebFrame*); HRESULT STDMETHODCALLTYPE willExecuteStatement( - /* [in] */ IWebView* view, - /* [in] */ IWebScriptCallFrame* frame, + /* [in] */ IWebView*, + /* [in] */ IWebScriptCallFrame*, /* [in] */ int sourceID, /* [in] */ int lineNumber, - /* [in] */ IWebFrame* forWebFrame); + /* [in] */ IWebFrame*); HRESULT STDMETHODCALLTYPE willLeaveCallFrame( - /* [in] */ IWebView* view, + /* [in] */ IWebView*, /* [in] */ IWebScriptCallFrame* frame, /* [in] */ int sourceID, /* [in] */ int lineNumber, - /* [in] */ IWebFrame* forWebFrame); + /* [in] */ IWebFrame*); HRESULT STDMETHODCALLTYPE exceptionWasRaised( - /* [in] */ IWebView* view, - /* [in] */ IWebScriptCallFrame* frame, + /* [in] */ IWebView*, + /* [in] */ IWebScriptCallFrame*, /* [in] */ int sourceID, /* [in] */ int lineNumber, - /* [in] */ IWebFrame* forWebFrame); + /* [in] */ IWebFrame*); private: std::wstring m_currentServerName; - WebScriptCallFrame* m_currentFrame; + // FIXME: make this a COMPtr when the Interface exists and the destructor can be called. + IWebScriptCallFrame* m_currentFrame; COMPtr m_server; JSGlobalContextRef m_globalContext; };