| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 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 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 260 * @param {?WebInspector.DOMNode} node | 260 * @param {?WebInspector.DOMNode} node |
| 261 * @this {WebInspector.ScreencastView} | 261 * @this {WebInspector.ScreencastView} |
| 262 */ | 262 */ |
| 263 function callback(node) | 263 function callback(node) |
| 264 { | 264 { |
| 265 if (!node) | 265 if (!node) |
| 266 return; | 266 return; |
| 267 if (event.type === "mousemove") | 267 if (event.type === "mousemove") |
| 268 this.highlightDOMNode(node, this._inspectModeConfig); | 268 this.highlightDOMNode(node, this._inspectModeConfig); |
| 269 else if (event.type === "click") | 269 else if (event.type === "click") |
| 270 node.reveal(); | 270 WebInspector.Revealer.reveal(node); |
| 271 } | 271 } |
| 272 }, | 272 }, |
| 273 | 273 |
| 274 /** | 274 /** |
| 275 * @param {?Event} event | 275 * @param {?Event} event |
| 276 */ | 276 */ |
| 277 _handleKeyEvent: function(event) | 277 _handleKeyEvent: function(event) |
| 278 { | 278 { |
| 279 if (this._isGlassPaneActive()) { | 279 if (this._isGlassPaneActive()) { |
| 280 event.consume(); | 280 event.consume(); |
| (...skipping 717 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 998 return; | 998 return; |
| 999 this._maxDisplayedProgress = progress; | 999 this._maxDisplayedProgress = progress; |
| 1000 this._displayProgress(progress); | 1000 this._displayProgress(progress); |
| 1001 }, | 1001 }, |
| 1002 | 1002 |
| 1003 _displayProgress: function(progress) | 1003 _displayProgress: function(progress) |
| 1004 { | 1004 { |
| 1005 this._element.style.width = (100 * progress) + "%"; | 1005 this._element.style.width = (100 * progress) + "%"; |
| 1006 } | 1006 } |
| 1007 }; | 1007 }; |
| OLD | NEW |