Make the docked Web Inspector resizable.
authortimothy@apple.com <timothy@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 13 Aug 2008 18:10:36 +0000 (18:10 +0000)
committertimothy@apple.com <timothy@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 13 Aug 2008 18:10:36 +0000 (18:10 +0000)
WebCore:

2008-08-12  Timothy Hatcher  <timothy@apple.com>

        Make the docked Web Inspector resizable. This is the cross platform
        portion of the code. Each InspectorClient needs to implement the
        real resize code.

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

        Reviewed by Kevin McCullough.

        * loader/EmptyClients.h: Added an empty setAttachedWindowHeight.
        * page/InspectorClient.h: Added setAttachedWindowHeight.
        * page/InspectorController.cpp:
        (WebCore::setAttachedWindowHeight): Call setAttachedWindowHeight
        on the InspectorController.
        (WebCore::InspectorController::setAttachedWindowHeight): Call
        setAttachedWindowHeight on the client.
        (WebCore::InspectorController::windowScriptObjectAvailable):
        Added setAttachedWindowHeight to the script class.
        * page/InspectorController.h:
        * page/inspector/inspector.css: Make the cursor on the toolbar be
        row-resize when docked.
        * page/inspector/inspector.js:
        (WebInspector.loaded): Always add the toolbarDragStart event listener.
        (WebInspector.toolbarDragStart): Return early if we are not attached
        and not on Leopard. Call WebInspector.elementDragStart.
        (WebInspector.toolbarDragEnd): Call WebInspector.elementDragEnd.
        (WebInspector.toolbarDrag): When attached call setAttachedWindowHeight,
        otherwise call moveByUnrestricted.

WebKit/gtk:

2008-08-12  Timothy Hatcher  <timothy@apple.com>

        Add a stub for InspectorClient::setAttachedWindowHeight.

        * WebCoreSupport/InspectorClientGtk.cpp:
        (WebKit::InspectorClient::setAttachedWindowHeight):
        Call notImplemented().
        * WebCoreSupport/InspectorClientGtk.h:

WebKit/mac:

2008-08-12  Timothy Hatcher  <timothy@apple.com>

        Make the docked Web Inspector resizable.

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

        Reviewed by Kevin McCullough.

        * WebCoreSupport/WebInspectorClient.h:
        * WebCoreSupport/WebInspectorClient.mm:
        (WebInspectorClient::setAttachedWindowHeight): Call setAttachedWindowHeight:
        on the WebInspectorWindowController.
        (-[WebInspectorWindowController showWindow:]): Call setAttachedWindowHeight:.
        (-[WebInspectorWindowController setAttachedWindowHeight:]): Moved code
        from showWindow: and generalized to allow being called multiple times.
        Remembers the last height passed, which is used by showWindow: the next
        time the Inspector attaches.

WebKit/qt:

2008-08-12  Timothy Hatcher  <timothy@apple.com>

        Add a stub for InspectorClient::setAttachedWindowHeight.

        * WebCoreSupport/InspectorClientQt.cpp:
        (WebCore::InspectorClientQt::setAttachedWindowHeight):
        Call notImplemented().
        * WebCoreSupport/InspectorClientQt.h:

WebKit/win:

2008-08-12  Timothy Hatcher  <timothy@apple.com>

        Add a stub for InspectorClient::setAttachedWindowHeight.

        * WebCoreSupport/WebInspectorClient.cpp:
        (WebInspectorClient::setAttachedWindowHeight): Add a FIXME to implement this.
        * WebCoreSupport/WebInspectorClient.h:

WebKit/wx:

2008-08-12  Timothy Hatcher  <timothy@apple.com>

        Add a stub for InspectorClient::setAttachedWindowHeight.

        * WebKitSupport/InspectorClientWx.cpp:
        (WebCore::InspectorClientWx::setAttachedWindowHeight):
        Call notImplemented().
        * WebKitSupport/InspectorClientWx.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@35719 268f45cc-cd09-0410-ab3c-d52691b4dbfc

