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 * Slide mode displays a single image and has a set of controls to navigate | 6 * Slide mode displays a single image and has a set of controls to navigate |
7 * between the images and to edit an image. | 7 * between the images and to edit an image. |
8 * | 8 * |
9 * @param {!HTMLElement} container Main container element. | 9 * @param {!HTMLElement} container Main container element. |
10 * @param {!HTMLElement} content Content container element. | 10 * @param {!HTMLElement} content Content container element. |
(...skipping 1682 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1693 var requests = {}; | 1693 var requests = {}; |
1694 requests[SlideMode.OVERWRITE_BUBBLE_KEY] = value; | 1694 requests[SlideMode.OVERWRITE_BUBBLE_KEY] = value; |
1695 chrome.storage.local.set(requests); | 1695 chrome.storage.local.set(requests); |
1696 }; | 1696 }; |
1697 | 1697 |
1698 /** | 1698 /** |
1699 * Prints the current item. | 1699 * Prints the current item. |
1700 * @private | 1700 * @private |
1701 */ | 1701 */ |
1702 SlideMode.prototype.print_ = function() { | 1702 SlideMode.prototype.print_ = function() { |
| 1703 this.stopEditing_(); |
1703 cr.dispatchSimpleEvent(this, 'useraction'); | 1704 cr.dispatchSimpleEvent(this, 'useraction'); |
1704 window.print(); | 1705 window.print(); |
1705 }; | 1706 }; |
1706 | 1707 |
1707 /** | 1708 /** |
1708 * Shows progress bar. | 1709 * Shows progress bar. |
1709 * @param {!GalleryItem} item | 1710 * @param {!GalleryItem} item |
1710 * @private | 1711 * @private |
1711 */ | 1712 */ |
1712 SlideMode.prototype.showProgressBar_ = function(item) { | 1713 SlideMode.prototype.showProgressBar_ = function(item) { |
(...skipping 423 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2136 /** | 2137 /** |
2137 * Handles mouse up events. | 2138 * Handles mouse up events. |
2138 * @param {!Event} event Wheel event. | 2139 * @param {!Event} event Wheel event. |
2139 * @private | 2140 * @private |
2140 */ | 2141 */ |
2141 TouchHandler.prototype.onMouseUp_ = function(event) { | 2142 TouchHandler.prototype.onMouseUp_ = function(event) { |
2142 if (event.button !== 0) | 2143 if (event.button !== 0) |
2143 return; | 2144 return; |
2144 this.clickStarted_ = false; | 2145 this.clickStarted_ = false; |
2145 }; | 2146 }; |
OLD | NEW |