Title: [150041] trunk/Source
Revision
150041
Author
[email protected]
Date
2013-05-13 14:53:43 -0700 (Mon, 13 May 2013)

Log Message

Add support for updating the Web Inspector toolbar height.

https://bugs.webkit.org/show_bug.cgi?id=115996

Reviewed by Joseph Pecoraro and Benjamin Poulain.

Source/WebCore:

* inspector/InspectorFrontendClient.h:
(InspectorFrontendClient):
* inspector/InspectorFrontendHost.cpp:
(WebCore::InspectorFrontendHost::setToolbarHeight):
* inspector/InspectorFrontendHost.h:
(InspectorFrontendHost):
* inspector/InspectorFrontendHost.idl:
* testing/Internals.cpp:

Source/WebKit/efl:

* WebCoreSupport/InspectorClientEfl.cpp:
(WebCore::InspectorFrontendClientEfl::setToolbarHeight):
* WebCoreSupport/InspectorClientEfl.h:

Source/WebKit/gtk:

* WebCoreSupport/InspectorClientGtk.cpp:
(WebKit::InspectorFrontendClient::setToolbarHeight):
* WebCoreSupport/InspectorClientGtk.h:

Source/WebKit/mac:

* WebCoreSupport/WebInspectorClient.h:
* WebCoreSupport/WebInspectorClient.mm:
(WebInspectorFrontendClient::setToolbarHeight):

Source/WebKit/qt:

* WebCoreSupport/InspectorClientQt.cpp:
(WebCore::InspectorFrontendClientQt::setToolbarHeight):
* WebCoreSupport/InspectorClientQt.h:

Source/WebKit/win:

* WebCoreSupport/WebInspectorClient.cpp:
(WebInspectorFrontendClient::setToolbarHeight):
* WebCoreSupport/WebInspectorClient.h:

Source/WebKit2:

* UIProcess/WebInspectorProxy.h:
(WebKit::WebInspectorProxy::setToolbarHeight):
(WebInspectorProxy):
* UIProcess/WebInspectorProxy.messages.in:
* UIProcess/efl/WebInspectorProxyEfl.cpp:
(WebKit::WebInspectorProxy::platformSetToolbarHeight):
* UIProcess/gtk/WebInspectorProxyGtk.cpp:
(WebKit::WebInspectorProxy::platformSetToolbarHeight):
(WebKit):
* UIProcess/mac/WebInspectorProxyMac.mm:
(WebKit::WebInspectorProxy::platformSetToolbarHeight):
* UIProcess/qt/WebInspectorProxyQt.cpp:
(WebKit::WebInspectorProxy::platformSetToolbarHeight):
* WebProcess/WebCoreSupport/WebInspectorFrontendClient.cpp:
(WebKit::WebInspectorFrontendClient::setToolbarHeight):
* WebProcess/WebCoreSupport/WebInspectorFrontendClient.h:
(WebInspectorFrontendClient):
* WebProcess/WebPage/WebInspector.cpp:
(WebKit::WebInspector::setToolbarHeight):
* WebProcess/WebPage/WebInspector.h:

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (150040 => 150041)


--- trunk/Source/WebCore/ChangeLog	2013-05-13 21:29:59 UTC (rev 150040)
+++ trunk/Source/WebCore/ChangeLog	2013-05-13 21:53:43 UTC (rev 150041)
@@ -1,3 +1,20 @@
+2013-05-12  Timothy Hatcher  <[email protected]>
+
+        Add support for updating the Web Inspector toolbar height.
+
+        https://bugs.webkit.org/show_bug.cgi?id=115996
+
+        Reviewed by Joseph Pecoraro and Benjamin Poulain.
+
+        * inspector/InspectorFrontendClient.h:
+        (InspectorFrontendClient):
+        * inspector/InspectorFrontendHost.cpp:
+        (WebCore::InspectorFrontendHost::setToolbarHeight):
+        * inspector/InspectorFrontendHost.h:
+        (InspectorFrontendHost):
+        * inspector/InspectorFrontendHost.idl:
+        * testing/Internals.cpp:
+
 2013-05-13  Dean Jackson  <[email protected]>
 
         toDataURL can return an empty image in some cases