23 files changed:
WebCore/ChangeLog
WebCore/WebCore.xcodeproj/project.pbxproj
WebCore/loader/EmptyClients.h
WebCore/page/InspectorClient.h
WebCore/page/InspectorController.cpp
WebCore/page/InspectorController.h
WebCore/page/inspector/inspector.css
WebCore/page/inspector/inspector.js
WebKit/gtk/ChangeLog
WebKit/gtk/WebCoreSupport/InspectorClientGtk.cpp
WebKit/gtk/WebCoreSupport/InspectorClientGtk.h
WebKit/mac/ChangeLog
WebKit/mac/WebCoreSupport/WebInspectorClient.h
WebKit/mac/WebCoreSupport/WebInspectorClient.mm
WebKit/qt/ChangeLog
WebKit/qt/WebCoreSupport/InspectorClientQt.cpp
WebKit/qt/WebCoreSupport/InspectorClientQt.h
WebKit/win/ChangeLog
WebKit/win/WebCoreSupport/WebInspectorClient.cpp
WebKit/win/WebCoreSupport/WebInspectorClient.h
WebKit/wx/ChangeLog
WebKit/wx/WebKitSupport/InspectorClientWx.cpp
WebKit/wx/WebKitSupport/InspectorClientWx.h

index 08e7e80409d41a60ec8e0788bb6a2c228dd5a7b5..a867193757d6cfa84eba114a56638501818a40b6 100644 (file)
@@ -1,3 +1,33 @@
+2008-08-12  Timothy Hatcher  <timothy@apple.com>
+
+        Make the docked Web Inspector resizable. This is the cross platform
+        portion of the code. Each InspectorClient needs to implement the
+        real resize code.
+
+        https://bugs.webkit.org/show_bug.cgi?id=14282
+
+        Reviewed by Kevin McCullough.
+
+        * loader/EmptyClients.h: Added an empty setAttachedWindowHeight.
+        * page/InspectorClient.h: Added setAttachedWindowHeight.
+        * page/InspectorController.cpp:
+        (WebCore::setAttachedWindowHeight): Call setAttachedWindowHeight
+        on the InspectorController.
+        (WebCore::InspectorController::setAttachedWindowHeight): Call
+        setAttachedWindowHeight on the client.
+        (WebCore::InspectorController::windowScriptObjectAvailable):
+        Added setAttachedWindowHeight to the script class.
+        * page/InspectorController.h:
+        * page/inspector/inspector.css: Make the cursor on the toolbar be
+        row-resize when docked.
+        * page/inspector/inspector.js:
+        (WebInspector.loaded): Always add the toolbarDragStart event listener.
+        (WebInspector.toolbarDragStart): Return early if we are not attached
+        and not on Leopard. Call WebInspector.elementDragStart.
+        (WebInspector.toolbarDragEnd): Call WebInspector.elementDragEnd.
+        (WebInspector.toolbarDrag): When attached call setAttachedWindowHeight,
+        otherwise call moveByUnrestricted.
+
 2008-08-13  Simon Hausmann  <hausmann@webkit.org>
 
         Reviewed by Holger.
index 489fb0d16f440a49fc08c98fa633e33a93c57071..e9a1f41e0573b35800287f3fbd71549b877a0e18 100644 (file)
                        productRefGroup = 034768DFFF38A50411DB9C8B /* Products */;
                        projectDirPath = "";
                        projectRoot = "";
