| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 }; |
| OLD | NEW |