Modified: trunk/Source/WebCore/inspector/InspectorFrontendClient.h (150040 => 150041)


--- trunk/Source/WebCore/inspector/InspectorFrontendClient.h	2013-05-13 21:29:59 UTC (rev 150040)
+++ trunk/Source/WebCore/inspector/InspectorFrontendClient.h	2013-05-13 21:53:43 UTC (rev 150041)
@@ -63,6 +63,8 @@
     virtual void changeAttachedWindowHeight(unsigned) = 0;
     virtual void changeAttachedWindowWidth(unsigned) = 0;
 
+    virtual void setToolbarHeight(unsigned) = 0;
+
     virtual void openInNewTab(const String& url) = 0;
 
     virtual bool canSave() = 0;

Modified: trunk/Source/WebCore/inspector/InspectorFrontendHost.cpp (150040 => 150041)


--- trunk/Source/WebCore/inspector/InspectorFrontendHost.cpp	2013-05-13 21:29:59 UTC (rev 150040)
+++ trunk/Source/WebCore/inspector/InspectorFrontendHost.cpp	2013-05-13 21:53:43 UTC (rev 150041)
@@ -201,6 +201,12 @@
         m_client->changeAttachedWindowWidth(width);
 }
 
+void InspectorFrontendHost::setToolbarHeight(unsigned height)
+{
+    if (m_client)
+        m_client->setToolbarHeight(height);
+}
+
 void InspectorFrontendHost::moveWindowBy(float x, float y) const
 {
     if (m_client)

Modified: trunk/Source/WebCore/inspector/InspectorFrontendHost.h (150040 => 150041)


--- trunk/Source/WebCore/inspector/InspectorFrontendHost.h	2013-05-13 21:29:59 UTC (rev 150040)
+++ trunk/Source/WebCore/inspector/InspectorFrontendHost.h	2013-05-13 21:53:43 UTC (rev 150041)
@@ -66,6 +66,8 @@
 
     void setAttachedWindowHeight(unsigned);
     void setAttachedWindowWidth(unsigned);
+    void setToolbarHeight(unsigned);
+
     void moveWindowBy(float x, float y) const;
     void setInjectedScriptForOrigin(const String& origin, const String& script);
 

Modified: trunk/Source/WebCore/inspector/InspectorFrontendHost.idl (150040 => 150041)


--- trunk/Source/WebCore/inspector/InspectorFrontendHost.idl	2013-05-13 21:29:59 UTC (rev 150040)
+++ trunk/Source/WebCore/inspector/InspectorFrontendHost.idl	2013-05-13 21:53:43 UTC (rev 150041)
@@ -42,8 +42,11 @@
     void inspectedURLChanged(DOMString newURL);
 
     void requestSetDockSide(DOMString side);
+
     void setAttachedWindowHeight(unsigned long height);
     void setAttachedWindowWidth(unsigned long width);
+    void setToolbarHeight(float height);
+
     void moveWindowBy(float x, float y);
     void setInjectedScriptForOrigin(DOMString origin, DOMString script);
 

Modified: trunk/Source/WebCore/testing/Internals.cpp (150040 => 150041)


--- trunk/Source/WebCore/testing/Internals.cpp	2013-05-13 21:29:59 UTC (rev 150040)
+++ trunk/Source/WebCore/testing/Internals.cpp	2013-05-13 21:53:43 UTC (rev 150041)
@@ -175,6 +175,7 @@
 protected:
     virtual void setAttachedWindowHeight(unsigned) OVERRIDE { }
     virtual void setAttachedWindowWidth(unsigned) OVERRIDE { }
+    virtual void setToolbarHeight(unsigned) OVERRIDE { }
 };
 
 InspectorFrontendClientDummy::InspectorFrontendClientDummy(InspectorController* controller, Page* page)

