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

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

Issue 8381041: Merge 98105 - Web Inspector: Advanced search is working very slowly and does not show searching p... (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/912/
Patch Set: Created 9 years, 1 month 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 * * Redistributions of source code must retain the above copyright 8 * * 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 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
248 248
249 _registerShortcuts: function() 249 _registerShortcuts: function()
250 { 250 {
251 var shortcut = WebInspector.KeyboardShortcut; 251 var shortcut = WebInspector.KeyboardShortcut;
252 var modifiers = shortcut.Modifiers; 252 var modifiers = shortcut.Modifiers;
253 var section = WebInspector.shortcutsScreen.section(WebInspector.UIString ("Timeline Panel")); 253 var section = WebInspector.shortcutsScreen.section(WebInspector.UIString ("Timeline Panel"));
254 254
255 this._shortcuts[shortcut.makeKey("e", modifiers.CtrlOrMeta)] = this._tog gleTimelineButtonClicked.bind(this); 255 this._shortcuts[shortcut.makeKey("e", modifiers.CtrlOrMeta)] = this._tog gleTimelineButtonClicked.bind(this);
256 section.addKey(shortcut.shortcutToString("e", modifiers.CtrlOrMeta), Web Inspector.UIString("Start/stop recording")); 256 section.addKey(shortcut.shortcutToString("e", modifiers.CtrlOrMeta), Web Inspector.UIString("Start/stop recording"));
257 257
258 var shortRecordThresholdTitle = Number.secondsToString(WebInspector.Time linePanel.shortRecordThreshold);
259 this._shortcuts[shortcut.makeKey("f", modifiers.Shift | modifiers.CtrlOr Meta)] = this._toggleFilterButtonClicked.bind(this);
260 section.addKey(shortcut.shortcutToString("f", modifiers.Shift | modifier s.CtrlOrMeta), WebInspector.UIString("Filter out records shorter than %s", short RecordThresholdTitle));
261
262 this._shortcuts[shortcut.makeKey("s", modifiers.CtrlOrMeta)] = this._sav eToFile.bind(this); 258 this._shortcuts[shortcut.makeKey("s", modifiers.CtrlOrMeta)] = this._sav eToFile.bind(this);
263 section.addKey(shortcut.shortcutToString("s", modifiers.CtrlOrMeta), Web Inspector.UIString("Save Timeline data\u2026")); 259 section.addKey(shortcut.shortcutToString("s", modifiers.CtrlOrMeta), Web Inspector.UIString("Save Timeline data\u2026"));
264 260
265 this._shortcuts[shortcut.makeKey("o", modifiers.CtrlOrMeta)] = this._fil eSelectorElement.click.bind(this._fileSelectorElement); 261 this._shortcuts[shortcut.makeKey("o", modifiers.CtrlOrMeta)] = this._fil eSelectorElement.click.bind(this._fileSelectorElement);
266 section.addKey(shortcut.shortcutToString("o", modifiers.CtrlOrMeta), Web Inspector.UIString("Load Timeline data\u2026")); 262 section.addKey(shortcut.shortcutToString("o", modifiers.CtrlOrMeta), Web Inspector.UIString("Load Timeline data\u2026"));
267 }, 263 },
268 264
269 _createFileSelector: function() 265 _createFileSelector: function()
270 { 266 {
271 if (this._fileSelectorElement) 267 if (this._fileSelectorElement)
(...skipping 1148 matching lines...) Expand 10 before | Expand all | Expand 10 after
1420 var now= new Date(); 1416 var now= new Date();
1421 var suggestedFileName = "TimelineRawData-" + now.toISO8601Compact() + ". json"; 1417 var suggestedFileName = "TimelineRawData-" + now.toISO8601Compact() + ". json";
1422 InspectorFrontendHost.saveAs(suggestedFileName, records.join(",\n")); 1418 InspectorFrontendHost.saveAs(suggestedFileName, records.join(",\n"));
1423 }, 1419 },
1424 1420
1425 _reset: function() 1421 _reset: function()
1426 { 1422 {
1427 this._records = []; 1423 this._records = [];
1428 } 1424 }
1429 } 1425 }
OLDNEW
« no previous file with comments | « Source/WebCore/inspector/front-end/ScriptsSearchScope.js ('k') | Source/WebCore/inspector/front-end/inspector.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698