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

Side by Side Diff: Source/devtools/front_end/main/Main.js

Issue 485713002: DevTools: Use targetManager.inspectedPageUrl() instead of resourceTreeModel.inspectedPageUrl() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Addrss comments Created 6 years, 4 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) 2006, 2007, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved.
3 * Copyright (C) 2007 Matt Lilek (pewtermoose@gmail.com). 3 * Copyright (C) 2007 Matt Lilek (pewtermoose@gmail.com).
4 * Copyright (C) 2009 Joseph Pecoraro 4 * Copyright (C) 2009 Joseph Pecoraro
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 9 *
10 * 1. Redistributions of source code must retain the above copyright 10 * 1. Redistributions of source code must retain the above copyright
(...skipping 797 matching lines...) Expand 10 before | Expand all | Expand 10 after
808 new InspectorBackendClass.WebSocketConnection(ws, callback); 808 new InspectorBackendClass.WebSocketConnection(ws, callback);
809 } 809 }
810 810
811 new WebInspector.Main(); 811 new WebInspector.Main();
812 812
813 // These methods are added for backwards compatibility with Devtools CodeSchool extension. 813 // These methods are added for backwards compatibility with Devtools CodeSchool extension.
814 // DO NOT REMOVE 814 // DO NOT REMOVE
815 815
816 WebInspector.__defineGetter__("inspectedPageURL", function() 816 WebInspector.__defineGetter__("inspectedPageURL", function()
817 { 817 {
818 return WebInspector.resourceTreeModel.inspectedPageURL(); 818 return WebInspector.targetManager.inspectedPageURL();
819 }); 819 });
820 820
821 /** 821 /**
822 * @param {string} name 822 * @param {string} name
823 * @return {?WebInspector.Panel} 823 * @return {?WebInspector.Panel}
824 */ 824 */
825 WebInspector.panel = function(name) 825 WebInspector.panel = function(name)
826 { 826 {
827 return WebInspector.inspectorView.panel(name); 827 return WebInspector.inspectorView.panel(name);
828 } 828 }
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
900 900
901 WebInspector.Main.InspectedNodeRevealer.prototype = { 901 WebInspector.Main.InspectedNodeRevealer.prototype = {
902 /** 902 /**
903 * @param {!WebInspector.Event} event 903 * @param {!WebInspector.Event} event
904 */ 904 */
905 _inspectNode: function(event) 905 _inspectNode: function(event)
906 { 906 {
907 WebInspector.Revealer.reveal(/** @type {!WebInspector.DOMNode} */ (event .data)); 907 WebInspector.Revealer.reveal(/** @type {!WebInspector.DOMNode} */ (event .data));
908 } 908 }
909 } 909 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/devices/DevicesView.js ('k') | Source/devtools/front_end/network/NetworkPanel.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698