Modified: trunk/Source/WebKit/efl/ChangeLog (150040 => 150041)


--- trunk/Source/WebKit/efl/ChangeLog	2013-05-13 21:29:59 UTC (rev 150040)
+++ trunk/Source/WebKit/efl/ChangeLog	2013-05-13 21:53:43 UTC (rev 150041)
@@ -1,3 +1,15 @@
+2013-05-12  Timothy Hatcher  <[email protected]>
+
+        Add support for updating the Web Inspector toolbar height.
+
+        https://bugs.webkit.org/show_bug.cgi?id=115996
+
+        Reviewed by Joseph Pecoraro and Benjamin Poulain.
+
+        * WebCoreSupport/InspectorClientEfl.cpp:
+        (WebCore::InspectorFrontendClientEfl::setToolbarHeight):
+        * WebCoreSupport/InspectorClientEfl.h:
+
 2013-05-12  Anders Carlsson  <[email protected]>
 
         Stop including UnusedParam.h

Modified: trunk/Source/WebKit/efl/WebCoreSupport/InspectorClientEfl.cpp (150040 => 150041)


--- trunk/Source/WebKit/efl/WebCoreSupport/InspectorClientEfl.cpp	2013-05-13 21:29:59 UTC (rev 150040)
+++ trunk/Source/WebKit/efl/WebCoreSupport/InspectorClientEfl.cpp	2013-05-13 21:53:43 UTC (rev 150041)
@@ -203,6 +203,11 @@
     notImplemented();
 }
 
+void InspectorFrontendClientEfl::setToolbarHeight(unsigned)
+{
+    notImplemented();
+}
+
 void InspectorFrontendClientEfl::destroyInspectorWindow(bool notifyInspectorController)
 {
     if (notifyInspectorController)

Modified: trunk/Source/WebKit/efl/WebCoreSupport/InspectorClientEfl.h (150040 => 150041)


--- trunk/Source/WebKit/efl/WebCoreSupport/InspectorClientEfl.h	2013-05-13 21:29:59 UTC (rev 150040)
+++ trunk/Source/WebKit/efl/WebCoreSupport/InspectorClientEfl.h	2013-05-13 21:53:43 UTC (rev 150041)
@@ -86,6 +86,7 @@
 
     virtual void setAttachedWindowHeight(unsigned);
     virtual void setAttachedWindowWidth(unsigned);
+    virtual void setToolbarHeight(unsigned) OVERRIDE;
 
     void disconnectInspectorClient() { m_inspectorClient = 0; }
     void destroyInspectorWindow(bool notifyInspectorController);

Modified: trunk/Source/WebKit/gtk/ChangeLog (150040 => 150041)


--- trunk/Source/WebKit/gtk/ChangeLog	2013-05-13 21:29:59 UTC (rev 150040)
+++ trunk/Source/WebKit/gtk/ChangeLog	2013-05-13 21:53:43 UTC (rev 150041)
@@ -1,3 +1,15 @@
+2013-05-12  Timothy Hatcher  <[email protected]>
+
+        Add support for updating the Web Inspector toolbar height.
+
+        https://bugs.webkit.org/show_bug.cgi?id=115996
+
+        Reviewed by Joseph Pecoraro and Benjamin Poulain.
+
+        * WebCoreSupport/InspectorClientGtk.cpp:
+        (WebKit::InspectorFrontendClient::setToolbarHeight):
+        * WebCoreSupport/InspectorClientGtk.h:
+
 2013-05-12  Anders Carlsson  <[email protected]>
 
         Stop including UnusedParam.h

Modified: trunk/Source/WebKit/gtk/WebCoreSupport/InspectorClientGtk.cpp (150040 => 150041)


--- trunk/Source/WebKit/gtk/WebCoreSupport/InspectorClientGtk.cpp	2013-05-13 21:29:59 UTC (rev 150040)
+++ trunk/Source/WebKit/gtk/WebCoreSupport/InspectorClientGtk.cpp	2013-05-13 21:53:43 UTC (rev 150041)
@@ -269,6 +269,11 @@
     notImplemented();
 }
 
