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

Side by Side Diff: Source/devtools/front_end/sdk/DOMModel.js

Issue 391083003: DevTools: remove Node.reveal() and RemoteOject.reveal() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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 /* 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
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
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;
OLDNEW
« no previous file with comments | « Source/devtools/front_end/network/NetworkPanel.js ('k') | Source/devtools/front_end/sdk/RemoteObject.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698