OLD | NEW |
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 725 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
736 var navigateNode = encloseWithTag("b", WebInspector.UIString("WASD")); | 736 var navigateNode = encloseWithTag("b", WebInspector.UIString("WASD")); |
737 var hintText = createElementWithClass("div"); | 737 var hintText = createElementWithClass("div"); |
738 hintText.appendChild(WebInspector.formatLocalized("To capture a new time
line, click the record toolbar button or hit %s.", [recordNode])); | 738 hintText.appendChild(WebInspector.formatLocalized("To capture a new time
line, click the record toolbar button or hit %s.", [recordNode])); |
739 hintText.createChild("br"); | 739 hintText.createChild("br"); |
740 hintText.appendChild(WebInspector.formatLocalized("To evaluate page load
performance, hit %s to record the reload.", [reloadNode])); | 740 hintText.appendChild(WebInspector.formatLocalized("To evaluate page load
performance, hit %s to record the reload.", [reloadNode])); |
741 hintText.createChild("p"); | 741 hintText.createChild("p"); |
742 hintText.appendChild(WebInspector.formatLocalized("After recording, sele
ct an area of interest in the overview by dragging.", [])); | 742 hintText.appendChild(WebInspector.formatLocalized("After recording, sele
ct an area of interest in the overview by dragging.", [])); |
743 hintText.createChild("br"); | 743 hintText.createChild("br"); |
744 hintText.appendChild(WebInspector.formatLocalized("Then, zoom and pan th
e timeline with the mousewheel and %s keys.", [navigateNode])); | 744 hintText.appendChild(WebInspector.formatLocalized("Then, zoom and pan th
e timeline with the mousewheel and %s keys.", [navigateNode])); |
745 this._hideRecordingHelpMessage(); | 745 this._hideRecordingHelpMessage(); |
746 this._helpMessageElement = this._searchableView.element.createChild("div
", "banner timeline-status-pane"); | 746 this._helpMessageElement = this._searchableView.element.createChild("div
", "full-widget-dimmed-banner timeline-status-pane"); |
747 this._helpMessageElement.appendChild(hintText); | 747 this._helpMessageElement.appendChild(hintText); |
748 }, | 748 }, |
749 | 749 |
750 _hideRecordingHelpMessage: function() | 750 _hideRecordingHelpMessage: function() |
751 { | 751 { |
752 if (this._helpMessageElement) | 752 if (this._helpMessageElement) |
753 this._helpMessageElement.remove(); | 753 this._helpMessageElement.remove(); |
754 delete this._helpMessageElement; | 754 delete this._helpMessageElement; |
755 }, | 755 }, |
756 | 756 |
(...skipping 1359 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2116 _onKeyDown: function(event) | 2116 _onKeyDown: function(event) |
2117 { | 2117 { |
2118 if (event.keyCode === WebInspector.KeyboardShortcut.Keys.Enter.code) { | 2118 if (event.keyCode === WebInspector.KeyboardShortcut.Keys.Enter.code) { |
2119 event.preventDefault(); | 2119 event.preventDefault(); |
2120 this._apply(); | 2120 this._apply(); |
2121 } | 2121 } |
2122 }, | 2122 }, |
2123 | 2123 |
2124 __proto__: WebInspector.HBox.prototype | 2124 __proto__: WebInspector.HBox.prototype |
2125 } | 2125 } |
OLD | NEW |