+void InspectorFrontendClient::setToolbarHeight(unsigned height)
+{
+    notImplemented();
+}
+
 void InspectorFrontendClient::inspectedURLChanged(const String& newURL)
 {
     if (!m_inspectorWebView)

Modified: trunk/Source/WebKit/gtk/WebCoreSupport/InspectorClientGtk.h (150040 => 150041)


--- trunk/Source/WebKit/gtk/WebCoreSupport/InspectorClientGtk.h	2013-05-13 21:29:59 UTC (rev 150040)
+++ trunk/Source/WebKit/gtk/WebCoreSupport/InspectorClientGtk.h	2013-05-13 21:53:43 UTC (rev 150041)
@@ -93,6 +93,7 @@
 
     virtual void setAttachedWindowHeight(unsigned);
     virtual void setAttachedWindowWidth(unsigned);
+    virtual void setToolbarHeight(unsigned) OVERRIDE;
 
     virtual void inspectedURLChanged(const WTF::String& newURL);
 

Modified: trunk/Source/WebKit/mac/ChangeLog (150040 => 150041)


--- trunk/Source/WebKit/mac/ChangeLog	2013-05-13 21:29:59 UTC (rev 150040)
+++ trunk/Source/WebKit/mac/ChangeLog	2013-05-13 21:53:43 UTC (rev 150041)
@@ -1,3 +1,15 @@
+2013-05-12  Timothy Hatcher  <[email protected]>
+
+        Add support for updating the Web Inspector toolbar height.
+
+        https://bugs.webkit.org/show_bug.cgi?id=115996
+
+        Reviewed by Joseph Pecoraro and Benjamin Poulain.
+
+        * WebCoreSupport/WebInspectorClient.h:
+        * WebCoreSupport/WebInspectorClient.mm:
+        (WebInspectorFrontendClient::setToolbarHeight):
+
 2013-05-13  Ryosuke Niwa  <[email protected]>
 
         Sometimes NSUndoManager can get into an inconsistent state

Modified: trunk/Source/WebKit/mac/WebCoreSupport/WebInspectorClient.h (150040 => 150041)


--- trunk/Source/WebKit/mac/WebCoreSupport/WebInspectorClient.h	2013-05-13 21:29:59 UTC (rev 150040)
+++ trunk/Source/WebKit/mac/WebCoreSupport/WebInspectorClient.h	2013-05-13 21:53:43 UTC (rev 150041)
@@ -110,6 +110,7 @@
 
     virtual void setAttachedWindowHeight(unsigned height);
     virtual void setAttachedWindowWidth(unsigned height);
+    virtual void setToolbarHeight(unsigned) OVERRIDE;
 
     virtual void inspectedURLChanged(const String& newURL);
 

Modified: trunk/Source/WebKit/mac/WebCoreSupport/WebInspectorClient.mm (150040 => 150041)


--- trunk/Source/WebKit/mac/WebCoreSupport/WebInspectorClient.mm	2013-05-13 21:29:59 UTC (rev 150040)
+++ trunk/Source/WebKit/mac/WebCoreSupport/WebInspectorClient.mm	2013-05-13 21:53:43 UTC (rev 150041)
@@ -286,6 +286,11 @@
     // Dock to right is not implemented in WebKit 1.
 }
 
