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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/timeline/TimelinePanel.js

Issue 2657893002: DevTools: temporarily revert Timeline->Performance rename. (Closed)
Patch Set: Introduce progress monitor Created 3 years, 10 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) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * Copyright (C) 2012 Intel Inc. All rights reserved. 3 * Copyright (C) 2012 Intel 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 are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 662 matching lines...) Expand 10 before | Expand all | Expand 10 after
673 var recordNode = 673 var recordNode =
674 encloseWithTag('b', UI.shortcutRegistry.shortcutDescriptorsForAction('ti meline.toggle-recording')[0].name); 674 encloseWithTag('b', UI.shortcutRegistry.shortcutDescriptorsForAction('ti meline.toggle-recording')[0].name);
675 var reloadNode = encloseWithTag('b', UI.shortcutRegistry.shortcutDescriptors ForAction('main.reload')[0].name); 675 var reloadNode = encloseWithTag('b', UI.shortcutRegistry.shortcutDescriptors ForAction('main.reload')[0].name);
676 var navigateNode = encloseWithTag('b', Common.UIString('WASD')); 676 var navigateNode = encloseWithTag('b', Common.UIString('WASD'));
677 677
678 this._landingPage = new UI.VBox(); 678 this._landingPage = new UI.VBox();
679 this._landingPage.contentElement.classList.add('timeline-landing-page', 'fil l'); 679 this._landingPage.contentElement.classList.add('timeline-landing-page', 'fil l');
680 var centered = this._landingPage.contentElement.createChild('div'); 680 var centered = this._landingPage.contentElement.createChild('div');
681 681
682 var p = centered.createChild('p'); 682 var p = centered.createChild('p');
683 p.createTextChild(Common.UIString(
684 'The Performance panel lets you record what the browser does during page load and user interaction. ' +
685 'The timeline it generates can help you determine why certain parts of y our page are slow.'));
686
687 p = centered.createChild('p');
688 p.appendChild(UI.formatLocalized( 683 p.appendChild(UI.formatLocalized(
689 'To capture a new recording, click the record toolbar button or hit %s. ' + 684 'To capture a new recording, click the record toolbar button or hit %s. ' +
690 'To evaluate page load performance, hit %s to record the reload.', 685 'To evaluate page load performance, hit %s to record the reload.',
691 [recordNode, reloadNode])); 686 [recordNode, reloadNode]));
692 687
693 p = centered.createChild('p'); 688 p = centered.createChild('p');
694 p.appendChild(UI.formatLocalized( 689 p.appendChild(UI.formatLocalized(
695 'After recording, select an area of interest in the overview by dragging . ' + 690 'After recording, select an area of interest in the overview by dragging . ' +
696 'Then, zoom and pan the timeline with the mousewheel or %s keys.', 691 'Then, zoom and pan the timeline with the mousewheel or %s keys.',
697 [navigateNode])); 692 [navigateNode]));
698 693
699 p = centered.createChild('p'); 694 p = centered.createChild('p');
700 p.appendChild(learnMoreNode); 695 p.appendChild(learnMoreNode);
701 696
702 var timelineSpan = encloseWithTag('b', Common.UIString('Timeline'));
703 var performanceSpan = encloseWithTag('b', Common.UIString('Performance'));
704
705 p = centered.createChild('p', 'timeline-landing-warning');
706 p.appendChild(UI.formatLocalized(
707 'The %s panel has been enriched with the JavaScript profiler capabilitie s and is now called %s.%s' +
708 'You can find the legacy JavaScript CPU profiler under %s%s \u2192 More Tools \u2192 JavaScript Profiler.',
709 [timelineSpan, performanceSpan, createElement('p'), createElement('br'), UI.Icon.create('largeicon-menu')]));
710
711 this._landingPage.show(this._statusPaneContainer); 697 this._landingPage.show(this._statusPaneContainer);
712 } 698 }
713 699
714 _hideLandingPage() { 700 _hideLandingPage() {
715 this._landingPage.detach(); 701 this._landingPage.detach();
716 } 702 }
717 703
718 /** 704 /**
719 * @override 705 * @override
720 */ 706 */
(...skipping 974 matching lines...) Expand 10 before | Expand all | Expand 10 after
1695 }; 1681 };
1696 1682
1697 Timeline.TimelinePanel._traceProviderSettingSymbol = Symbol('traceProviderSettin g'); 1683 Timeline.TimelinePanel._traceProviderSettingSymbol = Symbol('traceProviderSettin g');
1698 1684
1699 /** @enum {symbol} */ 1685 /** @enum {symbol} */
1700 Timeline.TimelineFilters.Events = { 1686 Timeline.TimelineFilters.Events = {
1701 FilterChanged: Symbol('FilterChanged') 1687 FilterChanged: Symbol('FilterChanged')
1702 }; 1688 };
1703 1689
1704 Timeline.TimelineFilters._durationFilterPresetsMs = [0, 1, 15]; 1690 Timeline.TimelineFilters._durationFilterPresetsMs = [0, 1, 15];
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698