<!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>[183335] trunk/Source/WebInspectorUI</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/183335">183335</a></dd>
<dt>Author</dt> <dd>timothy@apple.com</dd>
<dt>Date</dt> <dd>2015-04-25 18:23:04 -0700 (Sat, 25 Apr 2015)</dd>
</dl>

<h3>Log Message</h3>
<pre>Web Inspector: Switch over to a tab based UI
https://bugs.webkit.org/show_bug.cgi?id=144154

Reviewed by Joseph Pecoraro.

* UserInterface/Base/Main.js:
(WebInspector.loaded):
(WebInspector.contentLoaded):
(WebInspector._tabContentViewForType):
(WebInspector._rememberOpenTabs):
(WebInspector._windowResized):
(WebInspector._tabBrowserSizeDidChange):
(WebInspector._quickConsoleDidResize):
(WebInspector._sidebarWidthDidChange):
(WebInspector._tabBrowserSelectedTabContentViewDidChange):
(WebInspector._inspectModeStateChanged):
(WebInspector._focusedContentView):
* UserInterface/Main.html:
* UserInterface/Views/Main.css:
(#tab-browser):</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkSourceWebInspectorUIChangeLog">trunk/Source/WebInspectorUI/ChangeLog</a></li>
<li><a href="#trunkSourceWebInspectorUILocalizationsenlprojlocalizedStringsjs">trunk/Source/WebInspectorUI/Localizations/en.lproj/localizedStrings.js</a></li>
<li><a href="#trunkSourceWebInspectorUIUserInterfaceBaseMainjs">trunk/Source/WebInspectorUI/UserInterface/Base/Main.js</a></li>
<li><a href="#trunkSourceWebInspectorUIUserInterfaceMainhtml">trunk/Source/WebInspectorUI/UserInterface/Main.html</a></li>
<li><a href="#trunkSourceWebInspectorUIUserInterfaceViewsMaincss">trunk/Source/WebInspectorUI/UserInterface/Views/Main.css</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkSourceWebInspectorUIChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebInspectorUI/ChangeLog (183334 => 183335)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebInspectorUI/ChangeLog        2015-04-26 01:22:33 UTC (rev 183334)
+++ trunk/Source/WebInspectorUI/ChangeLog        2015-04-26 01:23:04 UTC (rev 183335)
</span><span class="lines">@@ -1,3 +1,26 @@
</span><ins>+2015-04-24  Timothy Hatcher  &lt;timothy@apple.com&gt;
+
+        Web Inspector: Switch over to a tab based UI
+        https://bugs.webkit.org/show_bug.cgi?id=144154
+
+        Reviewed by Joseph Pecoraro.
+
+        * UserInterface/Base/Main.js:
+        (WebInspector.loaded):
+        (WebInspector.contentLoaded):
+        (WebInspector._tabContentViewForType):
+        (WebInspector._rememberOpenTabs):
+        (WebInspector._windowResized):
+        (WebInspector._tabBrowserSizeDidChange):
+        (WebInspector._quickConsoleDidResize):
+        (WebInspector._sidebarWidthDidChange):
+        (WebInspector._tabBrowserSelectedTabContentViewDidChange):
+        (WebInspector._inspectModeStateChanged):
+        (WebInspector._focusedContentView):
+        * UserInterface/Main.html:
+        * UserInterface/Views/Main.css:
+        (#tab-browser):
+
</ins><span class="cx"> 2015-04-23  Timothy Hatcher  &lt;timothy@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         Web Inspector: Remove Main.js code we don't need for Tabs
</span></span></pre></div>
<a id="trunkSourceWebInspectorUILocalizationsenlprojlocalizedStringsjs"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebInspectorUI/Localizations/en.lproj/localizedStrings.js (183334 => 183335)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebInspectorUI/Localizations/en.lproj/localizedStrings.js        2015-04-26 01:22:33 UTC (rev 183334)
+++ trunk/Source/WebInspectorUI/Localizations/en.lproj/localizedStrings.js        2015-04-26 01:23:04 UTC (rev 183335)
</span><span class="lines">@@ -97,6 +97,7 @@
</span><span class="cx"> localizedStrings[&quot;Clear Timeline&quot;] = &quot;Clear Timeline&quot;;
</span><span class="cx"> localizedStrings[&quot;Clear log (%s or %s)&quot;] = &quot;Clear log (%s or %s)&quot;;
</span><span class="cx"> localizedStrings[&quot;Click Listener&quot;] = &quot;Click Listener&quot;;
</span><ins>+localizedStrings[&quot;Click to close this tab&quot;] = &quot;Click to close this tab&quot;;
</ins><span class="cx"> localizedStrings[&quot;Click to open a colorpicker. Shift-click to change color format.&quot;] = &quot;Click to open a colorpicker. Shift-click to change color format.&quot;;
</span><span class="cx"> localizedStrings[&quot;Clickable&quot;] = &quot;Clickable&quot;;
</span><span class="cx"> localizedStrings[&quot;Close&quot;] = &quot;Close&quot;;
</span><span class="lines">@@ -113,9 +114,9 @@
</span><span class="cx"> localizedStrings[&quot;Conditional expression&quot;] = &quot;Conditional expression&quot;;
</span><span class="cx"> localizedStrings[&quot;Console&quot;] = &quot;Console&quot;;
</span><span class="cx"> localizedStrings[&quot;Console Profile Recorded&quot;] = &quot;Console Profile Recorded&quot;;
</span><del>-localizedStrings[&quot;Console errors, click to show the Console&quot;] = &quot;Console errors, click to show the Console&quot;;
-localizedStrings[&quot;Console logs, click to show the Console&quot;] = &quot;Console logs, click to show the Console&quot;;
-localizedStrings[&quot;Console warnings, click to show the Console&quot;] = &quot;Console warnings, click to show the Console&quot;;
</del><ins>+localizedStrings[&quot;Console errors, click to show the Console tab&quot;] = &quot;Console errors, click to show the Console tab&quot;;
+localizedStrings[&quot;Console logs, click to show the Console tab&quot;] = &quot;Console logs, click to show the Console tab&quot;;
+localizedStrings[&quot;Console warnings, click to show the Console tab&quot;] = &quot;Console warnings, click to show the Console tab&quot;;
</ins><span class="cx"> localizedStrings[&quot;Container Regions&quot;] = &quot;Container Regions&quot;;
</span><span class="cx"> localizedStrings[&quot;Content&quot;] = &quot;Content&quot;;
</span><span class="cx"> localizedStrings[&quot;Content Flow&quot;] = &quot;Content Flow&quot;;
</span><span class="lines">@@ -128,6 +129,7 @@
</span><span class="cx"> localizedStrings[&quot;Copy Row&quot;] = &quot;Copy Row&quot;;
</span><span class="cx"> localizedStrings[&quot;Copy as HTML&quot;] = &quot;Copy as HTML&quot;;
</span><span class="cx"> localizedStrings[&quot;Could not fetch properties. Object may no longer exist.&quot;] = &quot;Could not fetch properties. Object may no longer exist.&quot;;
</span><ins>+localizedStrings[&quot;Create a new tab&quot;] = &quot;Create a new tab&quot;;
</ins><span class="cx"> localizedStrings[&quot;DOM Tree&quot;] = &quot;DOM Tree&quot;;
</span><span class="cx"> localizedStrings[&quot;Data&quot;] = &quot;Data&quot;;
</span><span class="cx"> localizedStrings[&quot;Data returned from the database is too large.&quot;] = &quot;Data returned from the database is too large.&quot;;
</span><span class="lines">@@ -148,7 +150,6 @@
</span><span class="cx"> localizedStrings[&quot;Disable Breakpoints&quot;] = &quot;Disable Breakpoints&quot;;
</span><span class="cx"> localizedStrings[&quot;Disable all breakpoints (%s)&quot;] = &quot;Disable all breakpoints (%s)&quot;;
</span><span class="cx"> localizedStrings[&quot;Disable paint flashing&quot;] = &quot;Disable paint flashing&quot;;
</span><del>-localizedStrings[&quot;Disable point to inspect mode (%s)&quot;] = &quot;Disable point to inspect mode (%s)&quot;;
</del><span class="cx"> localizedStrings[&quot;Disabled&quot;] = &quot;Disabled&quot;;
</span><span class="cx"> localizedStrings[&quot;Dock to bottom of window&quot;] = &quot;Dock to bottom of window&quot;;
</span><span class="cx"> localizedStrings[&quot;Dock to right of window&quot;] = &quot;Dock to right of window&quot;;
</span><span class="lines">@@ -158,7 +159,6 @@
</span><span class="cx"> localizedStrings[&quot;Documents&quot;] = &quot;Documents&quot;;
</span><span class="cx"> localizedStrings[&quot;Domain&quot;] = &quot;Domain&quot;;
</span><span class="cx"> localizedStrings[&quot;Done&quot;] = &quot;Done&quot;;
</span><del>-localizedStrings[&quot;Download Web Archive&quot;] = &quot;Download Web Archive&quot;;
</del><span class="cx"> localizedStrings[&quot;Duration&quot;] = &quot;Duration&quot;;
</span><span class="cx"> localizedStrings[&quot;Dynamically calculated for the parent element&quot;] = &quot;Dynamically calculated for the parent element&quot;;
</span><span class="cx"> localizedStrings[&quot;Dynamically calculated for the selected element&quot;] = &quot;Dynamically calculated for the selected element&quot;;
</span><span class="lines">@@ -195,11 +195,11 @@
</span><span class="cx"> localizedStrings[&quot;Element is masked and composited descendants&quot;] = &quot;Element is masked and composited descendants&quot;;
</span><span class="cx"> localizedStrings[&quot;Element is the root element&quot;] = &quot;Element is the root element&quot;;
</span><span class="cx"> localizedStrings[&quot;Element overlaps other compositing element&quot;] = &quot;Element overlaps other compositing element&quot;;
</span><ins>+localizedStrings[&quot;Elements&quot;] = &quot;Elements&quot;;
</ins><span class="cx"> localizedStrings[&quot;Enable Breakpoint&quot;] = &quot;Enable Breakpoint&quot;;
</span><span class="cx"> localizedStrings[&quot;Enable Breakpoints&quot;] = &quot;Enable Breakpoints&quot;;
</span><span class="cx"> localizedStrings[&quot;Enable all breakpoints (%s)&quot;] = &quot;Enable all breakpoints (%s)&quot;;
</span><span class="cx"> localizedStrings[&quot;Enable paint flashing&quot;] = &quot;Enable paint flashing&quot;;
</span><del>-localizedStrings[&quot;Enable point to inspect mode (%s)&quot;] = &quot;Enable point to inspect mode (%s)&quot;;
</del><span class="cx"> localizedStrings[&quot;Encoded&quot;] = &quot;Encoded&quot;;
</span><span class="cx"> localizedStrings[&quot;Encoding&quot;] = &quot;Encoding&quot;;
</span><span class="cx"> localizedStrings[&quot;End Capturing&quot;] = &quot;End Capturing&quot;;
</span><span class="lines">@@ -245,12 +245,9 @@
</span><span class="cx"> localizedStrings[&quot;Height&quot;] = &quot;Height&quot;;
</span><span class="cx"> localizedStrings[&quot;Hide Replay Controls&quot;] = &quot;Hide Replay Controls&quot;;
</span><span class="cx"> localizedStrings[&quot;Hide compositing borders&quot;] = &quot;Hide compositing borders&quot;;
</span><del>-localizedStrings[&quot;Hide console (%s)&quot;] = &quot;Hide console (%s)&quot;;
</del><span class="cx"> localizedStrings[&quot;Hide shadow DOM nodes&quot;] = &quot;Hide shadow DOM nodes&quot;;
</span><del>-localizedStrings[&quot;Hide the %s details sidebar&quot;] = &quot;Hide the %s details sidebar&quot;;
-localizedStrings[&quot;Hide the %s details sidebar (%s)&quot;] = &quot;Hide the %s details sidebar (%s)&quot;;
-localizedStrings[&quot;Hide the %s navigation sidebar&quot;] = &quot;Hide the %s navigation sidebar&quot;;
-localizedStrings[&quot;Hide the %s navigation sidebar (%s)&quot;] = &quot;Hide the %s navigation sidebar (%s)&quot;;
</del><ins>+localizedStrings[&quot;Hide the details sidebar (%s)&quot;] = &quot;Hide the details sidebar (%s)&quot;;
+localizedStrings[&quot;Hide the navigation sidebar (%s)&quot;] = &quot;Hide the navigation sidebar (%s)&quot;;
</ins><span class="cx"> localizedStrings[&quot;Hide type information&quot;] = &quot;Hide type information&quot;;
</span><span class="cx"> localizedStrings[&quot;Host&quot;] = &quot;Host&quot;;
</span><span class="cx"> localizedStrings[&quot;Icon Only&quot;] = &quot;Icon Only&quot;;
</span><span class="lines">@@ -269,7 +266,6 @@
</span><span class="cx"> localizedStrings[&quot;Inherited From: &quot;] = &quot;Inherited From: &quot;;
</span><span class="cx"> localizedStrings[&quot;Initiator&quot;] = &quot;Initiator&quot;;
</span><span class="cx"> localizedStrings[&quot;Input: &quot;] = &quot;Input: &quot;;
</span><del>-localizedStrings[&quot;Inspect&quot;] = &quot;Inspect&quot;;
</del><span class="cx"> localizedStrings[&quot;Invalid&quot;] = &quot;Invalid&quot;;
</span><span class="cx"> localizedStrings[&quot;Invoke getter&quot;] = &quot;Invoke getter&quot;;
</span><span class="cx"> localizedStrings[&quot;JavaScript &amp; Events&quot;] = &quot;JavaScript &amp; Events&quot;;
</span><span class="lines">@@ -382,7 +378,6 @@
</span><span class="cx"> localizedStrings[&quot;Refresh&quot;] = &quot;Refresh&quot;;
</span><span class="cx"> localizedStrings[&quot;Region Flow&quot;] = &quot;Region Flow&quot;;
</span><span class="cx"> localizedStrings[&quot;Region announced in its entirety.&quot;] = &quot;Region announced in its entirety.&quot;;
</span><del>-localizedStrings[&quot;Reload page (%s)\nReload ignoring cache (%s)&quot;] = &quot;Reload page (%s)\nReload ignoring cache (%s)&quot;;
</del><span class="cx"> localizedStrings[&quot;Removals&quot;] = &quot;Removals&quot;;
</span><span class="cx"> localizedStrings[&quot;Remove this breakpoint action&quot;] = &quot;Remove this breakpoint action&quot;;
</span><span class="cx"> localizedStrings[&quot;Rendering Frames&quot;] = &quot;Rendering Frames&quot;;
</span><span class="lines">@@ -398,11 +393,10 @@
</span><span class="cx"> localizedStrings[&quot;Resources&quot;] = &quot;Resources&quot;;
</span><span class="cx"> localizedStrings[&quot;Response&quot;] = &quot;Response&quot;;
</span><span class="cx"> localizedStrings[&quot;Response Headers&quot;] = &quot;Response Headers&quot;;
</span><del>-localizedStrings[&quot;Restart (%s)&quot;] = &quot;Restart (%s)&quot;;
</del><span class="cx"> localizedStrings[&quot;Return type for anonymous function&quot;] = &quot;Return type for anonymous function&quot;;
</span><span class="cx"> localizedStrings[&quot;Return type for function: %s&quot;] = &quot;Return type for function: %s&quot;;
</span><span class="cx"> localizedStrings[&quot;Reveal in DOM Tree&quot;] = &quot;Reveal in DOM Tree&quot;;
</span><del>-localizedStrings[&quot;Reveal in Debugger Navigation Sidebar&quot;] = &quot;Reveal in Debugger Navigation Sidebar&quot;;
</del><ins>+localizedStrings[&quot;Reveal in Debugger Tab&quot;] = &quot;Reveal in Debugger Tab&quot;;
</ins><span class="cx"> localizedStrings[&quot;Reveal in Original Resource&quot;] = &quot;Reveal in Original Resource&quot;;
</span><span class="cx"> localizedStrings[&quot;Role&quot;] = &quot;Role&quot;;
</span><span class="cx"> localizedStrings[&quot;Rules&quot;] = &quot;Rules&quot;;
</span><span class="lines">@@ -427,24 +421,21 @@
</span><span class="cx"> localizedStrings[&quot;Session Storage&quot;] = &quot;Session Storage&quot;;
</span><span class="cx"> localizedStrings[&quot;Set to Automatically Continue&quot;] = &quot;Set to Automatically Continue&quot;;
</span><span class="cx"> localizedStrings[&quot;Setter&quot;] = &quot;Setter&quot;;
</span><ins>+localizedStrings[&quot;Settings&quot;] = &quot;Settings&quot;;
</ins><span class="cx"> localizedStrings[&quot;Shadow Content&quot;] = &quot;Shadow Content&quot;;
</span><span class="cx"> localizedStrings[&quot;Shared Focus&quot;] = &quot;Shared Focus&quot;;
</span><span class="cx"> localizedStrings[&quot;Show All&quot;] = &quot;Show All&quot;;
</span><span class="cx"> localizedStrings[&quot;Show All Nodes (%d More)&quot;] = &quot;Show All Nodes (%d More)&quot;;
</span><span class="cx"> localizedStrings[&quot;Show Replay Controls&quot;] = &quot;Show Replay Controls&quot;;
</span><span class="cx"> localizedStrings[&quot;Show compositing borders&quot;] = &quot;Show compositing borders&quot;;
</span><del>-localizedStrings[&quot;Show console (%s)&quot;] = &quot;Show console (%s)&quot;;
-localizedStrings[&quot;Show full-height console&quot;] = &quot;Show full-height console&quot;;
</del><ins>+localizedStrings[&quot;Show console tab&quot;] = &quot;Show console tab&quot;;
</ins><span class="cx"> localizedStrings[&quot;Show only resources with breakpoints.&quot;] = &quot;Show only resources with breakpoints.&quot;;
</span><span class="cx"> localizedStrings[&quot;Show only resources with issues.&quot;] = &quot;Show only resources with issues.&quot;;
</span><span class="cx"> localizedStrings[&quot;Show resources with and without breakpoints.&quot;] = &quot;Show resources with and without breakpoints.&quot;;
</span><span class="cx"> localizedStrings[&quot;Show resources with and without issues.&quot;] = &quot;Show resources with and without issues.&quot;;
</span><span class="cx"> localizedStrings[&quot;Show shadow DOM nodes&quot;] = &quot;Show shadow DOM nodes&quot;;
</span><del>-localizedStrings[&quot;Show split console&quot;] = &quot;Show split console&quot;;
-localizedStrings[&quot;Show the %s details sidebar&quot;] = &quot;Show the %s details sidebar&quot;;
-localizedStrings[&quot;Show the %s details sidebar (%s)&quot;] = &quot;Show the %s details sidebar (%s)&quot;;
-localizedStrings[&quot;Show the %s navigation sidebar&quot;] = &quot;Show the %s navigation sidebar&quot;;
-localizedStrings[&quot;Show the %s navigation sidebar (%s)&quot;] = &quot;Show the %s navigation sidebar (%s)&quot;;
</del><ins>+localizedStrings[&quot;Show the details sidebar (%s)&quot;] = &quot;Show the details sidebar (%s)&quot;;
+localizedStrings[&quot;Show the navigation sidebar (%s)&quot;] = &quot;Show the navigation sidebar (%s)&quot;;
</ins><span class="cx"> localizedStrings[&quot;Show type information&quot;] = &quot;Show type information&quot;;
</span><span class="cx"> localizedStrings[&quot;Size&quot;] = &quot;Size&quot;;
</span><span class="cx"> localizedStrings[&quot;Small Icons&quot;] = &quot;Small Icons&quot;;
</span><span class="lines">@@ -475,7 +466,6 @@
</span><span class="cx"> localizedStrings[&quot;Text Only&quot;] = &quot;Text Only&quot;;
</span><span class="cx"> localizedStrings[&quot;The  %s \ntable is empty.&quot;] = &quot;The  %s \ntable is empty.&quot;;
</span><span class="cx"> localizedStrings[&quot;Time&quot;] = &quot;Time&quot;;
</span><del>-localizedStrings[&quot;Time until the load event fired, click to show the Network Requests timeline&quot;] = &quot;Time until the load event fired, click to show the Network Requests timeline&quot;;
</del><span class="cx"> localizedStrings[&quot;Timeline Events&quot;] = &quot;Timeline Events&quot;;
</span><span class="cx"> localizedStrings[&quot;Timeline Recording %d&quot;] = &quot;Timeline Recording %d&quot;;
</span><span class="cx"> localizedStrings[&quot;Timelines&quot;] = &quot;Timelines&quot;;
</span><span class="lines">@@ -486,8 +476,7 @@
</span><span class="cx"> localizedStrings[&quot;Timer Installed&quot;] = &quot;Timer Installed&quot;;
</span><span class="cx"> localizedStrings[&quot;Timer Removed&quot;] = &quot;Timer Removed&quot;;
</span><span class="cx"> localizedStrings[&quot;Total Time&quot;] = &quot;Total Time&quot;;
</span><del>-localizedStrings[&quot;Total number of resources, click to show the Resources navigation sidebar&quot;] = &quot;Total number of resources, click to show the Resources navigation sidebar&quot;;
-localizedStrings[&quot;Total size of all resources, click to show the Network Requests timeline&quot;] = &quot;Total size of all resources, click to show the Network Requests timeline&quot;;
</del><ins>+localizedStrings[&quot;Total number of resources, click to show the Resources tab&quot;] = &quot;Total number of resources, click to show the Resources tab&quot;;
</ins><span class="cx"> localizedStrings[&quot;Transfered&quot;] = &quot;Transfered&quot;;
</span><span class="cx"> localizedStrings[&quot;Triggered Breakpoint&quot;] = &quot;Triggered Breakpoint&quot;;
</span><span class="cx"> localizedStrings[&quot;Type&quot;] = &quot;Type&quot;;
</span></span></pre></div>
<a id="trunkSourceWebInspectorUIUserInterfaceBaseMainjs"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebInspectorUI/UserInterface/Base/Main.js (183334 => 183335)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebInspectorUI/UserInterface/Base/Main.js        2015-04-26 01:22:33 UTC (rev 183334)
+++ trunk/Source/WebInspectorUI/UserInterface/Base/Main.js        2015-04-26 01:23:04 UTC (rev 183335)
</span><span class="lines">@@ -151,6 +151,9 @@
</span><span class="cx"> 
</span><span class="cx">     this._dockButtonToggledSetting = new WebInspector.Setting(&quot;dock-button-toggled&quot;, false);
</span><span class="cx"> 
</span><ins>+    this._openTabsSetting = new WebInspector.Setting(&quot;open-tabs&quot;, [&quot;elements&quot;, &quot;resources&quot;, &quot;timeline&quot;, &quot;debugger&quot;, &quot;console&quot;]);
+    this._selectedTabIndexSetting = new WebInspector.Setting(&quot;selected-tab-index&quot;, 0);
+
</ins><span class="cx">     this.showShadowDOMSetting = new WebInspector.Setting(&quot;show-shadow-dom&quot;, false);
</span><span class="cx">     this.showReplayInterfaceSetting = new WebInspector.Setting(&quot;show-web-replay&quot;, false);
</span><span class="cx"> 
</span><span class="lines">@@ -204,6 +207,8 @@
</span><span class="cx">     this.toolbar.addEventListener(WebInspector.Toolbar.Event.DisplayModeDidChange, this._toolbarDisplayModeDidChange, this);
</span><span class="cx">     this.toolbar.addEventListener(WebInspector.Toolbar.Event.SizeModeDidChange, this._toolbarSizeModeDidChange, this);
</span><span class="cx"> 
</span><ins>+    this.tabBar = new WebInspector.TabBar(document.getElementById(&quot;tab-bar&quot;));
+
</ins><span class="cx">     var contentElement = document.getElementById(&quot;content&quot;);
</span><span class="cx">     contentElement.setAttribute(&quot;role&quot;, &quot;main&quot;);
</span><span class="cx">     contentElement.setAttribute(&quot;aria-label&quot;, WebInspector.UIString(&quot;Content&quot;));
</span><span class="lines">@@ -287,6 +292,23 @@
</span><span class="cx">     this._updateDockNavigationItems();
</span><span class="cx">     this._updateToolbarHeight();
</span><span class="cx"> 
</span><ins>+    for (var tabType of this._openTabsSetting.value) {
+        var tabContentView = this._tabContentViewForType(tabType);
+        if (!tabContentView)
+            continue;
+        this.tabBrowser.addTabForContentView(tabContentView, true);
+    }
+
+    this.tabBar.selectedTabBarItem = this._selectedTabIndexSetting.value;
+
+    if (!this.tabBar.selectedTabBarItem)
+        this.tabBar.selectedTabBarItem = 0;
+
+    // Listen to the events after restoring the saved tabs to avoid recursion.
+    this.tabBar.addEventListener(WebInspector.TabBar.Event.TabBarItemAdded, this._rememberOpenTabs, this);
+    this.tabBar.addEventListener(WebInspector.TabBar.Event.TabBarItemRemoved, this._rememberOpenTabs, this);
+    this.tabBar.addEventListener(WebInspector.TabBar.Event.TabBarItemsReordered, this._rememberOpenTabs, this);
+
</ins><span class="cx">     // Signal that the frontend is now ready to receive messages.
</span><span class="cx">     InspectorFrontendAPI.loadCompleted();
</span><span class="cx"> 
</span><span class="lines">@@ -304,6 +326,41 @@
</span><span class="cx">     this.runBootstrapOperations();
</span><span class="cx"> };
</span><span class="cx"> 
</span><ins>+WebInspector._tabContentViewForType = function(tabType)
+{
+    switch (tabType) {
+    case WebInspector.ElementsTabContentView.Type:
+        return new WebInspector.ElementsTabContentView;
+    case WebInspector.ResourcesTabContentView.Type:
+        return new WebInspector.ResourcesTabContentView;
+    case WebInspector.TimelineTabContentView.Type:
+        return new WebInspector.TimelineTabContentView;
+    case WebInspector.DebuggerTabContentView.Type:
+        return new WebInspector.DebuggerTabContentView;
+    case WebInspector.ConsoleTabContentView.Type:
+        return new WebInspector.ConsoleTabContentView;
+    default:
+        console.error(&quot;Unknown tab type&quot;, tabType);
+    }
+
+    return null;
+};
+
+WebInspector._rememberOpenTabs = function()
+{
+    var openTabs = [];
+
+    for (var tabBarItem of this.tabBar.tabBarItems) {
+        var tabContentView = tabBarItem.representedObject;
+        if (tabContentView instanceof WebInspector.SettingsTabContentView)
+            continue;
+        console.assert(tabContentView.type, &quot;Tab type can't be null, undefined, or empty string&quot;, tabContentView.type, tabContentView);
+        openTabs.push(tabContentView.type);
+    }
+
+    this._openTabsSetting.value = openTabs;
+};
+
</ins><span class="cx"> WebInspector.activateExtraDomains = function(domains)
</span><span class="cx"> {
</span><span class="cx">     this.hasExtraDomains = true;
</span><span class="lines">@@ -922,8 +979,7 @@
</span><span class="cx"> WebInspector._windowResized = function(event)
</span><span class="cx"> {
</span><span class="cx">     this.toolbar.updateLayout();
</span><del>-
-    this._contentBrowserSizeDidChange(event);
</del><ins>+    this._tabBrowserSizeDidChange();
</ins><span class="cx"> };
</span><span class="cx"> 
</span><span class="cx"> WebInspector._updateModifierKeys = function(event)
</span><span class="lines">@@ -990,21 +1046,21 @@
</span><span class="cx">     this.undockButtonNavigationItem.toggled = this._dockButtonToggledSetting.value;
</span><span class="cx"> };
</span><span class="cx"> 
</span><del>-WebInspector._contentBrowserSizeDidChange = function(event)
</del><ins>+WebInspector._tabBrowserSizeDidChange = function()
</ins><span class="cx"> {
</span><del>-    this.contentBrowser.updateLayout();
</del><ins>+    this.tabBrowser.updateLayout();
</ins><span class="cx">     this.splitContentBrowser.updateLayout();
</span><span class="cx">     this.quickConsole.updateLayout();
</span><span class="cx"> };
</span><span class="cx"> 
</span><span class="cx"> WebInspector._quickConsoleDidResize = function(event)
</span><span class="cx"> {
</span><del>-    this.contentBrowser.updateLayout();
</del><ins>+    this.tabBrowser.updateLayout();
</ins><span class="cx"> };
</span><span class="cx"> 
</span><span class="cx"> WebInspector._sidebarWidthDidChange = function(event)
</span><span class="cx"> {
</span><del>-    this._contentBrowserSizeDidChange(event);
</del><ins>+    this._tabBrowserSizeDidChange();
</ins><span class="cx"> };
</span><span class="cx"> 
</span><span class="cx"> WebInspector._updateToolbarHeight = function()
</span><span class="lines">@@ -1043,6 +1099,18 @@
</span><span class="cx">     this._updateToolbarHeight();
</span><span class="cx"> };
</span><span class="cx"> 
</span><ins>+WebInspector._tabBrowserSelectedTabContentViewDidChange = function(event)
+{
+    if (this.tabBar.selectedTabBarItem)
+        this._selectedTabIndexSetting.value = this.tabBar.tabBarItems.indexOf(this.tabBar.selectedTabBarItem);
+
+    if (!this.doesCurrentTabSupportSplitContentBrowser())
+        this.hideSplitConsole();
+
+    if (!this.isShowingSplitConsole())
+        this.quickConsole.consoleLogVisibilityChanged(this.isShowingConsoleTab());
+};
+
</ins><span class="cx"> WebInspector._initializeWebSocketIfNeeded = function()
</span><span class="cx"> {
</span><span class="cx">     if (!InspectorFrontendHost.initializeWebSocket)
</span><span class="lines">@@ -1252,7 +1320,7 @@
</span><span class="cx"> 
</span><span class="cx"> WebInspector._inspectModeStateChanged = function(event)
</span><span class="cx"> {
</span><del>-    this._inspectModeToolbarButton.activated = WebInspector.domTreeManager.inspectModeEnabled;
</del><ins>+//    this._inspectModeToolbarButton.activated = WebInspector.domTreeManager.inspectModeEnabled;
</ins><span class="cx"> };
</span><span class="cx"> 
</span><span class="cx"> WebInspector._toggleInspectMode = function(event)
</span><span class="lines">@@ -1282,8 +1350,8 @@
</span><span class="cx"> 
</span><span class="cx"> WebInspector._focusedContentView = function()
</span><span class="cx"> {
</span><del>-    if (this.contentBrowser.element.isSelfOrAncestor(this.currentFocusElement))
-        return this.contentBrowser.currentContentView;
</del><ins>+    if (this.tabBrowser.element.isSelfOrAncestor(this.currentFocusElement))
+        return this.tabBrowser.selectedTabContentView;
</ins><span class="cx">     if (this.splitContentBrowser.element.isSelfOrAncestor(this.currentFocusElement))
</span><span class="cx">         return  this.splitContentBrowser.currentContentView;
</span><span class="cx">     return null;
</span></span></pre></div>
<a id="trunkSourceWebInspectorUIUserInterfaceMainhtml"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebInspectorUI/UserInterface/Main.html (183334 => 183335)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebInspectorUI/UserInterface/Main.html        2015-04-26 01:22:33 UTC (rev 183334)
+++ trunk/Source/WebInspectorUI/UserInterface/Main.html        2015-04-26 01:23:04 UTC (rev 183335)
</span><span class="lines">@@ -52,6 +52,7 @@
</span><span class="cx">     &lt;link rel=&quot;stylesheet&quot; href=&quot;Views/ConsoleMessageView.css&quot;&gt;
</span><span class="cx">     &lt;link rel=&quot;stylesheet&quot; href=&quot;Views/ConsolePrompt.css&quot;&gt;
</span><span class="cx">     &lt;link rel=&quot;stylesheet&quot; href=&quot;Views/ContentBrowser.css&quot;&gt;
</span><ins>+    &lt;link rel=&quot;stylesheet&quot; href=&quot;Views/ContentBrowserTabContentView.css&quot;&gt;
</ins><span class="cx">     &lt;link rel=&quot;stylesheet&quot; href=&quot;Views/ContentFlowIcon.css&quot;&gt;
</span><span class="cx">     &lt;link rel=&quot;stylesheet&quot; href=&quot;Views/ContentView.css&quot;&gt;
</span><span class="cx">     &lt;link rel=&quot;stylesheet&quot; href=&quot;Views/ContentViewContainer.css&quot;&gt;
</span><span class="lines">@@ -64,14 +65,14 @@
</span><span class="cx">     &lt;link rel=&quot;stylesheet&quot; href=&quot;Views/DOMTreeDataGrid.css&quot;&gt;
</span><span class="cx">     &lt;link rel=&quot;stylesheet&quot; href=&quot;Views/DOMTreeOutline.css&quot;&gt;
</span><span class="cx">     &lt;link rel=&quot;stylesheet&quot; href=&quot;Views/DashboardContainerView.css&quot;&gt;
</span><del>-    &lt;link rel=&quot;stylesheet&quot; href=&quot;Views/DebuggerDashboardView.css&quot;&gt;
-    &lt;link rel=&quot;stylesheet&quot; href=&quot;Views/DefaultDashboardView.css&quot;&gt;
</del><span class="cx">     &lt;link rel=&quot;stylesheet&quot; href=&quot;Views/DataGrid.css&quot;&gt;
</span><span class="cx">     &lt;link rel=&quot;stylesheet&quot; href=&quot;Views/DatabaseContentView.css&quot;&gt;
</span><span class="cx">     &lt;link rel=&quot;stylesheet&quot; href=&quot;Views/DatabaseIcon.css&quot;&gt;
</span><span class="cx">     &lt;link rel=&quot;stylesheet&quot; href=&quot;Views/DatabaseTableContentView.css&quot;&gt;
</span><span class="cx">     &lt;link rel=&quot;stylesheet&quot; href=&quot;Views/DatabaseTableIcon.css&quot;&gt;
</span><ins>+    &lt;link rel=&quot;stylesheet&quot; href=&quot;Views/DebuggerDashboardView.css&quot;&gt;
</ins><span class="cx">     &lt;link rel=&quot;stylesheet&quot; href=&quot;Views/DebuggerSidebarPanel.css&quot;&gt;
</span><ins>+    &lt;link rel=&quot;stylesheet&quot; href=&quot;Views/DefaultDashboardView.css&quot;&gt;
</ins><span class="cx">     &lt;link rel=&quot;stylesheet&quot; href=&quot;Views/DetailsSection.css&quot;&gt;
</span><span class="cx">     &lt;link rel=&quot;stylesheet&quot; href=&quot;Views/DividerNavigationItem.css&quot;&gt;
</span><span class="cx">     &lt;link rel=&quot;stylesheet&quot; href=&quot;Views/Editing.css&quot;&gt;
</span><span class="lines">@@ -101,10 +102,10 @@
</span><span class="cx">     &lt;link rel=&quot;stylesheet&quot; href=&quot;Views/NetworkTimelineOverviewGraph.css&quot;&gt;
</span><span class="cx">     &lt;link rel=&quot;stylesheet&quot; href=&quot;Views/NetworkTimelineView.css&quot;&gt;
</span><span class="cx">     &lt;link rel=&quot;stylesheet&quot; href=&quot;Views/ObjectPreviewView.css&quot;&gt;
</span><del>-    &lt;link rel=&quot;stylesheet&quot; href=&quot;Views/ObjectTreeView.css&quot;&gt;
</del><span class="cx">     &lt;link rel=&quot;stylesheet&quot; href=&quot;Views/ObjectTreeArrayIndexTreeElement.css&quot;&gt;
</span><span class="cx">     &lt;link rel=&quot;stylesheet&quot; href=&quot;Views/ObjectTreeMapEntryTreeElement.css&quot;&gt;
</span><span class="cx">     &lt;link rel=&quot;stylesheet&quot; href=&quot;Views/ObjectTreePropertyTreeElement.css&quot;&gt;
</span><ins>+    &lt;link rel=&quot;stylesheet&quot; href=&quot;Views/ObjectTreeView.css&quot;&gt;
</ins><span class="cx">     &lt;link rel=&quot;stylesheet&quot; href=&quot;Views/OverviewTimelineView.css&quot;&gt;
</span><span class="cx">     &lt;link rel=&quot;stylesheet&quot; href=&quot;Views/PathComponentIcons.css&quot;&gt;
</span><span class="cx">     &lt;link rel=&quot;stylesheet&quot; href=&quot;Views/Popover.css&quot;&gt;
</span><span class="lines">@@ -133,6 +134,8 @@
</span><span class="cx">     &lt;link rel=&quot;stylesheet&quot; href=&quot;Views/SourceCodeTextEditor.css&quot;&gt;
</span><span class="cx">     &lt;link rel=&quot;stylesheet&quot; href=&quot;Views/StyleRuleIcons.css&quot;&gt;
</span><span class="cx">     &lt;link rel=&quot;stylesheet&quot; href=&quot;Views/SyntaxHighlightingDefaultTheme.css&quot;&gt;
</span><ins>+    &lt;link rel=&quot;stylesheet&quot; href=&quot;Views/TabBar.css&quot;&gt;
+    &lt;link rel=&quot;stylesheet&quot; href=&quot;Views/TabBrowser.css&quot;&gt;
</ins><span class="cx">     &lt;link rel=&quot;stylesheet&quot; href=&quot;Views/TextContentView.css&quot;&gt;
</span><span class="cx">     &lt;link rel=&quot;stylesheet&quot; href=&quot;Views/TextEditor.css&quot;&gt;
</span><span class="cx">     &lt;link rel=&quot;stylesheet&quot; href=&quot;Views/TextResourceContentView.css&quot;&gt;
</span><span class="lines">@@ -311,6 +314,9 @@
</span><span class="cx">     &lt;script src=&quot;Views/Section.js&quot;&gt;&lt;/script&gt;
</span><span class="cx">     &lt;script src=&quot;Views/SidebarPanel.js&quot;&gt;&lt;/script&gt;
</span><span class="cx">     &lt;script src=&quot;Views/StyleDetailsPanel.js&quot;&gt;&lt;/script&gt;
</span><ins>+    &lt;script src=&quot;Views/TabBar.js&quot;&gt;&lt;/script&gt;
+    &lt;script src=&quot;Views/TabBarItem.js&quot;&gt;&lt;/script&gt;
+    &lt;script src=&quot;Views/TabBrowser.js&quot;&gt;&lt;/script&gt;
</ins><span class="cx">     &lt;script src=&quot;Views/TextEditor.js&quot;&gt;&lt;/script&gt;
</span><span class="cx">     &lt;script src=&quot;Views/TimelineOverviewGraph.js&quot;&gt;&lt;/script&gt;
</span><span class="cx">     &lt;script src=&quot;Views/TimelineView.js&quot;&gt;&lt;/script&gt;
</span><span class="lines">@@ -323,19 +329,27 @@
</span><span class="cx">     &lt;script src=&quot;Views/NavigationSidebarPanel.js&quot;&gt;&lt;/script&gt;
</span><span class="cx">     &lt;script src=&quot;Views/PropertiesSection.js&quot;&gt;&lt;/script&gt;
</span><span class="cx">     &lt;script src=&quot;Views/ResourceContentView.js&quot;&gt;&lt;/script&gt;
</span><ins>+    &lt;script src=&quot;Views/TabContentView.js&quot;&gt;&lt;/script&gt;
</ins><span class="cx">     &lt;script src=&quot;Views/TimelineDataGrid.js&quot;&gt;&lt;/script&gt;
</span><span class="cx">     &lt;script src=&quot;Views/TimelineDataGridNode.js&quot;&gt;&lt;/script&gt;
</span><span class="cx"> 
</span><ins>+    &lt;script src=&quot;Views/ContentBrowserTabContentView.js&quot;&gt;&lt;/script&gt;
</ins><span class="cx">     &lt;script src=&quot;Views/DOMDetailsSidebarPanel.js&quot;&gt;&lt;/script&gt;
</span><del>-    &lt;script src=&quot;Views/ObjectTreeBaseTreeElement.js&quot;&gt;&lt;/script&gt;
</del><span class="cx">     &lt;script src=&quot;Views/FolderTreeElement.js&quot;&gt;&lt;/script&gt;
</span><span class="cx">     &lt;script src=&quot;Views/FolderizedTreeElement.js&quot;&gt;&lt;/script&gt;
</span><ins>+    &lt;script src=&quot;Views/ObjectTreeBaseTreeElement.js&quot;&gt;&lt;/script&gt;
</ins><span class="cx">     &lt;script src=&quot;Views/SourceCodeTreeElement.js&quot;&gt;&lt;/script&gt;
</span><span class="cx">     &lt;script src=&quot;Views/StorageTreeElement.js&quot;&gt;&lt;/script&gt;
</span><span class="cx">     &lt;script src=&quot;Views/TimelineRecordTreeElement.js&quot;&gt;&lt;/script&gt;
</span><span class="cx"> 
</span><ins>+    &lt;script src=&quot;Views/ConsoleTabContentView.js&quot;&gt;&lt;/script&gt;
+    &lt;script src=&quot;Views/DebuggerTabContentView.js&quot;&gt;&lt;/script&gt;
</ins><span class="cx">     &lt;script src=&quot;Views/DebuggerTreeElement.js&quot;&gt;&lt;/script&gt;
</span><ins>+    &lt;script src=&quot;Views/ElementsTabContentView.js&quot;&gt;&lt;/script&gt;
</ins><span class="cx">     &lt;script src=&quot;Views/ResourceTreeElement.js&quot;&gt;&lt;/script&gt;
</span><ins>+    &lt;script src=&quot;Views/ResourcesTabContentView.js&quot;&gt;&lt;/script&gt;
+    &lt;script src=&quot;Views/SettingsTabContentView.js&quot;&gt;&lt;/script&gt;
+    &lt;script src=&quot;Views/TimelineTabContentView.js&quot;&gt;&lt;/script&gt;
</ins><span class="cx"> 
</span><span class="cx">     &lt;script src=&quot;Views/DetailsSection.js&quot;&gt;&lt;/script&gt;
</span><span class="cx">     &lt;script src=&quot;Views/DetailsSectionDataGridRow.js&quot;&gt;&lt;/script&gt;
</span><span class="lines">@@ -545,10 +559,11 @@
</span><span class="cx"> &lt;body&gt;
</span><span class="cx"> &lt;div id=&quot;docked-resizer&quot;&gt;&lt;/div&gt;
</span><span class="cx"> &lt;div id=&quot;toolbar&quot;&gt;&lt;/div&gt;
</span><ins>+&lt;div id=&quot;tab-bar&quot;&gt;&lt;/div&gt;
</ins><span class="cx"> &lt;div id=&quot;main&quot;&gt;
</span><span class="cx">     &lt;div id=&quot;navigation-sidebar&quot;&gt;&lt;/div&gt;
</span><span class="cx">     &lt;div id=&quot;content&quot;&gt;
</span><del>-        &lt;div id=&quot;content-browser&quot;&gt;&lt;/div&gt;
</del><ins>+        &lt;div id=&quot;tab-browser&quot;&gt;&lt;/div&gt;
</ins><span class="cx">         &lt;div id=&quot;split-content-browser&quot; class=&quot;hidden&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div id=&quot;quick-console&quot;&gt;&lt;/div&gt;
</span><span class="cx">     &lt;/div&gt;
</span></span></pre></div>
<a id="trunkSourceWebInspectorUIUserInterfaceViewsMaincss"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebInspectorUI/UserInterface/Views/Main.css (183334 => 183335)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebInspectorUI/UserInterface/Views/Main.css        2015-04-26 01:22:33 UTC (rev 183334)
+++ trunk/Source/WebInspectorUI/UserInterface/Views/Main.css        2015-04-26 01:23:04 UTC (rev 183335)
</span><span class="lines">@@ -148,7 +148,7 @@
</span><span class="cx">     flex: 1;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-#content-browser {
</del><ins>+#tab-browser {
</ins><span class="cx">     flex: 1;
</span><span class="cx"> }
</span><span class="cx"> 
</span></span></pre>
</div>
</div>

</body>
</html>