+void WebInspectorFrontendClient::setToolbarHeight(unsigned height)
+{
+    [[m_windowController window] setContentBorderThickness:height forEdge:NSMaxYEdge];
+}
+
 void WebInspectorFrontendClient::inspectedURLChanged(const String& newURL)
 {
     m_inspectedURL = newURL;

Modified: trunk/Source/WebKit/qt/ChangeLog (150040 => 150041)


--- trunk/Source/WebKit/qt/ChangeLog	2013-05-13 21:29:59 UTC (rev 150040)
+++ trunk/Source/WebKit/qt/ChangeLog	2013-05-13 21:53:43 UTC (rev 150041)
@@ -1,3 +1,15 @@
+2013-05-12  Timothy Hatcher  <[email protected]>
+
+        Add support for updating the Web Inspector toolbar height.
+
+        https://bugs.webkit.org/show_bug.cgi?id=115996
+
+        Reviewed by Joseph Pecoraro and Benjamin Poulain.
+
+        * WebCoreSupport/InspectorClientQt.cpp:
+        (WebCore::InspectorFrontendClientQt::setToolbarHeight):
+        * WebCoreSupport/InspectorClientQt.h:
+
 2013-05-13  Jocelyn Turcotte  <[email protected]>
 
         [Qt] Fix a crash on startup in FrameLoaderClientQt::callPolicyFunction with MSVC

Modified: trunk/Source/WebKit/qt/WebCoreSupport/InspectorClientQt.cpp (150040 => 150041)


--- trunk/Source/WebKit/qt/WebCoreSupport/InspectorClientQt.cpp	2013-05-13 21:29:59 UTC (rev 150040)
+++ trunk/Source/WebKit/qt/WebCoreSupport/InspectorClientQt.cpp	2013-05-13 21:53:43 UTC (rev 150041)
@@ -336,6 +336,11 @@
     notImplemented();
 }
 
+void InspectorFrontendClientQt::setToolbarHeight(unsigned)
+{
+    notImplemented();
+}
+
 void InspectorFrontendClientQt::inspectedURLChanged(const String& newURL)
 {
     m_inspectedURL = newURL;

Modified: trunk/Source/WebKit/qt/WebCoreSupport/InspectorClientQt.h (150040 => 150041)


--- trunk/Source/WebKit/qt/WebCoreSupport/InspectorClientQt.h	2013-05-13 21:29:59 UTC (rev 150040)
+++ trunk/Source/WebKit/qt/WebCoreSupport/InspectorClientQt.h	2013-05-13 21:53:43 UTC (rev 150041)
@@ -96,6 +96,7 @@
 
     virtual void setAttachedWindowHeight(unsigned);
     virtual void setAttachedWindowWidth(unsigned);
+    virtual void setToolbarHeight(unsigned) OVERRIDE;
 
     virtual void inspectedURLChanged(const String& newURL);
 

Modified: trunk/Source/WebKit/win/ChangeLog (150040 => 150041)


--- trunk/Source/WebKit/win/ChangeLog	2013-05-13 21:29:59 UTC (rev 150040)
+++ trunk/Source/WebKit/win/ChangeLog	2013-05-13 21:53:43 UTC (rev 150041)
@@ -1,3 +1,15 @@
+2013-05-12  Timothy Hatcher  <[email protected]>
+
+        Add support for updating the Web Inspector toolbar height.
+
+        https://bugs.webkit.org/show_bug.cgi?id=115996
+
+        Reviewed by Joseph Pecoraro and Benjamin Poulain.
+
+        * WebCoreSupport/WebInspectorClient.cpp:
+        (WebInspectorFrontendClient::setToolbarHeight):
+        * WebCoreSupport/WebInspectorClient.h:
+
 2013-05-13  Roger Fong  <[email protected]>
 
         Unreviewed. AppleWin VS2005 build fix.

Modified: trunk/Source/WebKit/win/WebCoreSupport/WebInspectorClient.cpp (150040 => 150041)


--- trunk/Source/WebKit/win/WebCoreSupport/WebInspectorClient.cpp	2013-05-13 21:29:59 UTC (rev 150040)
+++ trunk/Source/WebKit/win/WebCoreSupport/WebInspectorClient.cpp	2013-05-13 21:53:43 UTC (rev 150041)
@@ -341,6 +341,11 @@
     notImplemented();
 }
 
