<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[160202] trunk/Source</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://trac.webkit.org/projects/webkit/changeset/160202">160202</a></dd>
<dt>Author</dt> <dd>commit-queue@webkit.org</dd>
<dt>Date</dt> <dd>2013-12-05 16:57:43 -0800 (Thu, 05 Dec 2013)</dd>
</dl>

<h3>Log Message</h3>
<pre>Web Inspector: expose node and frame snapshot capabilities.
https://bugs.webkit.org/show_bug.cgi?id=124326

Patch by Brian J. Burg &lt;burg@cs.washington.edu&gt; on 2013-12-05
Reviewed by Joseph Pecoraro.

Source/WebCore:

This adds snapshotRect() and snapshotNode() to the Page domain.
Both methods create snapshots using FrameSnapshotting APIs
and send images to the inspector frontend as a data URL.

Remove the unimplemented Page.captureScreenshot API.

* inspector/InspectorPageAgent.cpp:
(WebCore::InspectorPageAgent::snapshotNode): Added.
(WebCore::InspectorPageAgent::snapshotRect): Added.
* inspector/InspectorPageAgent.h:
* inspector/protocol/Page.json: Added new protocol APIs.

Source/WebInspectorUI:

Add method signatures for snapshotNode() and snapshotRect().
Remove method signature for unimplemented Page.captureScreenshot.

