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

Side by Side Diff: chrome/browser/resources/file_manager/js/image_editor/gallery.js

Issue 9004022: [filebrowser] In image editor, remove focus from file name edit when clicked outside. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years 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 | « no previous file | 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 (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 * Base class that Ribbon uses to display photos. 6 * Base class that Ribbon uses to display photos.
7 */ 7 */
8 8
9 function RibbonClient() {} 9 function RibbonClient() {}
10 10
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 doc.body.addEventListener('mousemove', window.galleryMouseMove); 84 doc.body.addEventListener('mousemove', window.galleryMouseMove);
85 85
86 this.closeButton_ = doc.createElement('div'); 86 this.closeButton_ = doc.createElement('div');
87 this.closeButton_.className = 'close tool dimmable'; 87 this.closeButton_.className = 'close tool dimmable';
88 this.closeButton_.appendChild(doc.createElement('div')); 88 this.closeButton_.appendChild(doc.createElement('div'));
89 this.closeButton_.addEventListener('click', this.onClose_.bind(this)); 89 this.closeButton_.addEventListener('click', this.onClose_.bind(this));
90 this.container_.appendChild(this.closeButton_); 90 this.container_.appendChild(this.closeButton_);
91 91
92 this.imageContainer_ = doc.createElement('div'); 92 this.imageContainer_ = doc.createElement('div');
93 this.imageContainer_.className = 'image-container'; 93 this.imageContainer_.className = 'image-container';
94 this.imageContainer_.addEventListener('click', (function() {
95 this.filenameEdit_.blur();
96 }).bind(this));
94 this.container_.appendChild(this.imageContainer_); 97 this.container_.appendChild(this.imageContainer_);
95 98
96 this.toolbar_ = doc.createElement('div'); 99 this.toolbar_ = doc.createElement('div');
97 this.toolbar_.className = 'toolbar tool dimmable'; 100 this.toolbar_.className = 'toolbar tool dimmable';
98 this.container_.appendChild(this.toolbar_); 101 this.container_.appendChild(this.toolbar_);
99 102
100 var filenameSpacer = doc.createElement('div'); 103 var filenameSpacer = doc.createElement('div');
101 filenameSpacer.className = 'filename-spacer'; 104 filenameSpacer.className = 'filename-spacer';
102 this.toolbar_.appendChild(filenameSpacer); 105 this.toolbar_.appendChild(filenameSpacer);
103 106
(...skipping 1024 matching lines...) Expand 10 before | Expand all | Expand 10 after
1128 ShareMode.prototype.setUp = function() { 1131 ShareMode.prototype.setUp = function() {
1129 ImageEditor.Mode.prototype.setUp.apply(this, arguments); 1132 ImageEditor.Mode.prototype.setUp.apply(this, arguments);
1130 ImageUtil.setAttribute(this.menu_, 'hidden', false); 1133 ImageUtil.setAttribute(this.menu_, 'hidden', false);
1131 ImageUtil.setAttribute(this.button_, 'pressed', false); 1134 ImageUtil.setAttribute(this.button_, 'pressed', false);
1132 }; 1135 };
1133 1136
1134 ShareMode.prototype.cleanUpUI = function() { 1137 ShareMode.prototype.cleanUpUI = function() {
1135 ImageEditor.Mode.prototype.cleanUpUI.apply(this, arguments); 1138 ImageEditor.Mode.prototype.cleanUpUI.apply(this, arguments);
1136 ImageUtil.setAttribute(this.menu_, 'hidden', true); 1139 ImageUtil.setAttribute(this.menu_, 'hidden', true);
1137 }; 1140 };
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698