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

Side by Side Diff: chrome/browser/resources/tracing/overlay.js

Issue 7555005: Moving the contents of chrome://gpu Profiling to chrome://tracing. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 9 years, 4 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 /** 6 /**
7 * @fileoverview Implements an element that is hidden by default, but 7 * @fileoverview Implements an element that is hidden by default, but
8 * when shown, dims and (attempts to) disable the main document. 8 * when shown, dims and (attempts to) disable the main document.
9 * 9 *
10 * You can turn any div into an overlay. Note that while an 10 * You can turn any div into an overlay. Note that while an
11 * overlay element is shown, its parent is changed. Hiding the overlay 11 * overlay element is shown, its parent is changed. Hiding the overlay
12 * restores its original parentage. 12 * restores its original parentage.
13 * 13 *
14 */ 14 */
15 cr.define('gpu', function() { 15 cr.define('tracing', function() {
16 /** 16 /**
17 * Manages a full-window div that darkens the window, disables 17 * Manages a full-window div that darkens the window, disables
18 * input, and hosts the currently-visible overlays. You shouldn't 18 * input, and hosts the currently-visible overlays. You shouldn't
19 * have to instantiate this directly --- it gets set automatically. 19 * have to instantiate this directly --- it gets set automatically.
20 * @param {Object=} opt_propertyBag Optional properties. 20 * @param {Object=} opt_propertyBag Optional properties.
21 * @constructor 21 * @constructor
22 * @extends {HTMLDivElement} 22 * @extends {HTMLDivElement}
23 */ 23 */
24 var OverlayRoot = cr.ui.define('div'); 24 var OverlayRoot = cr.ui.define('div');
25 OverlayRoot.prototype = { 25 OverlayRoot.prototype = {
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 * Shows and hides the overlay. Note that while visible == true, the overlay 168 * Shows and hides the overlay. Note that while visible == true, the overlay
169 * element will be tempoarily reparented to another place in the DOM. 169 * element will be tempoarily reparented to another place in the DOM.
170 */ 170 */
171 cr.defineProperty(Overlay, 'visible', cr.PropertyKind.BOOL_ATTR, 171 cr.defineProperty(Overlay, 'visible', cr.PropertyKind.BOOL_ATTR,
172 Overlay.prototype.onVisibleChanged_); 172 Overlay.prototype.onVisibleChanged_);
173 173
174 return { 174 return {
175 Overlay: Overlay 175 Overlay: Overlay
176 }; 176 };
177 }); 177 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/tracing/overlay.css ('k') | chrome/browser/resources/tracing/overlay_test.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698