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

Unified Diff: chrome/browser/resources/file_manager/gallery_harness.html

Issue 10919292: Photo Editor: better mode transitions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/file_manager/gallery_harness.html
diff --git a/chrome/browser/resources/file_manager/gallery_harness.html b/chrome/browser/resources/file_manager/gallery_harness.html
index 5643d6245c1c4108e0b47c0157b3394ecda62f6c..ae31fd6e13e00fc38bd10aead77d5ad1c6dd4917 100644
--- a/chrome/browser/resources/file_manager/gallery_harness.html
+++ b/chrome/browser/resources/file_manager/gallery_harness.html
@@ -32,14 +32,24 @@
function initGallery(galleryWindow) {
galleryWindow.chrome.fileBrowserPrivate.FS_TYPE = window.TEMPORARY;
- galleryWindow.Gallery.openStandalone(GALLERY_ROOT);
+
+ var path = location.hash ?
+ decodeURIComponent(location.hash.substr(1)) :
+ GALLERY_ROOT;
+
+ var pageState;
+ try {
+ pageState = JSON.parse(decodeURIComponent(location.search.substr(1)));
+ } catch (ignore) {}
+
+ galleryWindow.Gallery.openStandalone(path, pageState);
}
function loadGallery() {
var iframe = document.createElement('iframe');
document.body.appendChild(iframe);
iframe.onload = function() { initGallery(iframe.contentWindow) };
- iframe.src = "gallery.html";
+ iframe.src = 'gallery.html';
}
function importImages(filesystem) {

Powered by Google App Engine
This is Rietveld 408576698