| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2014 Google Inc. All rights reserved. | 2 * Copyright (C) 2014 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 663 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 674 } | 674 } |
| 675 | 675 |
| 676 this._rects.forEach(checkIntersection); | 676 this._rects.forEach(checkIntersection); |
| 677 return closestObject; | 677 return closestObject; |
| 678 }, | 678 }, |
| 679 | 679 |
| 680 /** | 680 /** |
| 681 * @param {string} caption | 681 * @param {string} caption |
| 682 * @param {string} name | 682 * @param {string} name |
| 683 * @param {boolean} value | 683 * @param {boolean} value |
| 684 * @param {!Element} statusBarElement | 684 * @param {!WebInspector.StatusBar} statusBar |
| 685 * @return {!WebInspector.Setting} | 685 * @return {!WebInspector.Setting} |
| 686 */ | 686 */ |
| 687 _createVisibilitySetting: function(caption, name, value, statusBarElement) | 687 _createVisibilitySetting: function(caption, name, value, statusBar) |
| 688 { | 688 { |
| 689 var checkbox = new WebInspector.StatusBarCheckbox(WebInspector.UIString(
caption)) | 689 var checkbox = new WebInspector.StatusBarCheckbox(WebInspector.UIString(
caption)) |
| 690 statusBarElement.appendChild(checkbox.element); | 690 statusBar.appendStatusBarItem(checkbox); |
| 691 var setting = WebInspector.settings.createSetting(name, value) | 691 var setting = WebInspector.settings.createSetting(name, value) |
| 692 WebInspector.SettingsUI.bindCheckbox(checkbox.inputElement, setting); | 692 WebInspector.SettingsUI.bindCheckbox(checkbox.inputElement, setting); |
| 693 setting.addChangeListener(this._update, this); | 693 setting.addChangeListener(this._update, this); |
| 694 return setting; | 694 return setting; |
| 695 }, | 695 }, |
| 696 | 696 |
| 697 _initStatusBar: function() | 697 _initStatusBar: function() |
| 698 { | 698 { |
| 699 this._panelStatusBarElement = this.element.createChild("div", "panel-sta
tus-bar"); | 699 this._panelStatusBar = new WebInspector.StatusBar(this.element); |
| 700 this._panelStatusBarElement.appendChild(this._transformController.contro
lPanelElement()); | 700 this._panelStatusBar.appendStatusBarItem(new WebInspector.StatusBarItem(
this._transformController.controlPanelElement())); |
| 701 this._showSlowScrollRectsSetting = this._createVisibilitySetting("Slow s
croll rects", "frameViewerShowSlowScrollRects", true, this._panelStatusBarElemen
t); | 701 this._showSlowScrollRectsSetting = this._createVisibilitySetting("Slow s
croll rects", "frameViewerShowSlowScrollRects", true, this._panelStatusBar); |
| 702 this._showPaintsSetting = this._createVisibilitySetting("Paints", "frame
ViewerShowPaints", true, this._panelStatusBarElement); | 702 this._showPaintsSetting = this._createVisibilitySetting("Paints", "frame
ViewerShowPaints", true, this._panelStatusBar); |
| 703 WebInspector.settings.frameViewerHideChromeWindow.addChangeListener(this
._update, this); | 703 WebInspector.settings.frameViewerHideChromeWindow.addChangeListener(this
._update, this); |
| 704 }, | 704 }, |
| 705 | 705 |
| 706 /** | 706 /** |
| 707 * @param {!Event} event | 707 * @param {!Event} event |
| 708 */ | 708 */ |
| 709 _onContextMenu: function(event) | 709 _onContextMenu: function(event) |
| 710 { | 710 { |
| 711 var selection = this._selectionFromEventPoint(event); | 711 var selection = this._selectionFromEventPoint(event); |
| 712 var node = selection && selection.layer && selection.layer.nodeForSelfOr
Ancestor(); | 712 var node = selection && selection.layer && selection.layer.nodeForSelfOr
Ancestor(); |
| (...skipping 457 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1170 */ | 1170 */ |
| 1171 WebInspector.LayerTextureManager.Tile = function(snapshot, rect, traceEvent) | 1171 WebInspector.LayerTextureManager.Tile = function(snapshot, rect, traceEvent) |
| 1172 { | 1172 { |
| 1173 this.snapshot = snapshot; | 1173 this.snapshot = snapshot; |
| 1174 this.rect = rect; | 1174 this.rect = rect; |
| 1175 this.traceEvent = traceEvent; | 1175 this.traceEvent = traceEvent; |
| 1176 this.scale = 0; | 1176 this.scale = 0; |
| 1177 /** @type {?WebGLTexture} */ | 1177 /** @type {?WebGLTexture} */ |
| 1178 this.texture = null; | 1178 this.texture = null; |
| 1179 } | 1179 } |
| OLD | NEW |