Add IWebInspector and a way to get one from a WebView
authoraroben <aroben@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 5 Nov 2007 18:57:10 +0000 (18:57 +0000)
committeraroben <aroben@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 5 Nov 2007 18:57:10 +0000 (18:57 +0000)
commit08c7de344d6054470c9329bc61deec8b36ced7c0
treed3029111a45c948fcd055bc0cfc1d8a4d5cf7f12
parent14bf1347f510214b03382805da89a675585b6c24
 Add IWebInspector and a way to get one from a WebView

 WebCore:

         Allow passing a base class pointer to COMPtr::copyRefTo

         Reviewed by Sam.

         * platform/win/COMPtr.h:

 WebKit/win:

         Add IWebInspector and a way to get one from a WebView

         This API matches the Mac one added in r27266.

         Reviewed by Sam.

         * Interfaces/IWebInspector.idl: Added.
         * Interfaces/IWebViewPrivate.idl: Added a new inspector method to
         match Mac.
         * WebInspector.cpp: Added.
         (WebInspector::createInstance):
         (WebInspector::WebInspector):
         (WebInspector::~WebInspector):
         (WebInspector::webViewClosed):
         (WebInspector::QueryInterface):
         (WebInspector::AddRef):
         (WebInspector::Release):
         (WebInspector::show):
         (WebInspector::showConsole):
         (WebInspector::showTimeline):
         (WebInspector::close):
         (WebInspector::attach):
         (WebInspector::detach):
         * WebInspector.h: Added.
         * WebKit.vcproj/Interfaces.vcproj: Added IWebInspector.idl.
         * WebKit.vcproj/WebKit.vcproj: Added WebInspector.{cpp,h}.
         * WebKit.vcproj/WebKitGUID.vcproj: Added IWebInspector_i.c.
         * WebView.cpp:
         (WebView::close): Notify the WebInspector that we're closing.
         (WebView::inspector): Added.
         * WebView.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@27444 268f45cc-cd09-0410-ab3c-d52691b4dbfc
12 files changed:
WebCore/ChangeLog
WebCore/platform/win/COMPtr.h
WebKit/win/ChangeLog
WebKit/win/Interfaces/IWebInspector.idl [new file with mode: 0644]
WebKit/win/Interfaces/IWebViewPrivate.idl
WebKit/win/WebInspector.cpp [new file with mode: 0644]
WebKit/win/WebInspector.h [new file with mode: 0644]
WebKit/win/WebKit.vcproj/Interfaces.vcproj
WebKit/win/WebKit.vcproj/WebKit.vcproj
WebKit/win/WebKit.vcproj/WebKitGUID.vcproj
WebKit/win/WebView.cpp
WebKit/win/WebView.h