-                       projectRoots = (
-                               "",
-                       );
                        targets = (
                                93F198A508245E59001E9ABC /* WebCore */,
                                DD041FBE09D9DDBE0010AF2A /* Derived Sources */,
index fcd49a4544ceef4f20aefe1bec94a26d825d3d1a..df3af1a558ab2542e66e219cbf751bac459189f5 100644 (file)
@@ -395,6 +395,8 @@ public:
     virtual void attachWindow() {};
     virtual void detachWindow() {};
 
+    virtual void setAttachedWindowHeight(unsigned) {};
+
     virtual void highlight(Node*) {};
     virtual void hideHighlight() {};
     virtual void inspectedURLChanged(const String& newURL) {};
index ec1ee9219231cd264b67b507b06350d765e4ebc9..9ee4a2691a9045171ec006778b236da8ed590516 100644 (file)
@@ -48,6 +48,8 @@ public:
     virtual void attachWindow() = 0;
     virtual void detachWindow() = 0;
 
+    virtual void setAttachedWindowHeight(unsigned height) = 0;
+
     virtual void highlight(Node*) = 0;
     virtual void hideHighlight() = 0;
 
index 01826a449f68a8169ff30f3046cc44e2276ce78f..9cd07a996f6ae15326bd94c0943f0c40166fa29f 100644 (file)
@@ -779,6 +779,24 @@ static JSValueRef moveByUnrestricted(JSContextRef ctx, JSObjectRef /*function*/,
     return JSValueMakeUndefined(ctx);
 }
 
+static JSValueRef setAttachedWindowHeight(JSContextRef ctx, JSObjectRef /*function*/, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef* exception)
+{
+    InspectorController* controller = reinterpret_cast<InspectorController*>(JSObjectGetPrivate(thisObject));
+    if (!controller)
+        return JSValueMakeUndefined(ctx);
+
+    if (argumentCount < 1)
+        return JSValueMakeUndefined(ctx);
+
+    unsigned height = static_cast<unsigned>(JSValueToNumber(ctx, arguments[0], exception));
+    if (exception && *exception)
+        return JSValueMakeUndefined(ctx);
+
+    controller->setAttachedWindowHeight(height);
+
+    return JSValueMakeUndefined(ctx);
+}
+
 static JSValueRef wrapCallback(JSContextRef ctx, JSObjectRef /*function*/, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef* exception)
 {
     InspectorController* controller = reinterpret_cast<InspectorController*>(JSObjectGetPrivate(thisObject));
@@ -1297,6 +1315,13 @@ void InspectorController::detachWindow()
     m_client->detachWindow();
 }
 
+void InspectorController::setAttachedWindowHeight(unsigned height)
+{
+    if (!enabled())
+        return;
+    m_client->setAttachedWindowHeight(height);
+}
+
 void InspectorController::inspectedWindowScriptObjectCleared(Frame* frame)
 {
     if (!enabled() || !m_scriptContext || !m_scriptObject)
@@ -1339,6 +1364,7 @@ void InspectorController::windowScriptObjectAvailable()
         { "localizedStringsURL", localizedStrings, kJSPropertyAttributeNone },
         { "platform", platform, kJSPropertyAttributeNone },
         { "moveByUnrestricted", moveByUnrestricted, kJSPropertyAttributeNone },
+        { "setAttachedWindowHeight", WebCore::setAttachedWindowHeight, kJSPropertyAttributeNone },
         { "wrapCallback", wrapCallback, kJSPropertyAttributeNone },
         { "startDebuggingAndReloadInspectedPage", WebCore::startDebuggingAndReloadInspectedPage, kJSPropertyAttributeNone },
         { "stopDebugging", WebCore::stopDebugging, kJSPropertyAttributeNone },
index 56974c9834b15168b80343e2e300b09c0acd902f..171134c112ef7724807a88facf5aed6a3cac928f 100644 (file)
@@ -119,6 +119,8 @@ public:
     void attachWindow();
     void detachWindow();
 
+    void setAttachedWindowHeight(unsigned height);
+
     JSContextRef scriptContext() const { return m_scriptContext; };
     void setScriptContext(JSContextRef context) { m_scriptContext = context; };
 
index 24fc0db247fb36e9ae29686956ca746efd660b0d..39111186a07e99c5aa19d4338585a22e89c1161c 100644 (file)
@@ -89,6 +89,7 @@ body.detached.platform-mac-leopard #toolbar {
 body.attached #toolbar {
     height: 34px;
     border-top: 1px solid rgb(100, 100, 100);
+    cursor: row-resize;
 }
 
 body.attached.inactive #toolbar {
index d2d5fb934e7b06d82058a98fdb369a2fd42f753b..1c74012d6eca3e0da7ada23754a1fa4f4854fa1b 100644 (file)
@@ -343,8 +343,7 @@ WebInspector.loaded = function()
     var searchField = document.getElementById("search");
     searchField.addEventListener("keyup", this.performSearch.bind(this), false);
 
-    if (platform === "mac-leopard")
-        document.getElementById("toolbar").addEventListener("mousedown", this.toolbarDragStart, true);
+    document.getElementById("toolbar").addEventListener("mousedown", this.toolbarDragStart, true);
 
     InspectorController.loaded();
 }