* UserInterface/InspectorBackendCommands.js:</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkSourceWebCoreChangeLog">trunk/Source/WebCore/ChangeLog</a></li>
<li><a href="#trunkSourceWebCoreinspectorInspectorPageAgentcpp">trunk/Source/WebCore/inspector/InspectorPageAgent.cpp</a></li>
<li><a href="#trunkSourceWebCoreinspectorInspectorPageAgenth">trunk/Source/WebCore/inspector/InspectorPageAgent.h</a></li>
<li><a href="#trunkSourceWebCoreinspectorprotocolPagejson">trunk/Source/WebCore/inspector/protocol/Page.json</a></li>
<li><a href="#trunkSourceWebInspectorUIChangeLog">trunk/Source/WebInspectorUI/ChangeLog</a></li>
<li><a href="#trunkSourceWebInspectorUIUserInterfaceInspectorBackendCommandsjs">trunk/Source/WebInspectorUI/UserInterface/InspectorBackendCommands.js</a></li>
<li><a href="#trunkSourceWebInspectorUIUserInterfaceLegacy70InspectorBackendCommandsjs">trunk/Source/WebInspectorUI/UserInterface/Legacy/7.0/InspectorBackendCommands.js</a></li>
<li><a href="#trunkSourceWebInspectorUIVersionsInspectoriOS70json">trunk/Source/WebInspectorUI/Versions/Inspector-iOS-7.0.json</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkSourceWebCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/ChangeLog (160201 => 160202)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/ChangeLog        2013-12-06 00:25:44 UTC (rev 160201)
+++ trunk/Source/WebCore/ChangeLog        2013-12-06 00:57:43 UTC (rev 160202)
</span><span class="lines">@@ -1,3 +1,22 @@
</span><ins>+2013-12-05  Brian J. Burg  &lt;burg@cs.washington.edu&gt;
+
+        Web Inspector: expose node and frame snapshot capabilities.
+        https://bugs.webkit.org/show_bug.cgi?id=124326
+
+        Reviewed by Joseph Pecoraro.
+
+        This adds snapshotRect() and snapshotNode() to the Page domain.
+        Both methods create snapshots using FrameSnapshotting APIs
+        and send images to the inspector frontend as a data URL.
+
+        Remove the unimplemented Page.captureScreenshot API.
+
+        * inspector/InspectorPageAgent.cpp:
+        (WebCore::InspectorPageAgent::snapshotNode): Added.
+        (WebCore::InspectorPageAgent::snapshotRect): Added.
+        * inspector/InspectorPageAgent.h:
+        * inspector/protocol/Page.json: Added new protocol APIs.
+
</ins><span class="cx"> 2013-12-04 Bear Travis &lt;betravis@adobe.com&gt;
</span><span class="cx"> 
</span><span class="cx">     [CSS Shapes] Enable CSS Shapes on Windows
</span></span></pre></div>
<a id="trunkSourceWebCoreinspectorInspectorPageAgentcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/inspector/InspectorPageAgent.cpp (160201 => 160202)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/inspector/InspectorPageAgent.cpp        2013-12-06 00:25:44 UTC (rev 160201)
+++ trunk/Source/WebCore/inspector/InspectorPageAgent.cpp        2013-12-06 00:57:43 UTC (rev 160202)
</span><span class="lines">@@ -51,15 +51,18 @@
</span><span class="cx"> #include &quot;DocumentLoader.h&quot;
</span><span class="cx"> #include &quot;Frame.h&quot;
</span><span class="cx"> #include &quot;FrameLoader.h&quot;
</span><ins>+#include &quot;FrameSnapshotting.h&quot;
</ins><span class="cx"> #include &quot;FrameView.h&quot;
</span><span class="cx"> #include &quot;GeolocationController.h&quot;
</span><span class="cx"> #include &quot;GeolocationError.h&quot;
</span><span class="cx"> #include &quot;HTMLFrameOwnerElement.h&quot;
</span><span class="cx"> #include &quot;HTMLNames.h&quot;
</span><span class="cx"> #include &quot;IdentifiersFactory.h&quot;
</span><ins>+#include &quot;ImageBuffer.h&quot;
</ins><span class="cx"> #include &quot;InjectedScriptManager.h&quot;
</span><span class="cx"> #include &quot;InspectorAgent.h&quot;
</span><span class="cx"> #include &quot;InspectorClient.h&quot;
</span><ins>+#include &quot;InspectorDOMAgent.h&quot;
</ins><span class="cx"> #include &quot;InspectorFrontend.h&quot;
</span><span class="cx"> #include &quot;InspectorInstrumentation.h&quot;
</span><span class="cx"> #include &quot;InspectorOverlay.h&quot;
</span><span class="lines">@@ -1251,12 +1254,46 @@
</span><span class="cx">     m_page-&gt;settings().setShowRepaintCounter(visible);
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-void InspectorPageAgent::captureScreenshot(ErrorString* errorString, String* data)
</del><ins>+void InspectorPageAgent::snapshotNode(ErrorString* errorString, int nodeId, String* outDataURL)
</ins><span class="cx"> {
</span><del>-    if (!m_client-&gt;captureScreenshot(data))
-        *errorString = &quot;Could not capture screenshot&quot;;
</del><ins>+    Frame* frame = mainFrame();
+    ASSERT(frame);
+
+    InspectorDOMAgent* domAgent = m_instrumentingAgents-&gt;inspectorDOMAgent();
+    ASSERT(domAgent);
+    Node* node = domAgent-&gt;assertNode(errorString, nodeId);
+    if (!node)
+        return;
+
+    std::unique_ptr&lt;ImageBuffer&gt; snapshot = WebCore::snapshotNode(*frame, *node);
+    if (!snapshot) {
+        *errorString = ASCIILiteral(&quot;Could not capture snapshot&quot;);
+        return;
+    }
+
+    *outDataURL = snapshot-&gt;toDataURL(ASCIILiteral(&quot;image/png&quot;));
</ins><span class="cx"> }
</span><span class="cx"> 
</span><ins>+void InspectorPageAgent::snapshotRect(ErrorString* errorString, int x, int y, int width, int height, const String&amp; coordinateSystem, String* outDataURL)
+{
+    Frame* frame = mainFrame();
+    ASSERT(frame);
+
+    SnapshotOptions options = SnapshotOptionsNone;
+    if (coordinateSystem == &quot;Viewport&quot;)
+        options |= SnapshotOptionsInViewCoordinates;
+
+    IntRect rectangle(x, y, width, height);
+    std::unique_ptr&lt;ImageBuffer&gt; snapshot = snapshotFrameRect(*frame, rectangle, options);
+
+    if (!snapshot) {
+        *errorString = ASCIILiteral(&quot;Could not capture snapshot&quot;);
+        return;
+    }
+
+    *outDataURL = snapshot-&gt;toDataURL(ASCIILiteral(&quot;image/png&quot;));
+}
+
</ins><span class="cx"> void InspectorPageAgent::handleJavaScriptDialog(ErrorString* errorString, bool accept, const String* promptText)
</span><span class="cx"> {
</span><span class="cx">     if (!m_client-&gt;handleJavaScriptDialog(accept, promptText))
</span></span></pre></div>
<a id="trunkSourceWebCoreinspectorInspectorPageAgenth"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/inspector/InspectorPageAgent.h (160201 => 160202)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/inspector/InspectorPageAgent.h        2013-12-06 00:25:44 UTC (rev 160201)
+++ trunk/Source/WebCore/inspector/InspectorPageAgent.h        2013-12-06 00:57:43 UTC (rev 160202)
</span><span class="lines">@@ -129,7 +129,8 @@
</span><span class="cx">     virtual void setEmulatedMedia(ErrorString*, const String&amp;);
</span><span class="cx">     virtual void getCompositingBordersVisible(ErrorString*, bool* out_param);
</span><span class="cx">     virtual void setCompositingBordersVisible(ErrorString*, bool);
</span><del>-    virtual void captureScreenshot(ErrorString*, String* data);
</del><ins>+    virtual void snapshotNode(ErrorString*, int nodeId, String* outDataURL);
+    virtual void snapshotRect(ErrorString*, int x, int y, int width, int height, const String&amp; coordinateSystem, String* outDataURL);
</ins><span class="cx">     virtual void handleJavaScriptDialog(ErrorString*, bool accept, const String* promptText);
</span><span class="cx">     virtual void archive(ErrorString*, String* data);
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCoreinspectorprotocolPagejson"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/inspector/protocol/Page.json (160201 => 160202)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/inspector/protocol/Page.json        2013-12-06 00:25:44 UTC (rev 160201)
+++ trunk/Source/WebCore/inspector/protocol/Page.json        2013-12-06 00:57:43 UTC (rev 160202)
</span><span class="lines">@@ -9,6 +9,12 @@
</span><span class="cx">             &quot;description&quot;: &quot;Resource type as it was perceived by the rendering engine.&quot;
</span><span class="cx">         },
</span><span class="cx">         {
</span><ins>+            &quot;id&quot;: &quot;CoordinateSystem&quot;,
+            &quot;type&quot;: &quot;string&quot;,
+            &quot;enum&quot;: [&quot;Viewport&quot;, &quot;Page&quot;],
+            &quot;description&quot;: &quot;Coordinate system used by supplied coordinates.&quot;
+        },
+        {
</ins><span class="cx">             &quot;id&quot;: &quot;Frame&quot;,
</span><span class="cx">             &quot;type&quot;: &quot;object&quot;,
</span><span class="cx">             &quot;description&quot;: &quot;Information about the Frame on the page.&quot;,
</span><span class="lines">@@ -344,13 +350,30 @@
</span><span class="cx">             ]
</span><span class="cx">         },
</span><span class="cx">         {
</span><del>-            &quot;name&quot;: &quot;captureScreenshot&quot;,
-            &quot;description&quot;: &quot;Capture page screenshot.&quot;,
</del><ins>+            &quot;name&quot;: &quot;snapshotNode&quot;,
+            &quot;description&quot;: &quot;Capture a snapshot of the specified node that does not include unrelated layers.&quot;,
+            &quot;parameters&quot;: [
+                { &quot;name&quot;: &quot;nodeId&quot;, &quot;$ref&quot;: &quot;DOM.NodeId&quot;, &quot;description&quot;: &quot;Id of the node to snapshot.&quot; }
+            ],
</ins><span class="cx">             &quot;returns&quot;: [
</span><del>-                { &quot;name&quot;: &quot;data&quot;, &quot;type&quot;: &quot;string&quot;, &quot;description&quot;: &quot;Base64-encoded image data (PNG).&quot; }
</del><ins>+                { &quot;name&quot;: &quot;dataURL&quot;, &quot;type&quot;: &quot;string&quot;, &quot;description&quot;: &quot;Base64-encoded image data (PNG).&quot; }
</ins><span class="cx">             ]
</span><span class="cx">         },
</span><span class="cx">         {
</span><ins>+            &quot;name&quot;: &quot;snapshotRect&quot;,
+            &quot;description&quot;: &quot;Capture a snapshot of the page within the specified rectangle and coordinate system.&quot;,
+            &quot;parameters&quot;: [
+                { &quot;name&quot;: &quot;x&quot;, &quot;type&quot;: &quot;integer&quot;, &quot;description&quot;: &quot;X coordinate&quot; },
+                { &quot;name&quot;: &quot;y&quot;, &quot;type&quot;: &quot;integer&quot;, &quot;description&quot;: &quot;Y coordinate&quot; },
+                { &quot;name&quot;: &quot;width&quot;, &quot;type&quot;: &quot;integer&quot;, &quot;description&quot;: &quot;Rectangle width&quot; },
+                { &quot;name&quot;: &quot;height&quot;, &quot;type&quot;: &quot;integer&quot;, &quot;description&quot;: &quot;Rectangle height&quot; },
+                { &quot;name&quot;: &quot;coordinateSystem&quot;, &quot;$ref&quot;: &quot;CoordinateSystem&quot;, &quot;description&quot;: &quot;Indicates the coordinate system of the supplied rectangle.&quot; }
+            ],
+            &quot;returns&quot;: [
+                { &quot;name&quot;: &quot;dataURL&quot;, &quot;type&quot;: &quot;string&quot;, &quot;description&quot;: &quot;Base64-encoded image data (PNG).&quot; }
+            ]
+        },
+        {
</ins><span class="cx">             &quot;name&quot;: &quot;handleJavaScriptDialog&quot;,
</span><span class="cx">             &quot;description&quot;: &quot;Accepts or dismisses a JavaScript initiated dialog (alert, confirm, prompt, or onbeforeunload).&quot;,
</span><span class="cx">             &quot;parameters&quot;: [
</span></span></pre></div>
<a id="trunkSourceWebInspectorUIChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebInspectorUI/ChangeLog (160201 => 160202)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebInspectorUI/ChangeLog        2013-12-06 00:25:44 UTC (rev 160201)
+++ trunk/Source/WebInspectorUI/ChangeLog        2013-12-06 00:57:43 UTC (rev 160202)
</span><span class="lines">@@ -1,3 +1,15 @@
</span><ins>+2013-12-05  Brian J. Burg  &lt;burg@cs.washington.edu&gt;
+
+        Web Inspector: expose node and frame snapshot capabilities.
+        https://bugs.webkit.org/show_bug.cgi?id=124326
+
+        Reviewed by Joseph Pecoraro.
+
+        Add method signatures for snapshotNode() and snapshotRect().
+        Remove method signature for unimplemented Page.captureScreenshot.
+
+        * UserInterface/InspectorBackendCommands.js:
+
</ins><span class="cx"> 2013-12-05  Alexandru Chiculita  &lt;achicu@adobe.com&gt;
</span><span class="cx"> 
</span><span class="cx">         Web Inspector: [CSS Regions] Show a list of containing regions when clicking a node that is part of a flow
</span></span></pre></div>
<a id="trunkSourceWebInspectorUIUserInterfaceInspectorBackendCommandsjs"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebInspectorUI/UserInterface/InspectorBackendCommands.js (160201 => 160202)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebInspectorUI/UserInterface/InspectorBackendCommands.js        2013-12-06 00:25:44 UTC (rev 160201)
+++ trunk/Source/WebInspectorUI/UserInterface/InspectorBackendCommands.js        2013-12-06 00:57:43 UTC (rev 160202)
</span><span class="lines">@@ -1,5 +1,6 @@
</span><span class="cx"> // File is generated by Source/WebCore/inspector/CodeGeneratorInspector.py
</span><span class="cx"> 
</span><ins>+// Copyright (c) 2013 Apple Inc. All Rights Reserved.
</ins><span class="cx"> // Copyright (c) 2011 The Chromium Authors. All rights reserved.
</span><span class="cx"> // Use of this source code is governed by a BSD-style license that can be
</span><span class="cx"> // found in the LICENSE file.
</span><span class="lines">@@ -289,6 +290,7 @@
</span><span class="cx"> // Page.
</span><span class="cx"> InspectorBackend.registerPageDispatcher = InspectorBackend.registerDomainDispatcher.bind(InspectorBackend, &quot;Page&quot;);
</span><span class="cx"> InspectorBackend.registerEnum(&quot;Page.ResourceType&quot;, {Document: &quot;Document&quot;, Stylesheet: &quot;Stylesheet&quot;, Image: &quot;Image&quot;, Font: &quot;Font&quot;, Script: &quot;Script&quot;, XHR: &quot;XHR&quot;, WebSocket: &quot;WebSocket&quot;, Other: &quot;Other&quot;});
</span><ins>+InspectorBackend.registerEnum(&quot;Page.CoordinateSystem&quot;, {Viewport: &quot;Viewport&quot;, Page: &quot;Page&quot;});
</ins><span class="cx"> InspectorBackend.registerEvent(&quot;Page.domContentEventFired&quot;, [&quot;timestamp&quot;]);
</span><span class="cx"> InspectorBackend.registerEvent(&quot;Page.loadEventFired&quot;, [&quot;timestamp&quot;]);
</span><span class="cx"> InspectorBackend.registerEvent(&quot;Page.frameNavigated&quot;, [&quot;frame&quot;]);
</span><span class="lines">@@ -334,7 +336,8 @@
</span><span class="cx"> InspectorBackend.registerCommand(&quot;Page.setEmulatedMedia&quot;, [{&quot;name&quot;: &quot;media&quot;, &quot;type&quot;: &quot;string&quot;, &quot;optional&quot;: false}], []);
</span><span class="cx"> InspectorBackend.registerCommand(&quot;Page.getCompositingBordersVisible&quot;, [], [&quot;result&quot;]);
</span><span class="cx"> InspectorBackend.registerCommand(&quot;Page.setCompositingBordersVisible&quot;, [{&quot;name&quot;: &quot;visible&quot;, &quot;type&quot;: &quot;boolean&quot;, &quot;optional&quot;: false}], []);
</span><del>-InspectorBackend.registerCommand(&quot;Page.captureScreenshot&quot;, [], [&quot;data&quot;]);
</del><ins>+InspectorBackend.registerCommand(&quot;Page.snapshotNode&quot;, [{&quot;name&quot;: &quot;nodeId&quot;, &quot;type&quot;: &quot;number&quot;, &quot;optional&quot;: false}], [&quot;dataURL&quot;]);
+InspectorBackend.registerCommand(&quot;Page.snapshotRect&quot;, [{&quot;name&quot;: &quot;x&quot;, &quot;type&quot;: &quot;number&quot;, &quot;optional&quot;: false}, {&quot;name&quot;: &quot;y&quot;, &quot;type&quot;: &quot;number&quot;, &quot;optional&quot;: false}, {&quot;name&quot;: &quot;width&quot;, &quot;type&quot;: &quot;number&quot;, &quot;optional&quot;: false}, {&quot;name&quot;: &quot;height&quot;, &quot;type&quot;: &quot;number&quot;, &quot;optional&quot;: false}, {&quot;name&quot;: &quot;coordinateSystem&quot;, &quot;type&quot;: &quot;string&quot;, &quot;optional&quot;: false}], [&quot;dataURL&quot;]);
</ins><span class="cx"> InspectorBackend.registerCommand(&quot;Page.handleJavaScriptDialog&quot;, [{&quot;name&quot;: &quot;accept&quot;, &quot;type&quot;: &quot;boolean&quot;, &quot;optional&quot;: false}, {&quot;name&quot;: &quot;promptText&quot;, &quot;type&quot;: &quot;string&quot;, &quot;optional&quot;: true}], []);
</span><span class="cx"> InspectorBackend.registerCommand(&quot;Page.archive&quot;, [], [&quot;data&quot;]);
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebInspectorUIUserInterfaceLegacy70InspectorBackendCommandsjs"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebInspectorUI/UserInterface/Legacy/7.0/InspectorBackendCommands.js (160201 => 160202)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebInspectorUI/UserInterface/Legacy/7.0/InspectorBackendCommands.js        2013-12-06 00:25:44 UTC (rev 160201)
+++ trunk/Source/WebInspectorUI/UserInterface/Legacy/7.0/InspectorBackendCommands.js        2013-12-06 00:57:43 UTC (rev 160202)
</span><span class="lines">@@ -1,5 +1,6 @@
</span><span class="cx"> // File is generated by Source/WebCore/inspector/CodeGeneratorInspector.py
</span><span class="cx"> 
</span><ins>+// Copyright (c) 2013 Apple Inc. All Rights Reserved.
</ins><span class="cx"> // Copyright (c) 2011 The Chromium Authors. All rights reserved.
</span><span class="cx"> // Use of this source code is governed by a BSD-style license that can be
</span><span class="cx"> // found in the LICENSE file.
</span><span class="lines">@@ -66,7 +67,6 @@
</span><span class="cx"> InspectorBackend.registerCommand(&quot;Page.setEmulatedMedia&quot;, [{&quot;name&quot;: &quot;media&quot;, &quot;type&quot;: &quot;string&quot;, &quot;optional&quot;: false}], []);
</span><span class="cx"> InspectorBackend.registerCommand(&quot;Page.getCompositingBordersVisible&quot;, [], [&quot;result&quot;]);
</span><span class="cx"> InspectorBackend.registerCommand(&quot;Page.setCompositingBordersVisible&quot;, [{&quot;name&quot;: &quot;visible&quot;, &quot;type&quot;: &quot;boolean&quot;, &quot;optional&quot;: false}], []);
</span><del>-InspectorBackend.registerCommand(&quot;Page.captureScreenshot&quot;, [], [&quot;data&quot;]);
</del><span class="cx"> InspectorBackend.registerCommand(&quot;Page.handleJavaScriptDialog&quot;, [{&quot;name&quot;: &quot;accept&quot;, &quot;type&quot;: &quot;boolean&quot;, &quot;optional&quot;: false}, {&quot;name&quot;: &quot;promptText&quot;, &quot;type&quot;: &quot;string&quot;, &quot;optional&quot;: true}], []);
</span><span class="cx"> 
</span><span class="cx"> // Runtime.
</span></span></pre></div>
<a id="trunkSourceWebInspectorUIVersionsInspectoriOS70json"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebInspectorUI/Versions/Inspector-iOS-7.0.json (160201 => 160202)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebInspectorUI/Versions/Inspector-iOS-7.0.json        2013-12-06 00:25:44 UTC (rev 160201)
+++ trunk/Source/WebInspectorUI/Versions/Inspector-iOS-7.0.json        2013-12-06 00:57:43 UTC (rev 160202)
</span><span class="lines">@@ -411,13 +411,6 @@
</span><span class="cx">                 ]
</span><span class="cx">             },
</span><span class="cx">             {
</span><del>-                &quot;name&quot;: &quot;captureScreenshot&quot;,
-                &quot;description&quot;: &quot;Capture page screenshot.&quot;,
-                &quot;returns&quot;: [
-                    { &quot;name&quot;: &quot;data&quot;, &quot;type&quot;: &quot;string&quot;, &quot;description&quot;: &quot;Base64-encoded image data (PNG).&quot; }
-                ]
-            },
-            {
</del><span class="cx">                 &quot;name&quot;: &quot;handleJavaScriptDialog&quot;,
</span><span class="cx">                 &quot;description&quot;: &quot;Accepts or dismisses a JavaScript initiated dialog (alert, confirm, prompt, or onbeforeunload).&quot;,
</span><span class="cx">                 &quot;parameters&quot;: [
</span></span></pre>
</div>
</div>

</body>
</html>