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'); |
140 var buttonSpacer = queryRequiredElement(this.topToolbar_, '.button-spacer'); | 142 var buttonSpacer = queryRequiredElement(this.topToolbar_, '.button-spacer'); |
141 | 143 |
142 this.prompt_ = new ImageEditor.Prompt(this.container_, strf); | 144 this.prompt_ = new ImageEditor.Prompt(this.container_, strf); |
143 | 145 |
144 this.errorBanner_ = new ErrorBanner(this.container_); | 146 this.errorBanner_ = new ErrorBanner(this.container_); |
145 | 147 |
146 this.modeButton_ = queryRequiredElement(this.topToolbar_, 'button.mode'); | 148 this.modeButton_ = queryRequiredElement(this.topToolbar_, 'button.mode'); |
147 this.modeButton_.addEventListener('click', | 149 this.modeButton_.addEventListener('click', |
148 this.toggleMode_.bind(this, undefined)); | 150 this.toggleMode_.bind(this, undefined)); |
149 | 151 |
(...skipping 814 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
964 initializePromise.then(reload); | 966 initializePromise.then(reload); |
965 | 967 |
966 /** | 968 /** |
967 * Enteres the debug mode. | 969 * Enteres the debug mode. |
968 */ | 970 */ |
969 window.debugMe = function() { | 971 window.debugMe = function() { |
970 initializePromise.then(function() { | 972 initializePromise.then(function() { |
971 gallery.debugMe(); | 973 gallery.debugMe(); |
972 }); | 974 }); |
973 }; | 975 }; |
OLD | NEW |