+void WebInspectorFrontendClient::setToolbarHeight(unsigned)
+{
+    notImplemented();
+}
+
 void WebInspectorFrontendClient::inspectedURLChanged(const String& newURL)
 {
     m_inspectedURL = newURL;

Modified: trunk/Source/WebKit/win/WebCoreSupport/WebInspectorClient.h (150040 => 150041)


--- trunk/Source/WebKit/win/WebCoreSupport/WebInspectorClient.h	2013-05-13 21:29:59 UTC (rev 150040)
+++ trunk/Source/WebKit/win/WebCoreSupport/WebInspectorClient.h	2013-05-13 21:53:43 UTC (rev 150041)
@@ -109,6 +109,7 @@
     
     virtual void setAttachedWindowHeight(unsigned height);
     virtual void setAttachedWindowWidth(unsigned);
+    virtual void setToolbarHeight(unsigned) OVERRIDE;
 
     virtual void inspectedURLChanged(const WTF::String& newURL);
 

Modified: trunk/Source/WebKit2/ChangeLog (150040 => 150041)


--- trunk/Source/WebKit2/ChangeLog	2013-05-13 21:29:59 UTC (rev 150040)
+++ trunk/Source/WebKit2/ChangeLog	2013-05-13 21:53:43 UTC (rev 150041)
@@ -1,3 +1,32 @@
+2013-05-13  Timothy Hatcher  <[email protected]>
+
+        Add support for updating the Web Inspector toolbar height.
+
+        https://bugs.webkit.org/show_bug.cgi?id=115996
+
+        Reviewed by Joseph Pecoraro and Benjamin Poulain.
+
+        * UIProcess/WebInspectorProxy.h:
+        (WebKit::WebInspectorProxy::setToolbarHeight):
+        (WebInspectorProxy):
+        * UIProcess/WebInspectorProxy.messages.in:
+        * UIProcess/efl/WebInspectorProxyEfl.cpp:
+        (WebKit::WebInspectorProxy::platformSetToolbarHeight):
+        * UIProcess/gtk/WebInspectorProxyGtk.cpp:
+        (WebKit::WebInspectorProxy::platformSetToolbarHeight):
+        (WebKit):
+        * UIProcess/mac/WebInspectorProxyMac.mm:
+        (WebKit::WebInspectorProxy::platformSetToolbarHeight):
+        * UIProcess/qt/WebInspectorProxyQt.cpp:
+        (WebKit::WebInspectorProxy::platformSetToolbarHeight):
+        * WebProcess/WebCoreSupport/WebInspectorFrontendClient.cpp:
+        (WebKit::WebInspectorFrontendClient::setToolbarHeight):
+        * WebProcess/WebCoreSupport/WebInspectorFrontendClient.h:
+        (WebInspectorFrontendClient):
+        * WebProcess/WebPage/WebInspector.cpp:
+        (WebKit::WebInspector::setToolbarHeight):
+        * WebProcess/WebPage/WebInspector.h:
+
 2013-05-13  Ryosuke Niwa  <[email protected]>
 
         Sometimes NSUndoManager can get into an inconsistent state

Modified: trunk/Source/WebKit2/UIProcess/WebInspectorProxy.h (150040 => 150041)


--- trunk/Source/WebKit2/UIProcess/WebInspectorProxy.h	2013-05-13 21:29:59 UTC (rev 150040)
+++ trunk/Source/WebKit2/UIProcess/WebInspectorProxy.h	2013-05-13 21:53:43 UTC (rev 150041)
@@ -121,6 +121,7 @@
 
     void setAttachedWindowHeight(unsigned);
     void setAttachedWindowWidth(unsigned);
+    void setToolbarHeight(unsigned height) { platformSetToolbarHeight(height); }
 
     bool isDebuggingJavaScript() const { return m_isDebuggingJavaScript; }
     void toggleJavaScriptDebugging();
@@ -166,10 +167,10 @@
     void platformDetach();
     void platformSetAttachedWindowHeight(unsigned);
     void platformSetAttachedWindowWidth(unsigned);
+    void platformSetToolbarHeight(unsigned);
     void platformSave(const String& filename, const String& content, bool forceSaveAs);
     void platformAppend(const String& filename, const String& content);
 
-
     // Called by WebInspectorProxy messages
     void createInspectorPage(uint64_t& inspectorPageID, WebPageCreationParameters&);
     void didClose();

Modified: trunk/Source/WebKit2/UIProcess/WebInspectorProxy.messages.in (150040 => 150041)


--- trunk/Source/WebKit2/UIProcess/WebInspectorProxy.messages.in	2013-05-13 21:29:59 UTC (rev 150040)
+++ trunk/Source/WebKit2/UIProcess/WebInspectorProxy.messages.in	2013-05-13 21:53:43 UTC (rev 150041)
@@ -38,6 +38,7 @@
 
     SetAttachedWindowHeight(unsigned height)
     SetAttachedWindowWidth(unsigned width)
+    SetToolbarHeight(unsigned height)
 
 #if ENABLE(INSPECTOR_SERVER)
     SendMessageToRemoteFrontend(WTF::String message)

Modified: trunk/Source/WebKit2/UIProcess/efl/WebInspectorProxyEfl.cpp (150040 => 150041)


--- trunk/Source/WebKit2/UIProcess/efl/WebInspectorProxyEfl.cpp	2013-05-13 21:29:59 UTC (rev 150040)
+++ trunk/Source/WebKit2/UIProcess/efl/WebInspectorProxyEfl.cpp	2013-05-13 21:53:43 UTC (rev 150041)
@@ -214,6 +214,11 @@
     notImplemented();
 }
 
