Title: [134346] trunk/Source
- Revision
- 134346
- Author
- [email protected]
- Date
- 2012-11-12 20:05:09 -0800 (Mon, 12 Nov 2012)
Log Message
Add a dock button to the top right corner of the Web Inspector window (similar to the full screen button).
Source/WebCore: Expose InspectorFrontendClientLocal::setAttachedWindow as public.
This allows external actions to update the docked state in the frontend.
https://bugs.webkit.org/show_bug.cgi?id=102023
Reviewed by Anders Carlsson.
* inspector/InspectorFrontendClientLocal.h:
Moved InspectorFrontendClientLocal::setAttachedWindow to public section.
Source/WebKit2: Add a dock button to the top right corner of the Web Inspector window (similar to the full screen button).
https://bugs.webkit.org/show_bug.cgi?id=102023
Reviewed by Anders Carlsson.
* Resources/Dock.pdf: Added.
* UIProcess/WebInspectorProxy.cpp:
(WebKit::WebInspectorProxy::attach): Set the SetAttachedWindow message.
(WebKit::WebInspectorProxy::detach): Ditto.
(WebKit::WebInspectorProxy::attachAvailabilityChanged): Added. Call platformAttachAvailabilityChanged.
* UIProcess/WebInspectorProxy.h:
* UIProcess/WebInspectorProxy.messages.in: Added AttachAvailabilityChanged message.
* UIProcess/mac/WebInspectorProxyMac.mm:
(-[WKWebInspectorProxyObjCAdapter attach:]): Added. Call WebInspectorProxy::attach.
(-[WKWebInspectorWindow _cursorForResizeDirection:]): Added.
(WebKit::WebInspectorProxy::createInspectorWindow): Create the dock button and add it.
(WebKit::WebInspectorProxy::platformAttachAvailabilityChanged): Added. Update hidden state of the dock button.
* WebKit2.xcodeproj/project.pbxproj: Added Dock.pdf.
* WebProcess/WebPage/WebInspector.cpp:
(WebKit::WebInspector::setAttachedWindow): Added. Call through to the frontend client.
(WebKit::WebInspector::updateDockingAvailability): Send AttachAvailabilityChanged message.
* WebProcess/WebPage/WebInspector.h:
* WebProcess/WebPage/WebInspector.messages.in: Added SetAttachedWindow message.
* UIProcess/efl/WebInspectorProxyEfl.cpp:
(WebKit::WebInspectorProxy::platformAttachAvailabilityChanged): Added stub.
* UIProcess/gtk/WebInspectorProxyGtk.cpp:
(WebKit::WebInspectorProxy::platformAttachAvailabilityChanged): Ditto.
* UIProcess/qt/WebInspectorProxyQt.cpp:
(WebKit::WebInspectorProxy::platformAttachAvailabilityChanged): Ditto.
* UIProcess/win/WebInspectorProxyWin.cpp:
(WebKit::WebInspectorProxy::platformAttachAvailabilityChanged): Ditto.
Modified Paths
Added Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (134345 => 134346)
--- trunk/Source/WebCore/ChangeLog 2012-11-13 04:03:41 UTC (rev 134345)
+++ trunk/Source/WebCore/ChangeLog 2012-11-13 04:05:09 UTC (rev 134346)
@@ -1,3 +1,16 @@
+2012-11-12 Timothy Hatcher <[email protected]>
+
+ Expose InspectorFrontendClientLocal::setAttachedWindow as public.
+
+ This allows external actions to update the docked state in the frontend.
+
+ https://bugs.webkit.org/show_bug.cgi?id=102023
+
+ Reviewed by Anders Carlsson.
+
+ * inspector/InspectorFrontendClientLocal.h:
+ Moved InspectorFrontendClientLocal::setAttachedWindow to public section.
+
2012-11-12 Erik Arvidsson <[email protected]>
Replace DOMException TYPE_MISMATCH_ERR with TypeError
Modified: trunk/Source/WebCore/inspector/InspectorFrontendClientLocal.h (134345 => 134346)
--- trunk/Source/WebCore/inspector/InspectorFrontendClientLocal.h 2012-11-13 04:03:41 UTC (rev 134345)
+++ trunk/Source/WebCore/inspector/InspectorFrontendClientLocal.h 2012-11-13 04:05:09 UTC (rev 134346)
@@ -98,9 +98,10 @@
void showResources();
+ void setAttachedWindow(bool);
+
protected:
virtual void setAttachedWindowHeight(unsigned) = 0;
- void setAttachedWindow(bool);
void restoreAttachedWindowHeight();
private:
Modified: trunk/Source/WebKit2/ChangeLog (134345 => 134346)
--- trunk/Source/WebKit2/ChangeLog 2012-11-13 04:03:41 UTC (rev 134345)
+++ trunk/Source/WebKit2/ChangeLog 2012-11-13 04:05:09 UTC (rev 134346)
@@ -1,3 +1,39 @@
+2012-11-12 Timothy Hatcher <[email protected]>
+
+ Add a dock button to the top right corner of the Web Inspector window (similar to the full screen button).
+
+ https://bugs.webkit.org/show_bug.cgi?id=102023
+
+ Reviewed by Anders Carlsson.
+
+ * Resources/Dock.pdf: Added.
+ * UIProcess/WebInspectorProxy.cpp:
+ (WebKit::WebInspectorProxy::attach): Set the SetAttachedWindow message.
+ (WebKit::WebInspectorProxy::detach): Ditto.
+ (WebKit::WebInspectorProxy::attachAvailabilityChanged): Added. Call platformAttachAvailabilityChanged.
+ * UIProcess/WebInspectorProxy.h:
+ * UIProcess/WebInspectorProxy.messages.in: Added AttachAvailabilityChanged message.
+ * UIProcess/mac/WebInspectorProxyMac.mm:
+ (-[WKWebInspectorProxyObjCAdapter attach:]): Added. Call WebInspectorProxy::attach.
+ (-[WKWebInspectorWindow _cursorForResizeDirection:]): Added.
+ (WebKit::WebInspectorProxy::createInspectorWindow): Create the dock button and add it.
+ (WebKit::WebInspectorProxy::platformAttachAvailabilityChanged): Added. Update hidden state of the dock button.
+ * WebKit2.xcodeproj/project.pbxproj: Added Dock.pdf.
+ * WebProcess/WebPage/WebInspector.cpp:
+ (WebKit::WebInspector::setAttachedWindow): Added. Call through to the frontend client.
+ (WebKit::WebInspector::updateDockingAvailability): Send AttachAvailabilityChanged message.
+ * WebProcess/WebPage/WebInspector.h:
+ * WebProcess/WebPage/WebInspector.messages.in: Added SetAttachedWindow message.
+
+ * UIProcess/efl/WebInspectorProxyEfl.cpp:
+ (WebKit::WebInspectorProxy::platformAttachAvailabilityChanged): Added stub.
+ * UIProcess/gtk/WebInspectorProxyGtk.cpp:
+ (WebKit::WebInspectorProxy::platformAttachAvailabilityChanged): Ditto.
+ * UIProcess/qt/WebInspectorProxyQt.cpp:
+ (WebKit::WebInspectorProxy::platformAttachAvailabilityChanged): Ditto.
+ * UIProcess/win/WebInspectorProxyWin.cpp:
+ (WebKit::WebInspectorProxy::platformAttachAvailabilityChanged): Ditto.
+
2012-11-12 Anders Carlsson <[email protected]>
Include child layers in the remote layer tree transaction
Added: trunk/Source/WebKit2/Resources/Dock.pdf (0 => 134346)
--- trunk/Source/WebKit2/Resources/Dock.pdf (rev 0)
+++ trunk/Source/WebKit2/Resources/Dock.pdf 2012-11-13 04:05:09 UTC (rev 134346)
@@ -0,0 +1,88 @@
+%PDF-1.3
+%\xC4\xE5\xF2\xE5\xEB\xA7\xF3\xA0\xD0\xC4\xC6
+4 0 obj
+<< /Length 5 0 R /Filter /FlateDecode >>
+stream
+xU\x901n\xC40{\xBD\x82u
+\x85\x94II\xAC\xEF\xF7A\\x8A\x83\xFFdI\xE4\xE4v\xC1\xB5w\xB8+=\xE9NO\xE2\xDA\xE9\x8B\xDEo\xA7\xD0:\x89\xF39\xB5\xCAlӜD\xE9\x9BD\xAA\xBBb\xC4\xFB 9\xAAp\xF3T\xF1-\xA4\xB8\x95\x98_\xC6ֽ\x8C"i\xFA\xE0β \x84m\x80\xE9
+-\x8C\x94˞\xA5 O\xB6\xC3\xC0\xEC\xB5\xEB\xEFW\xB3\x80\xD3\xA5\xB6\xF3\xA2Ohw;|\xD2\xC4\xD1ZU\xB5n\xD1hTS\xE7f92{k-j%\xC1c\xCC\xF2H\xA1z\xD8쁚\xF5\x8E\x80ke\xF8q&f\xC5\xFF\xB8+\xA9f\xB0CH\xD8\xD4؇a.\xD1"vɿq@\xB2\x87\xF5\xBCo\xE0HS\xB4{m
+\xE0\xFF\xCA\xC7\xDD ӵZ\xCB
+endstream
+endobj
+5 0 obj
+227
+endobj
+2 0 obj
+<< /Type /Page /Parent 3 0 R /Resources 6 0 R /Contents 4 0 R /MediaBox [0 0 14 14]
+>>
+endobj
+6 0 obj
+<< /ProcSet [ /PDF ] /ColorSpace << /Cs1 7 0 R >> >>
+endobj
+8 0 obj
+<< /Length 9 0 R /N 3 /Alternate /DeviceRGB /Filter /FlateDecode >>
+stream
+x\xAD\x96gTT\xD7\xC7Ͻ\xD3m`\xE80\xF4\xDE;H\xEFMz\x95a\xE8e\x84\xA1#*"\xC1DP U\xC1\xA8\xD4XQD
+X\xD0\x94,\x80\x8Aʻk\x99\xAC\xB7^\xBE\xBD\xBD\xD6>\xE7w\xCE\xDE\xF7\xB4\xFD\xE1\xFE 91\xE3a>