| 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 1819 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1830 /** | 1830 /** |
| 1831 * @constructor | 1831 * @constructor |
| 1832 * @extends {WebInspector.SDKObject} | 1832 * @extends {WebInspector.SDKObject} |
| 1833 * @param {!WebInspector.Target} target | 1833 * @param {!WebInspector.Target} target |
| 1834 * @param {!DOMAgent.EventListener} payload | 1834 * @param {!DOMAgent.EventListener} payload |
| 1835 */ | 1835 */ |
| 1836 WebInspector.DOMModel.EventListener = function(target, payload) | 1836 WebInspector.DOMModel.EventListener = function(target, payload) |
| 1837 { | 1837 { |
| 1838 WebInspector.SDKObject.call(this, target); | 1838 WebInspector.SDKObject.call(this, target); |
| 1839 this._payload = payload; | 1839 this._payload = payload; |
| 1840 var sourceName = this._payload.sourceName; |
| 1841 if (!sourceName) { |
| 1842 var script = target.debuggerModel.scriptForId(payload.location.scriptId)
; |
| 1843 sourceName = script ? script.contentURL() : ""; |
| 1844 } |
| 1845 this._sourceName = sourceName; |
| 1840 } | 1846 } |
| 1841 | 1847 |
| 1842 WebInspector.DOMModel.EventListener.prototype = { | 1848 WebInspector.DOMModel.EventListener.prototype = { |
| 1843 /** | 1849 /** |
| 1844 * @return {!DOMAgent.EventListener} | 1850 * @return {!DOMAgent.EventListener} |
| 1845 */ | 1851 */ |
| 1846 payload: function() | 1852 payload: function() |
| 1847 { | 1853 { |
| 1848 return this._payload; | 1854 return this._payload; |
| 1849 }, | 1855 }, |
| (...skipping 15 matching lines...) Expand all Loading... |
| 1865 }, | 1871 }, |
| 1866 | 1872 |
| 1867 /** | 1873 /** |
| 1868 * @return {?WebInspector.RemoteObject} | 1874 * @return {?WebInspector.RemoteObject} |
| 1869 */ | 1875 */ |
| 1870 handler: function() | 1876 handler: function() |
| 1871 { | 1877 { |
| 1872 return this._payload.handler ? this.target().runtimeModel.createRemoteOb
ject(this._payload.handler) : null; | 1878 return this._payload.handler ? this.target().runtimeModel.createRemoteOb
ject(this._payload.handler) : null; |
| 1873 }, | 1879 }, |
| 1874 | 1880 |
| 1881 /** |
| 1882 * @return {string} |
| 1883 */ |
| 1884 sourceName: function() |
| 1885 { |
| 1886 return this._sourceName; |
| 1887 }, |
| 1888 |
| 1875 __proto__: WebInspector.SDKObject.prototype | 1889 __proto__: WebInspector.SDKObject.prototype |
| 1876 } | 1890 } |
| 1877 | 1891 |
| 1878 /** | 1892 /** |
| 1879 * @interface | 1893 * @interface |
| 1880 */ | 1894 */ |
| 1881 WebInspector.DOMNodeHighlighter = function() { | 1895 WebInspector.DOMNodeHighlighter = function() { |
| 1882 } | 1896 } |
| 1883 | 1897 |
| 1884 WebInspector.DOMNodeHighlighter.prototype = { | 1898 WebInspector.DOMNodeHighlighter.prototype = { |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1927 * @param {boolean} inspectUAShadowDOM | 1941 * @param {boolean} inspectUAShadowDOM |
| 1928 * @param {!DOMAgent.HighlightConfig} config | 1942 * @param {!DOMAgent.HighlightConfig} config |
| 1929 * @param {function(?Protocol.Error)=} callback | 1943 * @param {function(?Protocol.Error)=} callback |
| 1930 */ | 1944 */ |
| 1931 setInspectModeEnabled: function(enabled, inspectUAShadowDOM, config, callbac
k) | 1945 setInspectModeEnabled: function(enabled, inspectUAShadowDOM, config, callbac
k) |
| 1932 { | 1946 { |
| 1933 WebInspector.overridesSupport.setTouchEmulationSuspended(enabled); | 1947 WebInspector.overridesSupport.setTouchEmulationSuspended(enabled); |
| 1934 this._agent.setInspectModeEnabled(enabled, inspectUAShadowDOM, config, c
allback); | 1948 this._agent.setInspectModeEnabled(enabled, inspectUAShadowDOM, config, c
allback); |
| 1935 } | 1949 } |
| 1936 } | 1950 } |
| OLD | NEW |