+void WebInspectorProxy::platformSetToolbarHeight(unsigned)
+{
+    notImplemented();
+}
+
 void WebInspectorProxy::platformSave(const String&, const String&, bool)
 {
     notImplemented();

Modified: trunk/Source/WebKit2/UIProcess/gtk/WebInspectorProxyGtk.cpp (150040 => 150041)


--- trunk/Source/WebKit2/UIProcess/gtk/WebInspectorProxyGtk.cpp	2013-05-13 21:29:59 UTC (rev 150040)
+++ trunk/Source/WebKit2/UIProcess/gtk/WebInspectorProxyGtk.cpp	2013-05-13 21:53:43 UTC (rev 150041)
@@ -234,6 +234,11 @@
     notImplemented();
 }
 
+void WebInspectorProxy::platformSetToolbarHeight(unsigned)
+{
+    notImplemented();
+}
+
 void WebInspectorProxy::platformSave(const String&, const String&, bool)
 {
     notImplemented();

Modified: trunk/Source/WebKit2/UIProcess/mac/WebInspectorProxyMac.mm (150040 => 150041)


--- trunk/Source/WebKit2/UIProcess/mac/WebInspectorProxyMac.mm	2013-05-13 21:29:59 UTC (rev 150040)
+++ trunk/Source/WebKit2/UIProcess/mac/WebInspectorProxyMac.mm	2013-05-13 21:53:43 UTC (rev 150041)
@@ -744,6 +744,11 @@
     inspectedViewFrameDidChange(width);
 }
 
+void WebInspectorProxy::platformSetToolbarHeight(unsigned height)
+{
+    [m_inspectorWindow setContentBorderThickness:height forEdge:NSMaxYEdge];
+}
+
 String WebInspectorProxy::inspectorPageURL() const
 {
     NSString *path;

Modified: trunk/Source/WebKit2/UIProcess/qt/WebInspectorProxyQt.cpp (150040 => 150041)


--- trunk/Source/WebKit2/UIProcess/qt/WebInspectorProxyQt.cpp	2013-05-13 21:29:59 UTC (rev 150040)
+++ trunk/Source/WebKit2/UIProcess/qt/WebInspectorProxyQt.cpp	2013-05-13 21:53:43 UTC (rev 150041)
@@ -107,6 +107,11 @@
     notImplemented();
 }
 
