| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009, 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2009, 2010 Google Inc. All rights reserved. |
| 3 * Copyright (C) 2009 Joseph Pecoraro | 3 * Copyright (C) 2009 Joseph Pecoraro |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
| 7 * met: | 7 * met: |
| 8 * | 8 * |
| 9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 805 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 816 highlight: function(mode, objectId) | 816 highlight: function(mode, objectId) |
| 817 { | 817 { |
| 818 this._domModel.highlightDOMNode(this.id, mode, objectId); | 818 this._domModel.highlightDOMNode(this.id, mode, objectId); |
| 819 }, | 819 }, |
| 820 | 820 |
| 821 highlightForTwoSeconds: function() | 821 highlightForTwoSeconds: function() |
| 822 { | 822 { |
| 823 this._domModel.highlightDOMNodeForTwoSeconds(this.id); | 823 this._domModel.highlightDOMNodeForTwoSeconds(this.id); |
| 824 }, | 824 }, |
| 825 | 825 |
| 826 reveal: function() | |
| 827 { | |
| 828 WebInspector.Revealer.reveal(this); | |
| 829 }, | |
| 830 | |
| 831 /** | 826 /** |
| 832 * @param {string=} objectGroup | 827 * @param {string=} objectGroup |
| 833 * @param {function(?WebInspector.RemoteObject)=} callback | 828 * @param {function(?WebInspector.RemoteObject)=} callback |
| 834 */ | 829 */ |
| 835 resolveToObject: function(objectGroup, callback) | 830 resolveToObject: function(objectGroup, callback) |
| 836 { | 831 { |
| 837 this._agent.resolveNode(this.id, objectGroup, mycallback.bind(this)); | 832 this._agent.resolveNode(this.id, objectGroup, mycallback.bind(this)); |
| 838 | 833 |
| 839 /** | 834 /** |
| 840 * @param {?Protocol.Error} error | 835 * @param {?Protocol.Error} error |
| (...skipping 1029 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1870 { | 1865 { |
| 1871 WebInspector.overridesSupport.setTouchEmulationSuspended(enabled); | 1866 WebInspector.overridesSupport.setTouchEmulationSuspended(enabled); |
| 1872 this._agent.setInspectModeEnabled(enabled, inspectUAShadowDOM, config, c
allback); | 1867 this._agent.setInspectModeEnabled(enabled, inspectUAShadowDOM, config, c
allback); |
| 1873 } | 1868 } |
| 1874 } | 1869 } |
| 1875 | 1870 |
| 1876 /** | 1871 /** |
| 1877 * @type {!WebInspector.DOMModel} | 1872 * @type {!WebInspector.DOMModel} |
| 1878 */ | 1873 */ |
| 1879 WebInspector.domModel; | 1874 WebInspector.domModel; |
| OLD | NEW |