| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 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 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 195 | 195 |
| 196 this._pageBackButton = new UI.ToolbarButton(Common.UIString('Show previous p
age'), 'largeicon-play-back'); | 196 this._pageBackButton = new UI.ToolbarButton(Common.UIString('Show previous p
age'), 'largeicon-play-back'); |
| 197 this._pageBackButton.addEventListener(UI.ToolbarButton.Events.Click, this._p
ageBackButtonClicked, this); | 197 this._pageBackButton.addEventListener(UI.ToolbarButton.Events.Click, this._p
ageBackButtonClicked, this); |
| 198 editorToolbar.appendToolbarItem(this._pageBackButton); | 198 editorToolbar.appendToolbarItem(this._pageBackButton); |
| 199 | 199 |
| 200 this._pageForwardButton = new UI.ToolbarButton(Common.UIString('Show next pa
ge'), 'largeicon-play'); | 200 this._pageForwardButton = new UI.ToolbarButton(Common.UIString('Show next pa
ge'), 'largeicon-play'); |
| 201 this._pageForwardButton.setEnabled(false); | 201 this._pageForwardButton.setEnabled(false); |
| 202 this._pageForwardButton.addEventListener(UI.ToolbarButton.Events.Click, this
._pageForwardButtonClicked, this); | 202 this._pageForwardButton.addEventListener(UI.ToolbarButton.Events.Click, this
._pageForwardButtonClicked, this); |
| 203 editorToolbar.appendToolbarItem(this._pageForwardButton); | 203 editorToolbar.appendToolbarItem(this._pageForwardButton); |
| 204 | 204 |
| 205 this._keyInputElement = editorToolbar.element.createChild('input', 'key-inpu
t'); | 205 this._keyInputElement = UI.createInput('key-input'); |
| 206 editorToolbar.element.appendChild(this._keyInputElement); |
| 206 this._keyInputElement.placeholder = Common.UIString('Start from key'); | 207 this._keyInputElement.placeholder = Common.UIString('Start from key'); |
| 207 this._keyInputElement.addEventListener('paste', this._keyInputChanged.bind(t
his), false); | 208 this._keyInputElement.addEventListener('paste', this._keyInputChanged.bind(t
his), false); |
| 208 this._keyInputElement.addEventListener('cut', this._keyInputChanged.bind(thi
s), false); | 209 this._keyInputElement.addEventListener('cut', this._keyInputChanged.bind(thi
s), false); |
| 209 this._keyInputElement.addEventListener('keypress', this._keyInputChanged.bin
d(this), false); | 210 this._keyInputElement.addEventListener('keypress', this._keyInputChanged.bin
d(this), false); |
| 210 this._keyInputElement.addEventListener('keydown', this._keyInputChanged.bind
(this), false); | 211 this._keyInputElement.addEventListener('keydown', this._keyInputChanged.bind
(this), false); |
| 211 } | 212 } |
| 212 | 213 |
| 213 /** | 214 /** |
| 214 * @param {!Common.Event} event | 215 * @param {!Common.Event} event |
| 215 */ | 216 */ |
| (...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 379 cell.removeChildren(); | 380 cell.removeChildren(); |
| 380 var objectElement = ObjectUI.ObjectPropertiesSection.defaultObjectPresen
tation(value, undefined, true); | 381 var objectElement = ObjectUI.ObjectPropertiesSection.defaultObjectPresen
tation(value, undefined, true); |
| 381 cell.appendChild(objectElement); | 382 cell.appendChild(objectElement); |
| 382 break; | 383 break; |
| 383 default: | 384 default: |
| 384 } | 385 } |
| 385 | 386 |
| 386 return cell; | 387 return cell; |
| 387 } | 388 } |
| 388 }; | 389 }; |
| OLD | NEW |