Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(98)

Side by Side Diff: webkit/glue/devtools/js/devtools.js

Issue 526001: Mac: Make devtools window dockable. (Closed)
Patch Set: copyediting Created 10 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ipc/ipc_message.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 /** 5 /**
6 * @fileoverview Tools is a main class that wires all components of the 6 * @fileoverview Tools is a main class that wires all components of the
7 * DevTools frontend together. It is also responsible for overriding existing 7 * DevTools frontend together. It is also responsible for overriding existing
8 * WebInspector functionality while it is getting upstreamed into WebCore. 8 * WebInspector functionality while it is getting upstreamed into WebCore.
9 */ 9 */
10 goog.provide('devtools.Tools'); 10 goog.provide('devtools.Tools');
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 var oldLoaded = WebInspector.loaded; 169 var oldLoaded = WebInspector.loaded;
170 WebInspector.loaded = function() { 170 WebInspector.loaded = function() {
171 devtools.tools = new devtools.ToolsAgent(); 171 devtools.tools = new devtools.ToolsAgent();
172 devtools.tools.reset(); 172 devtools.tools.reset();
173 173
174 Preferences.ignoreWhitespace = false; 174 Preferences.ignoreWhitespace = false;
175 Preferences.samplingCPUProfiler = true; 175 Preferences.samplingCPUProfiler = true;
176 Preferences.heapProfilerPresent = true; 176 Preferences.heapProfilerPresent = true;
177 oldLoaded.call(this); 177 oldLoaded.call(this);
178 178
179 // Hide dock button on Mac OS.
180 // TODO(pfeldman): remove once Mac OS docking is implemented.
181 if (InspectorFrontendHost.platform().indexOf('mac') == 0) {
182 document.getElementById('dock-status-bar-item').addStyleClass('hidden');
183 }
184
185 InspectorFrontendHost.loaded(); 179 InspectorFrontendHost.loaded();
186 }; 180 };
187 181
188 182
189 (function() { 183 (function() {
190 184
191 /** 185 /**
192 * Handles an F3 keydown event to focus the Inspector search box. 186 * Handles an F3 keydown event to focus the Inspector search box.
193 * @param {KeyboardEvent} event Event to optionally handle 187 * @param {KeyboardEvent} event Event to optionally handle
194 * @return {boolean} whether the event has been handled 188 * @return {boolean} whether the event has been handled
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after
503 (function() { 497 (function() {
504 var originalAddToFrame = InspectorFrontendHost.addResourceSourceToFrame; 498 var originalAddToFrame = InspectorFrontendHost.addResourceSourceToFrame;
505 InspectorFrontendHost.addResourceSourceToFrame = function(identifier, element) { 499 InspectorFrontendHost.addResourceSourceToFrame = function(identifier, element) {
506 var resource = WebInspector.resources[identifier]; 500 var resource = WebInspector.resources[identifier];
507 if (!resource) { 501 if (!resource) {
508 return; 502 return;
509 } 503 }
510 originalAddToFrame.call(this, identifier, resource.mimeType, element); 504 originalAddToFrame.call(this, identifier, resource.mimeType, element);
511 }; 505 };
512 })(); 506 })();
OLDNEW
« no previous file with comments | « ipc/ipc_message.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698