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

Side by Side Diff: Source/devtools/front_end/sources/SourcesPanel.js

Issue 396993003: DevTools: get rid of WebInspector.cssModel, use target models instead (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) 2008 Apple Inc. All Rights Reserved. 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved.
3 * Copyright (C) 2011 Google Inc. All rights reserved. 3 * Copyright (C) 2011 Google Inc. All rights reserved.
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 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 1048 matching lines...) Expand 10 before | Expand all | Expand 10 after
1059 * @param {!WebInspector.Target} target 1059 * @param {!WebInspector.Target} target
1060 * @param {?WebInspector.RemoteObject} result 1060 * @param {?WebInspector.RemoteObject} result
1061 */ 1061 */
1062 function failedToSave(target, result) 1062 function failedToSave(target, result)
1063 { 1063 {
1064 var message = WebInspector.UIString("Failed to save to temp variable ."); 1064 var message = WebInspector.UIString("Failed to save to temp variable .");
1065 if (result) { 1065 if (result) {
1066 message += " " + result.description; 1066 message += " " + result.description;
1067 result.release(); 1067 result.release();
1068 } 1068 }
1069 target.consoleModel.showErrorMessage(message); 1069 WebInspector.console.error(message);
1070 } 1070 }
1071 }, 1071 },
1072 1072
1073 /** 1073 /**
1074 * @param {!WebInspector.RemoteObject} remoteObject 1074 * @param {!WebInspector.RemoteObject} remoteObject
1075 */ 1075 */
1076 _showFunctionDefinition: function(remoteObject) 1076 _showFunctionDefinition: function(remoteObject)
1077 { 1077 {
1078 var target = remoteObject.target(); 1078 var target = remoteObject.target();
1079 1079
(...skipping 395 matching lines...) Expand 10 before | Expand all | Expand 10 after
1475 */ 1475 */
1476 handleAction: function() 1476 handleAction: function()
1477 { 1477 {
1478 var panel = /** @type {?WebInspector.SourcesPanel} */ (WebInspector.insp ectorView.showPanel("sources")); 1478 var panel = /** @type {?WebInspector.SourcesPanel} */ (WebInspector.insp ectorView.showPanel("sources"));
1479 if (!panel) 1479 if (!panel)
1480 return false; 1480 return false;
1481 panel.togglePause(); 1481 panel.togglePause();
1482 return true; 1482 return true;
1483 } 1483 }
1484 } 1484 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/sdk/TimelineManager.js ('k') | Source/devtools/front_end/sources/UISourceCodeFrame.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698