https://bugs.webkit.org/show_bug.cgi?id=78641
Reviewed by Timothy Hatcher.
* WebCore.exp.in: Add a new function to be exported.
* inspector/InspectorFrontendClientLocal.cpp:
(WebCore::InspectorFrontendClientLocal::showResources): Call showResources on load.
* inspector/InspectorFrontendClientLocal.h:
(InspectorFrontendClientLocal):
* inspector/front-end/InspectorFrontendAPI.js:
(InspectorFrontendAPI.showResources): Show the resources panel.
Source/WebKit2: Web Inspector: Add the ability to show the resources panel on launch
https://bugs.webkit.org/show_bug.cgi?id=78641
Add WebKit2 API for the ability to show the resources panel. This calls down
from the WK API all the way to InspectorFrontendClientLocal::showResources.
Reviewed by Timothy Hatcher.
* UIProcess/API/C/WKInspector.cpp:
(WKInspectorShowResources): Call WebInspectorProxy::showResources.
* UIProcess/API/C/WKInspector.h:
* UIProcess/WebInspectorProxy.cpp:
(WebKit::WebInspectorProxy::showResources): Send a message to the web process.
* UIProcess/WebInspectorProxy.h:
* WebProcess/WebPage/WebInspector.cpp:
(WebKit::WebInspector::showResources): Call InspectorFrontendClientLocal::showResources.
* WebProcess/WebPage/WebInspector.h:
* WebProcess/WebPage/WebInspector.messages.in: Add a ShowResources message.
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@107757
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2012-02-14 Brian Weinstein <bweinstein@apple.com>
+
+ Web Inspector: Add the ability to show the resources panel on launch
+ https://bugs.webkit.org/show_bug.cgi?id=78641
+
+ Reviewed by Timothy Hatcher.
+
+ * WebCore.exp.in: Add a new function to be exported.
+ * inspector/InspectorFrontendClientLocal.cpp:
+ (WebCore::InspectorFrontendClientLocal::showResources): Call showResources on load.
+ * inspector/InspectorFrontendClientLocal.h:
+ (InspectorFrontendClientLocal):
+ * inspector/front-end/InspectorFrontendAPI.js:
+ (InspectorFrontendAPI.showResources): Show the resources panel.
+
2012-02-14 Enrica Casucci <enrica@apple.com>
REGRESSION (r107568-r107627): Crash when copying in WebCore::SharedBuffer::hasPlatformData().
__ZN7WebCore28InspectorFrontendClientLocal11showConsoleEv
__ZN7WebCore28InspectorFrontendClientLocal12moveWindowByEff
__ZN7WebCore28InspectorFrontendClientLocal12openInNewTabERKN3WTF6StringE
+__ZN7WebCore28InspectorFrontendClientLocal13showResourcesEv
__ZN7WebCore28InspectorFrontendClientLocal14frontendLoadedEv
__ZN7WebCore28InspectorFrontendClientLocal15canAttachWindowEv
__ZN7WebCore28InspectorFrontendClientLocal17setAttachedWindowEb
evaluateOnLoad("[\"showConsole\"]");
}
+void InspectorFrontendClientLocal::showResources()
+{
+ evaluateOnLoad("[\"showResources\"]");
+}
+
void InspectorFrontendClientLocal::showMainResourceForFrame(Frame* frame)
{
String frameId = m_inspectorController->pageAgent()->frameId(frame);
void showConsole();
void showMainResourceForFrame(Frame*);
+
+ void showResources();
protected:
virtual void setAttachedWindowHeight(unsigned) = 0;
// FIXME: Implement this to show the source code for the main resource of a given frame.
},
+ showResources: function()
+ {
+ WebInspector.inspectorView.setCurrentPanel(WebInspector.panels.resources);
+ },
+
dispatch: function(signature)
{
if (WebInspector.panels) {
+2012-02-14 Brian Weinstein <bweinstein@apple.com>
+
+ Web Inspector: Add the ability to show the resources panel on launch
+ https://bugs.webkit.org/show_bug.cgi?id=78641
+
+ Add WebKit2 API for the ability to show the resources panel. This calls down
+ from the WK API all the way to InspectorFrontendClientLocal::showResources.
+
+ Reviewed by Timothy Hatcher.
+
+ * UIProcess/API/C/WKInspector.cpp:
+ (WKInspectorShowResources): Call WebInspectorProxy::showResources.
+ * UIProcess/API/C/WKInspector.h:
+ * UIProcess/WebInspectorProxy.cpp:
+ (WebKit::WebInspectorProxy::showResources): Send a message to the web process.
+ * UIProcess/WebInspectorProxy.h:
+ * WebProcess/WebPage/WebInspector.cpp:
+ (WebKit::WebInspector::showResources): Call InspectorFrontendClientLocal::showResources.
+ * WebProcess/WebPage/WebInspector.h:
+ * WebProcess/WebPage/WebInspector.messages.in: Add a ShowResources message.
+
2012-02-14 Matt Lilek <mrl@apple.com>
Don't ENABLE_DASHBOARD_SUPPORT unconditionally on all Mac platforms
toImpl(inspectorRef)->showConsole();
}
+void WKInspectorShowResources(WKInspectorRef inspectorRef)
+{
+ toImpl(inspectorRef)->showResources();
+}
+
void WKInspectorShowMainResourceForFrame(WKInspectorRef inspectorRef, WKFrameRef frameRef)
{
toImpl(inspectorRef)->showMainResourceForFrame(toImpl(frameRef));
WK_EXPORT void WKInspectorClose(WKInspectorRef inspector);
WK_EXPORT void WKInspectorShowConsole(WKInspectorRef inspector);
+WK_EXPORT void WKInspectorShowResources(WKInspectorRef inspector);
WK_EXPORT void WKInspectorShowMainResourceForFrame(WKInspectorRef inspector, WKFrameRef frame);
WK_EXPORT bool WKInspectorIsAttached(WKInspectorRef inspector);
m_page->process()->send(Messages::WebInspector::ShowConsole(), m_page->pageID());
}
+void WebInspectorProxy::showResources()
+{
+ if (!m_page)
+ return;
+
+ m_page->process()->send(Messages::WebInspector::ShowResources(), m_page->pageID());
+}
+
void WebInspectorProxy::showMainResourceForFrame(WebFrameProxy* frame)
{
if (!m_page)
#endif
void showConsole();
+ void showResources();
void showMainResourceForFrame(WebFrameProxy*);
bool isAttached() const { return m_isAttached; }
m_frontendClient->showConsole();
}
+void WebInspector::showResources()
+{
+ m_page->corePage()->inspectorController()->show();
+ if (m_frontendClient)
+ m_frontendClient->showResources();
+}
+
void WebInspector::showMainResourceForFrame(uint64_t frameID)
{
WebFrame* frame = WebProcess::shared().webFrame(frameID);
void showConsole();
+ void showResources();
+
void showMainResourceForFrame(uint64_t frameID);
void startJavaScriptDebugging();
Show()
Close()
ShowConsole()
+ ShowResources()
ShowMainResourceForFrame(uint64_t frameID)
StartJavaScriptDebugging()
StopJavaScriptDebugging()