+void WebInspectorProxy::platformSetToolbarHeight(unsigned)
+{
+    notImplemented();
+}
+
 void WebInspectorProxy::platformSave(const String&, const String&, bool)
 {
     notImplemented();

Modified: trunk/Source/WebKit2/WebProcess/WebCoreSupport/WebInspectorFrontendClient.cpp (150040 => 150041)


--- trunk/Source/WebKit2/WebProcess/WebCoreSupport/WebInspectorFrontendClient.cpp	2013-05-13 21:29:59 UTC (rev 150040)
+++ trunk/Source/WebKit2/WebProcess/WebCoreSupport/WebInspectorFrontendClient.cpp	2013-05-13 21:53:43 UTC (rev 150041)
@@ -106,6 +106,11 @@
     m_page->inspector()->setAttachedWindowWidth(width);
 }
 
+void WebInspectorFrontendClient::setToolbarHeight(unsigned height)
+{
+    m_page->inspector()->setToolbarHeight(height);
+}
+
 void WebInspectorFrontendClient::inspectedURLChanged(const String& urlString)
 {
     m_page->inspector()->inspectedURLChanged(urlString);

Modified: trunk/Source/WebKit2/WebProcess/WebCoreSupport/WebInspectorFrontendClient.h (150040 => 150041)


--- trunk/Source/WebKit2/WebProcess/WebCoreSupport/WebInspectorFrontendClient.h	2013-05-13 21:29:59 UTC (rev 150040)
+++ trunk/Source/WebKit2/WebProcess/WebCoreSupport/WebInspectorFrontendClient.h	2013-05-13 21:53:43 UTC (rev 150041)
@@ -53,6 +53,7 @@
 
     virtual void setAttachedWindowHeight(unsigned) OVERRIDE;
     virtual void setAttachedWindowWidth(unsigned) OVERRIDE;
+    virtual void setToolbarHeight(unsigned) OVERRIDE;
 
     virtual void inspectedURLChanged(const String&) OVERRIDE;
 

Modified: trunk/Source/WebKit2/WebProcess/WebPage/WebInspector.cpp (150040 => 150041)


--- trunk/Source/WebKit2/WebProcess/WebPage/WebInspector.cpp	2013-05-13 21:29:59 UTC (rev 150040)
+++ trunk/Source/WebKit2/WebProcess/WebPage/WebInspector.cpp	2013-05-13 21:53:43 UTC (rev 150041)
@@ -156,6 +156,11 @@
     WebProcess::shared().connection()->send(Messages::WebInspectorProxy::SetAttachedWindowWidth(width), m_page->pageID());
 }
 
+void WebInspector::setToolbarHeight(unsigned height)
+{
+    WebProcess::shared().connection()->send(Messages::WebInspectorProxy::SetToolbarHeight(height), m_page->pageID());
+}
+
 // Called by WebInspector messages
 void WebInspector::show()
 {

Modified: trunk/Source/WebKit2/WebProcess/WebPage/WebInspector.h (150040 => 150041)


--- trunk/Source/WebKit2/WebProcess/WebPage/WebInspector.h	2013-05-13 21:29:59 UTC (rev 150040)
+++ trunk/Source/WebKit2/WebProcess/WebPage/WebInspector.h	2013-05-13 21:53:43 UTC (rev 150041)
@@ -107,6 +107,7 @@
 
     void setAttachedWindowHeight(unsigned);
     void setAttachedWindowWidth(unsigned);
+    void setToolbarHeight(unsigned);
 
     // Implemented in platform WebInspector file
     String localizedStringsURL() const;
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to