@@ -583,7 +582,7 @@ WebInspector.toggleAttach = function()
 
 WebInspector.toolbarDragStart = function(event)
 {
-    if (WebInspector.attached)
+    if (!WebInspector.attached && InspectorController.platform() !== "mac-leopard")
         return;
 
     var target = event.target;
@@ -597,40 +596,39 @@ WebInspector.toolbarDragStart = function(event)
     toolbar.lastScreenX = event.screenX;
     toolbar.lastScreenY = event.screenY;
 
-    document.addEventListener("mousemove", WebInspector.toolbarDrag, true);
-    document.addEventListener("mouseup", WebInspector.toolbarDragEnd, true);
-    document.body.style.cursor = "default";
-
-    event.preventDefault();
+    WebInspector.elementDragStart(toolbar, WebInspector.toolbarDrag, WebInspector.toolbarDragEnd, event, (WebInspector.attached ? "row-resize" : "default"));
 }
 
 WebInspector.toolbarDragEnd = function(event)
 {
     var toolbar = document.getElementById("toolbar");
-    delete toolbar.lastScreenX;
-    delete toolbar.lastScreenY;
 
-    document.removeEventListener("mousemove", WebInspector.toolbarDrag, true);
-    document.removeEventListener("mouseup", WebInspector.toolbarDragEnd, true);
-    document.body.style.removeProperty("cursor");
+    WebInspector.elementDragEnd(event);
 
-    event.preventDefault();
+    delete toolbar.lastScreenX;
+    delete toolbar.lastScreenY;
 }
 
 WebInspector.toolbarDrag = function(event)
 {
     var toolbar = document.getElementById("toolbar");
 
-    var x = event.screenX - toolbar.lastScreenX;
-    var y = event.screenY - toolbar.lastScreenY;
+    if (WebInspector.attached) {
+        var height = window.innerHeight - (event.screenY - toolbar.lastScreenY);
+
+        InspectorController.setAttachedWindowHeight(height);
+    } else {
+        var x = event.screenX - toolbar.lastScreenX;
+        var y = event.screenY - toolbar.lastScreenY;
+
+        // We cannot call window.moveBy here because it restricts the movement
+        // of the window at the edges.
+        InspectorController.moveByUnrestricted(x, y);
+    }
 
     toolbar.lastScreenX = event.screenX;
     toolbar.lastScreenY = event.screenY;
 
-    // We cannot call window.moveBy here because it restricts the movement of the window
-    // at the edges.
-    InspectorController.moveByUnrestricted(x, y);
-
     event.preventDefault();
 }
 
index 595a14f24d94add71dde9b0e654a20103a9d4e09..4bacae53f5f1f00ac1a377c67fb5a319628ab1ab 100644 (file)
@@ -1,3 +1,12 @@
+2008-08-12  Timothy Hatcher  <timothy@apple.com>
+
+        Add a stub for InspectorClient::setAttachedWindowHeight.
+
+        * WebCoreSupport/InspectorClientGtk.cpp:
+        (WebKit::InspectorClient::setAttachedWindowHeight):
+        Call notImplemented().
+        * WebCoreSupport/InspectorClientGtk.h:
+
 2008-08-10  Alp Toker  <alp@nuanti.com>
 
         Remove leftover qmake/GTK+ build files.
