Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(247)

Side by Side Diff: ui/file_manager/gallery/js/gallery.js

Issue 1167533004: Move overwrite original checkbox and saved label to bottom toolbar. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698