| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 /** | 5 /** |
| 6 * Overrided metadata worker's path. | 6 * Overrided metadata worker's path. |
| 7 * @type {string} | 7 * @type {string} |
| 8 */ | 8 */ |
| 9 ContentMetadataProvider.WORKER_SCRIPT = '/js/metadata_worker.js'; | 9 ContentMetadataProvider.WORKER_SCRIPT = '/js/metadata_worker.js'; |
| 10 | 10 |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 this.filenameEdit_.setAttribute('type', 'text'); | 130 this.filenameEdit_.setAttribute('type', 'text'); |
| 131 this.filenameEdit_.addEventListener('blur', | 131 this.filenameEdit_.addEventListener('blur', |
| 132 this.onFilenameEditBlur_.bind(this)); | 132 this.onFilenameEditBlur_.bind(this)); |
| 133 | 133 |
| 134 this.filenameEdit_.addEventListener('focus', | 134 this.filenameEdit_.addEventListener('focus', |
| 135 this.onFilenameFocus_.bind(this)); | 135 this.onFilenameFocus_.bind(this)); |
| 136 | 136 |
| 137 this.filenameEdit_.addEventListener('keydown', | 137 this.filenameEdit_.addEventListener('keydown', |
| 138 this.onFilenameEditKeydown_.bind(this)); | 138 this.onFilenameEditKeydown_.bind(this)); |
| 139 | 139 |
| 140 var middleSpacer = queryRequiredElement(this.bottomToolbar_, | |
| 141 '.middle-spacer'); | |
| 142 var buttonSpacer = queryRequiredElement(this.topToolbar_, '.button-spacer'); | 140 var buttonSpacer = queryRequiredElement(this.topToolbar_, '.button-spacer'); |
| 143 | 141 |
| 144 this.prompt_ = new ImageEditor.Prompt(this.container_, strf); | 142 this.prompt_ = new ImageEditor.Prompt(this.container_, strf); |
| 145 | 143 |
| 146 this.errorBanner_ = new ErrorBanner(this.container_); | 144 this.errorBanner_ = new ErrorBanner(this.container_); |
| 147 | 145 |
| 148 this.modeButton_ = queryRequiredElement(this.topToolbar_, 'button.mode'); | 146 this.modeButton_ = queryRequiredElement(this.topToolbar_, 'button.mode'); |
| 149 this.modeButton_.addEventListener('click', | 147 this.modeButton_.addEventListener('click', |
| 150 this.toggleMode_.bind(this, undefined)); | 148 this.toggleMode_.bind(this, undefined)); |
| 151 | 149 |
| (...skipping 814 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 966 initializePromise.then(reload); | 964 initializePromise.then(reload); |
| 967 | 965 |
| 968 /** | 966 /** |
| 969 * Enteres the debug mode. | 967 * Enteres the debug mode. |
| 970 */ | 968 */ |
| 971 window.debugMe = function() { | 969 window.debugMe = function() { |
| 972 initializePromise.then(function() { | 970 initializePromise.then(function() { |
| 973 gallery.debugMe(); | 971 gallery.debugMe(); |
| 974 }); | 972 }); |
| 975 }; | 973 }; |
| OLD | NEW |