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

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

Issue 403723002: Gallery: Match the color of selection UI. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « ui/file_manager/gallery/css/gallery.css ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 'use strict'; 5 'use strict';
6 6
7 /** 7 /**
8 * Slide mode displays a single image and has a set of controls to navigate 8 * Slide mode displays a single image and has a set of controls to navigate
9 * between the images and to edit an image. 9 * between the images and to edit an image.
10 * 10 *
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 this.options_ = util.createChild( 101 this.options_ = util.createChild(
102 this.toolbar_.querySelector('.filename-spacer'), 'options'); 102 this.toolbar_.querySelector('.filename-spacer'), 'options');
103 103
104 this.savedLabel_ = util.createChild(this.options_, 'saved'); 104 this.savedLabel_ = util.createChild(this.options_, 'saved');
105 this.savedLabel_.textContent = this.displayStringFunction_('GALLERY_SAVED'); 105 this.savedLabel_.textContent = this.displayStringFunction_('GALLERY_SAVED');
106 106
107 var overwriteOriginalBox = 107 var overwriteOriginalBox =
108 util.createChild(this.options_, 'overwrite-original'); 108 util.createChild(this.options_, 'overwrite-original');
109 109
110 this.overwriteOriginal_ = util.createChild( 110 this.overwriteOriginal_ = util.createChild(
111 overwriteOriginalBox, 'common white', 'input'); 111 overwriteOriginalBox, '', 'input');
112 this.overwriteOriginal_.type = 'checkbox'; 112 this.overwriteOriginal_.type = 'checkbox';
113 this.overwriteOriginal_.id = 'overwrite-checkbox'; 113 this.overwriteOriginal_.id = 'overwrite-checkbox';
114 util.platform.getPreference(SlideMode.OVERWRITE_KEY, function(value) { 114 util.platform.getPreference(SlideMode.OVERWRITE_KEY, function(value) {
115 // Out-of-the box default is 'true' 115 // Out-of-the box default is 'true'
116 this.overwriteOriginal_.checked = 116 this.overwriteOriginal_.checked =
117 (typeof value !== 'string' || value === 'true'); 117 (typeof value !== 'string' || value === 'true');
118 }.bind(this)); 118 }.bind(this));
119 this.overwriteOriginal_.addEventListener('click', 119 this.overwriteOriginal_.addEventListener('click',
120 this.onOverwriteOriginalClick_.bind(this)); 120 this.onOverwriteOriginalClick_.bind(this));
121 121
(...skipping 1170 matching lines...) Expand 10 before | Expand all | Expand 10 after
1292 done = true; 1292 done = true;
1293 } 1293 }
1294 }.bind(this); 1294 }.bind(this);
1295 }; 1295 };
1296 1296
1297 /** 1297 /**
1298 * If the user touched the image and moved the finger more than SWIPE_THRESHOLD 1298 * If the user touched the image and moved the finger more than SWIPE_THRESHOLD
1299 * horizontally it's considered as a swipe gesture (change the current image). 1299 * horizontally it's considered as a swipe gesture (change the current image).
1300 */ 1300 */
1301 SwipeOverlay.SWIPE_THRESHOLD = 100; 1301 SwipeOverlay.SWIPE_THRESHOLD = 100;
OLDNEW
« no previous file with comments | « ui/file_manager/gallery/css/gallery.css ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698