Changeset 49305 in webkit
- Timestamp:
- Oct 8, 2009 9:11:08 AM (15 years ago)
- Location:
- trunk
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebKit/win/ChangeLog
r49304 r49305 1 2009-10-08 Adam Roben <aroben@apple.com> 2 3 Make IWebInspectorPrivate be accessed in a more standard way 4 5 IWebViewPrivate::inspectorPrivate has been removed. Callers should 6 instead use IWebViewPrivate::inspector and then use QueryInterface to 7 get the IWebInspectorPrivate interface. This matches how our other COM 8 classes work. 9 10 Fixes <http://webkit.org/b/30215> Make IWebInspectorPrivate be 11 accessed in a more standard way 12 13 Reviewed by John Sullivan and Tim Hatcher. 14 15 * Interfaces/IWebViewPrivate.idl: Removed inspectorPrivate. 16 17 * WebInspector.cpp: 18 (WebInspector::QueryInterface): Support querying to 19 IWebInspectorPrivate. 20 21 * WebView.cpp: 22 * WebView.h: 23 Removed inspectorPrivate. 24 1 25 2009-10-08 Adam Roben <aroben@apple.com> 2 26 -
trunk/WebKit/win/Interfaces/IWebViewPrivate.idl
r49304 r49305 209 209 // Removes all white list entries created with whiteListAccessFromOrigin. 210 210 HRESULT resetOriginAccessWhiteLists(); 211 212 HRESULT inspectorPrivate([out, retval] IWebInspectorPrivate**);213 211 } -
trunk/WebKit/win/WebInspector.cpp
r49091 r49305 73 73 if (IsEqualGUID(riid, IID_IWebInspector)) 74 74 *ppvObject = static_cast<IWebInspector*>(this); 75 else if (IsEqualGUID(riid, IID_IWebInspectorPrivate)) 76 *ppvObject = static_cast<IWebInspectorPrivate*>(this); 75 77 else if (IsEqualGUID(riid, IID_IUnknown)) 76 78 *ppvObject = static_cast<IWebInspector*>(this); -
trunk/WebKit/win/WebView.cpp
r49299 r49305 5178 5178 } 5179 5179 5180 HRESULT STDMETHODCALLTYPE WebView::inspectorPrivate(IWebInspectorPrivate** inspector)5181 {5182 if (!m_webInspector)5183 m_webInspector.adoptRef(WebInspector::createInstance(this));5184 5185 return m_webInspector.copyRefTo(inspector);5186 }5187 5188 5180 HRESULT STDMETHODCALLTYPE WebView::windowAncestryDidChange() 5189 5181 { -
trunk/WebKit/win/WebView.h
r49299 r49305 673 673 virtual HRESULT STDMETHODCALLTYPE inspector( 674 674 /* [retval][out] */ IWebInspector**); 675 676 virtual HRESULT STDMETHODCALLTYPE inspectorPrivate(677 /* [retval][out] */ IWebInspectorPrivate**);678 675 679 676 virtual HRESULT STDMETHODCALLTYPE clearUndoRedoOperations( void); -
trunk/WebKitTools/ChangeLog
r49299 r49305 1 2009-10-08 Adam Roben <aroben@apple.com> 2 3 Use QueryInterface to get IWebInspectorPrivate 4 5 Fixes <http://webkit.org/b/30215> Make IWebInspectorPrivate be 6 accessed in a more standard way 7 8 Reviewed by John Sullivan and Tim Hatcher. 9 10 * DumpRenderTree/win/LayoutTestControllerWin.cpp: 11 (LayoutTestController::evaluateInWebInspector): Get the IWebInspector 12 by calling IWebViewPrivate::inspector, then use QueryInterface to get 13 to the IWebInspectorPrivate interface. 14 1 15 2009-10-07 Adam Roben <aroben@apple.com> 2 16 -
trunk/WebKitTools/DumpRenderTree/win/LayoutTestControllerWin.cpp
r49299 r49305 903 903 return; 904 904 905 COMPtr<IWebInspectorPrivate> inspector; 906 if (SUCCEEDED(webView->inspectorPrivate(&inspector))) 907 inspector->evaluateInFrontend(callId, bstrT(script).GetBSTR()); 908 } 905 COMPtr<IWebInspector> inspector; 906 if (FAILED(webView->inspector(&inspector))) 907 return; 908 909 COMPtr<IWebInspectorPrivate> inspectorPrivate(Query, inspector); 910 if (!inspectorPrivate) 911 return; 912 913 inspectorPrivate->evaluateInFrontend(callId, bstrT(script).GetBSTR()); 914 }
Note: See TracChangeset
for help on using the changeset viewer.