index a54b6a0bdb2f1bfa3838b4614d00e479b80ad294..1a72261ece4364fd449ca334f1025c24aa3b76c2 100644 (file)
@@ -61,6 +61,11 @@ void InspectorClient::detachWindow()
     notImplemented();
 }
 
+void InspectorClient::setAttachedWindowHeight(unsigned height)
+{
+    notImplemented();
+}
+
 void InspectorClient::highlight(Node* node)
 {
     notImplemented();
index 9afd42bafa3569816d648c2f75df42ce6a9e82fb..ff60fab0e318352d3816b5c99b83f715ae9144a8 100644 (file)
@@ -53,6 +53,8 @@ namespace WebKit {
         virtual void attachWindow();
         virtual void detachWindow();
 
+        virtual void setAttachedWindowHeight(unsigned height);
+
         virtual void highlight(WebCore::Node*);
         virtual void hideHighlight();
         virtual void inspectedURLChanged(const WebCore::String& newURL);
index f28a2fb8816f3eadf8a3d532a7ab40371dd359ce..ccf406b70d7fe7bab8c0c84e6fd761e3d751dbb9 100644 (file)
@@ -1,3 +1,21 @@
+2008-08-12  Timothy Hatcher  <timothy@apple.com>
+
+        Make the docked Web Inspector resizable.
+
+        https://bugs.webkit.org/show_bug.cgi?id=14282
+
+        Reviewed by Kevin McCullough.
+
+        * WebCoreSupport/WebInspectorClient.h:
+        * WebCoreSupport/WebInspectorClient.mm:
+        (WebInspectorClient::setAttachedWindowHeight): Call setAttachedWindowHeight:
+        on the WebInspectorWindowController.
+        (-[WebInspectorWindowController showWindow:]): Call setAttachedWindowHeight:.
+        (-[WebInspectorWindowController setAttachedWindowHeight:]): Moved code
+        from showWindow: and generalized to allow being called multiple times.
+        Remembers the last height passed, which is used by showWindow: the next
+        time the Inspector attaches.
+
 2008-08-12  Timothy Hatcher  <timothy@apple.com>
 
         Remove unneeded header imports from some Web Inspector files.
index 45cd1f913aca56fdc89aa2388de1aa03f7e89a06..5554c078817648ea974eccc8d8b80aafa4861074 100644 (file)
@@ -49,6 +49,8 @@ public:
     virtual void attachWindow();
     virtual void detachWindow();
 
+    virtual void setAttachedWindowHeight(unsigned height);
+
     virtual void highlight(WebCore::Node*);
     virtual void hideHighlight();
     virtual void inspectedURLChanged(const WebCore::String& newURL);
index d6f7d836d87eb45ef5069963faba90b12d2487f9..127c805579553fb1e9edbefb5c829bc6cd2f28ad 100644 (file)
@@ -57,6 +57,7 @@ using namespace WebCore;
 - (WebView *)webView;
 - (void)attach;
 - (void)detach;
+- (void)setAttachedWindowHeight:(unsigned)height;
 - (void)highlightAndScrollToNode:(DOMNode *)node;
 - (void)highlightNode:(DOMNode *)node;
 - (void)hideHighlight;
@@ -112,6 +113,11 @@ void WebInspectorClient::detachWindow()
     [m_windowController.get() detach];
 }
 
+void WebInspectorClient::setAttachedWindowHeight(unsigned height)
+{
+    [m_windowController.get() setAttachedWindowHeight:height];
+}
+
 void WebInspectorClient::highlight(Node* node)
 {
     [m_windowController.get() highlightAndScrollToNode:kit(node)];
@@ -289,21 +295,15 @@ void WebInspectorClient::updateWindowTitle() const
     if (_shouldAttach) {
         WebFrameView *frameView = [[_inspectedWebView mainFrame] frameView];
 
-        NSRect frameViewRect = [frameView frame];
-        float attachedHeight = [[NSUserDefaults standardUserDefaults] integerForKey:WebKitInspectorAttachedViewHeightKey];
-        attachedHeight = MAX(300.0, MIN(attachedHeight, (NSHeight(frameViewRect) * 0.6)));
-        frameViewRect = NSMakeRect(0, attachedHeight, NSWidth(frameViewRect), NSHeight(frameViewRect) - attachedHeight);
-
         [_webView removeFromSuperview];
-        [_inspectedWebView addSubview:_webView positioned:NSWindowBelow relativeTo:(NSView*)frameView];
+        [_inspectedWebView addSubview:_webView positioned:NSWindowBelow relativeTo:(NSView *)frameView];
 
         [_webView setAutoresizingMask:(NSViewWidthSizable | NSViewHeightSizable | NSViewMaxYMargin)];
-        [_webView setFrame:NSMakeRect(0, 0, NSWidth(frameViewRect), attachedHeight)];
-
         [frameView setAutoresizingMask:(NSViewWidthSizable | NSViewHeightSizable | NSViewMinYMargin)];
-        [frameView setFrame:frameViewRect];
 
         _attachedToInspectedWebView = YES;
+
+        [self setAttachedWindowHeight:[[NSUserDefaults standardUserDefaults] integerForKey:WebKitInspectorAttachedViewHeightKey]];
     } else {
         _attachedToInspectedWebView = NO;
 
@@ -349,6 +349,23 @@ void WebInspectorClient::updateWindowTitle() const
     _movingWindows = NO;
 }
 
+- (void)setAttachedWindowHeight:(unsigned)height
+{
+    [[NSUserDefaults standardUserDefaults] setInteger:height forKey:WebKitInspectorAttachedViewHeightKey];
+
+    if (!_attachedToInspectedWebView)
+        return;
+
+    WebFrameView *frameView = [[_inspectedWebView mainFrame] frameView];
+    NSRect frameViewRect = [frameView frame];
+
+    CGFloat attachedHeight = round(MAX(250.0, MIN(height, (NSHeight([_inspectedWebView frame]) * 0.75))));
+    frameViewRect = NSMakeRect(0.0, attachedHeight, NSWidth(frameViewRect), NSHeight([_inspectedWebView frame]) - attachedHeight);
+
+    [_webView setFrame:NSMakeRect(0.0, 0.0, NSWidth(frameViewRect), attachedHeight)];
+    [frameView setFrame:frameViewRect];
+}
+
 #pragma mark -
 
 - (void)highlightAndScrollToNode:(DOMNode *)node
index 51b106f5df72994ccb4a773566f13a4cba9fae24..a1c9f72c664e6aa21f3b827e5be0ead52d55cc58 100644 (file)
@@ -1,3 +1,12 @@
+2008-08-12  Timothy Hatcher  <timothy@apple.com>
+
+        Add a stub for InspectorClient::setAttachedWindowHeight.
+
+        * WebCoreSupport/InspectorClientQt.cpp:
+        (WebCore::InspectorClientQt::setAttachedWindowHeight):
+        Call notImplemented().
+        * WebCoreSupport/InspectorClientQt.h:
+
 2008-08-13  Ariya Hidayat  <ariya.hidayat@trolltech.com>
 
         Reviewed by Simon.
index 8e7422a3dffdf0d2def7dba7f5a94fe107e25f51..6854de47659bb5723a325120ac45c7f116d8e61d 100644 (file)
@@ -154,6 +154,11 @@ void InspectorClientQt::detachWindow()
     notImplemented();
 }
 
+void InspectorClientQt::setAttachedWindowHeight(unsigned height)
+{
+    notImplemented();
+}
+
 void InspectorClientQt::highlight(Node* node)
 {
     notImplemented();
index bc0fccd273a7192403e997de6e3921c19e2c6de4..0f30b91dc42084fcd57e25090a7f81ab55ee7a39 100644 (file)
@@ -58,6 +58,8 @@ namespace WebCore {
         virtual void attachWindow();
         virtual void detachWindow();
 
+        virtual void setAttachedWindowHeight(unsigned height);
+
         virtual void highlight(Node*);
         virtual void hideHighlight();
         virtual void inspectedURLChanged(const String& newURL);
index 443e9605b17496c3d72a03df79a479028e74f6e4..1297dd4aaa8820d2202d0ec68ac64573f39f6a6e 100644 (file)
@@ -1,3 +1,11 @@
+2008-08-12  Timothy Hatcher  <timothy@apple.com>
+
+        Add a stub for InspectorClient::setAttachedWindowHeight.
+
+        * WebCoreSupport/WebInspectorClient.cpp:
+        (WebInspectorClient::setAttachedWindowHeight): Add a FIXME to implement this.
+        * WebCoreSupport/WebInspectorClient.h:
+
 2008-08-12  Adam Roben  <aroben@apple.com>
 
         Export WTFLog in Debug builds
index fce9b0c901d0ccaa413997ce7b55fc1ea98e1c31..242a52f116689b31002588d984b5ab43bb60066c 100644 (file)
@@ -267,6 +267,11 @@ void WebInspectorClient::detachWindow()
         m_highlight->update();
 }
 
+void WebInspectorClient::setAttachedWindowHeight(unsigned height)
+{
+    // FIXME: implement this.
+}
+
 void WebInspectorClient::highlight(Node*)
 {
     bool creatingHighlight = !m_highlight;
index 475928472c2d7dafde19cc57e451d50dd495de82..902f3fbad773c391f4286a34fe9aa5ac8051a48d 100644 (file)
@@ -57,6 +57,8 @@ public:
     virtual void attachWindow();
     virtual void detachWindow();
 
+    virtual void setAttachedWindowHeight(unsigned height);
+
     virtual void highlight(WebCore::Node*);
     virtual void hideHighlight();
 
index d9b19351984c08fef8434f9cf881a7e2d22d3589..2ef2086fc58b66d003d77181b35172702f7b288f 100644 (file)
@@ -1,3 +1,12 @@
+2008-08-12  Timothy Hatcher  <timothy@apple.com>
+
+        Add a stub for InspectorClient::setAttachedWindowHeight.
+
+        * WebKitSupport/InspectorClientWx.cpp:
+        (WebCore::InspectorClientWx::setAttachedWindowHeight):
+        Call notImplemented().
+        * WebKitSupport/InspectorClientWx.h:
+
 2008-08-06  Kevin Watters  <kevinwatters@gmail.com>
 
         Reviewed by Kevin Ollivier.
index e77a06880fbb024867463dc3890621a2906a3b58..d5f236bf1aa50d85f43d5f59c1b81e3acc68bf1b 100644 (file)
@@ -79,6 +79,11 @@ void InspectorClientWx::detachWindow()
     notImplemented();
 }
 
+void InspectorClientWx::setAttachedWindowHeight(unsigned height)
+{
+    notImplemented();
+}
+
 void InspectorClientWx::highlight(Node*)
 {
     notImplemented();
index 561627870ab677db0b0fd6e60ef5fec14df0f065..9ea3aed74f726b48cc09cf51d8c6e5b8f3896a99 100644 (file)
@@ -51,6 +51,8 @@ public:
     virtual void attachWindow();
     virtual void detachWindow();
 
+    virtual void setAttachedWindowHeight(unsigned height);
+
     virtual void highlight(Node*);
     virtual void hideHighlight();