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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/sources/TabbedEditorContainer.js

Issue 2080893002: Close all sources command (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove alert hi Created 4 years, 6 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) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
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 * 10 *
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 * @param {!WebInspector.UISourceCode} uiSourceCode 124 * @param {!WebInspector.UISourceCode} uiSourceCode
125 */ 125 */
126 closeFile: function(uiSourceCode) 126 closeFile: function(uiSourceCode)
127 { 127 {
128 var tabId = this._tabIds.get(uiSourceCode); 128 var tabId = this._tabIds.get(uiSourceCode);
129 if (!tabId) 129 if (!tabId)
130 return; 130 return;
131 this._closeTabs([tabId]); 131 this._closeTabs([tabId]);
132 }, 132 },
133 133
134 closeAllFiles: function()
135 {
136 this._closeTabs(this._tabbedPane.allTabs());
137 },
138
134 /** 139 /**
135 * @return {!Array.<!WebInspector.UISourceCode>} 140 * @return {!Array.<!WebInspector.UISourceCode>}
136 */ 141 */
137 historyUISourceCodes: function() 142 historyUISourceCodes: function()
138 { 143 {
139 // FIXME: there should be a way to fetch UISourceCode for its uri. 144 // FIXME: there should be a way to fetch UISourceCode for its uri.
140 var uriToUISourceCode = {}; 145 var uriToUISourceCode = {};
141 for (var id in this._files) { 146 for (var id in this._files) {
142 var uiSourceCode = this._files[id]; 147 var uiSourceCode = this._files[id];
143 uriToUISourceCode[uiSourceCode.url()] = uiSourceCode; 148 uriToUISourceCode[uiSourceCode.url()] = uiSourceCode;
(...skipping 591 matching lines...) Expand 10 before | Expand all | Expand 10 after
735 /** 740 /**
736 * @override 741 * @override
737 * @param {string} tabId 742 * @param {string} tabId
738 * @param {!WebInspector.ContextMenu} contextMenu 743 * @param {!WebInspector.ContextMenu} contextMenu
739 */ 744 */
740 onContextMenu: function(tabId, contextMenu) 745 onContextMenu: function(tabId, contextMenu)
741 { 746 {
742 this._editorContainer._onContextMenu(tabId, contextMenu); 747 this._editorContainer._onContextMenu(tabId, contextMenu);
743 } 748 }
744 } 749 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698