| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 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 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 }, | 138 }, |
| 139 | 139 |
| 140 /** | 140 /** |
| 141 * @param {!Element} container | 141 * @param {!Element} container |
| 142 */ | 142 */ |
| 143 renderSection: function(container) | 143 renderSection: function(container) |
| 144 { | 144 { |
| 145 var parent = container.createChild("div", "help-block"); | 145 var parent = container.createChild("div", "help-block"); |
| 146 | 146 |
| 147 var headLine = parent.createChild("div", "help-line"); | 147 var headLine = parent.createChild("div", "help-line"); |
| 148 headLine.createChild("div", "help-key-cell"); | |
| 149 headLine.createChild("div", "help-section-title help-cell").textContent
= this.name; | 148 headLine.createChild("div", "help-section-title help-cell").textContent
= this.name; |
| 150 | 149 |
| 151 for (var i = 0; i < this._lines.length; ++i) { | 150 for (var i = 0; i < this._lines.length; ++i) { |
| 152 var line = parent.createChild("div", "help-line"); | 151 var line = parent.createChild("div", "help-line"); |
| 152 line.createChild("div", "help-cell").textContent = this._lines[i].te
xt; |
| 153 var keyCell = line.createChild("div", "help-key-cell"); | 153 var keyCell = line.createChild("div", "help-key-cell"); |
| 154 keyCell.appendChild(this._createSpan("help-key-delimiter", ":")); |
| 154 keyCell.appendChild(this._lines[i].key); | 155 keyCell.appendChild(this._lines[i].key); |
| 155 keyCell.appendChild(this._createSpan("help-key-delimiter", ":")); | |
| 156 line.createChild("div", "help-cell").textContent = this._lines[i].te
xt; | |
| 157 } | 156 } |
| 158 }, | 157 }, |
| 159 | 158 |
| 160 /** | 159 /** |
| 161 * @param {!Array.<!WebInspector.KeyboardShortcut.Descriptor>} sequence | 160 * @param {!Array.<!WebInspector.KeyboardShortcut.Descriptor>} sequence |
| 162 * @param {string} delimiter | 161 * @param {string} delimiter |
| 163 * @return {!Node} | 162 * @return {!Node} |
| 164 */ | 163 */ |
| 165 _renderSequence: function(sequence, delimiter) | 164 _renderSequence: function(sequence, delimiter) |
| 166 { | 165 { |
| (...skipping 366 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 533 Left: [ | 532 Left: [ |
| 534 WebInspector.KeyboardShortcut.makeDescriptor(WebInspector.KeyboardShortc
ut.Keys.Left), | 533 WebInspector.KeyboardShortcut.makeDescriptor(WebInspector.KeyboardShortc
ut.Keys.Left), |
| 535 WebInspector.KeyboardShortcut.makeDescriptor("a") | 534 WebInspector.KeyboardShortcut.makeDescriptor("a") |
| 536 ], | 535 ], |
| 537 | 536 |
| 538 Right: [ | 537 Right: [ |
| 539 WebInspector.KeyboardShortcut.makeDescriptor(WebInspector.KeyboardShortc
ut.Keys.Right), | 538 WebInspector.KeyboardShortcut.makeDescriptor(WebInspector.KeyboardShortc
ut.Keys.Right), |
| 540 WebInspector.KeyboardShortcut.makeDescriptor("d") | 539 WebInspector.KeyboardShortcut.makeDescriptor("d") |
| 541 ] | 540 ] |
| 542 } | 541 } |
| OLD | NEW |