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

Side by Side Diff: Source/WebCore/inspector/front-end/ScriptsPanel.js

Issue 12622003: Merge 144463 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1410/
Patch Set: Created 7 years, 9 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
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 1017 matching lines...) Expand 10 before | Expand all | Expand 10 after
1028 WebInspector.settings.debuggerSidebarHidden.set(true); 1028 WebInspector.settings.debuggerSidebarHidden.set(true);
1029 }, 1029 },
1030 1030
1031 _fileRenamed: function(event) 1031 _fileRenamed: function(event)
1032 { 1032 {
1033 var uiSourceCode = /** @type {WebInspector.UISourceCode} */ (event.data. uiSourceCode); 1033 var uiSourceCode = /** @type {WebInspector.UISourceCode} */ (event.data. uiSourceCode);
1034 var name = /** @type {string} */ (event.data.name); 1034 var name = /** @type {string} */ (event.data.name);
1035 if (!uiSourceCode.project().type() === WebInspector.projectTypes.Snippet s) 1035 if (!uiSourceCode.project().type() === WebInspector.projectTypes.Snippet s)
1036 return; 1036 return;
1037 WebInspector.scriptSnippetModel.renameScriptSnippet(uiSourceCode, name); 1037 WebInspector.scriptSnippetModel.renameScriptSnippet(uiSourceCode, name);
1038 uiSourceCode.rename(name);
1038 }, 1039 },
1039 1040
1040 /** 1041 /**
1041 * @param {WebInspector.Event} event 1042 * @param {WebInspector.Event} event
1042 */ 1043 */
1043 _snippetCreationRequested: function(event) 1044 _snippetCreationRequested: function(event)
1044 { 1045 {
1045 var uiSourceCode = WebInspector.scriptSnippetModel.createScriptSnippet() ; 1046 var uiSourceCode = WebInspector.scriptSnippetModel.createScriptSnippet() ;
1046 this._showSourceLine(uiSourceCode); 1047 this._showSourceLine(uiSourceCode);
1047 1048
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
1166 1167
1167 _contextMenuEventFired: function(event) 1168 _contextMenuEventFired: function(event)
1168 { 1169 {
1169 var contextMenu = new WebInspector.ContextMenu(event); 1170 var contextMenu = new WebInspector.ContextMenu(event);
1170 this.sidebarPaneView.populateContextMenu(contextMenu); 1171 this.sidebarPaneView.populateContextMenu(contextMenu);
1171 contextMenu.show(); 1172 contextMenu.show();
1172 }, 1173 },
1173 1174
1174 __proto__: WebInspector.Panel.prototype 1175 __proto__: WebInspector.Panel.prototype
1175 } 1176 }
OLDNEW
« no previous file with comments | « Source/WebCore/inspector/front-end/ScriptSnippetModel.js ('k') | Source/WebCore/inspector/front-end/UISourceCode.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698