aboutsummaryrefslogtreecommitdiff
path: root/js/ninja.reel/ninja.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/ninja.reel/ninja.js')
-rwxr-xr-xjs/ninja.reel/ninja.js41
1 files changed, 36 insertions, 5 deletions
diff --git a/js/ninja.reel/ninja.js b/js/ninja.reel/ninja.js
index e4f447d2..33808cf3 100755
--- a/js/ninja.reel/ninja.js
+++ b/js/ninja.reel/ninja.js
@@ -4,10 +4,11 @@
4 (c) Copyright 2011 Motorola Mobility, Inc. All Rights Reserved. 4 (c) Copyright 2011 Motorola Mobility, Inc. All Rights Reserved.
5 </copyright> */ 5 </copyright> */
6 6
7var Montage = require("montage/core/core").Montage, 7var Montage = require("montage/core/core").Montage,
8 Component = require("montage/ui/component").Component, 8 Component = require("montage/ui/component").Component,
9 UndoManager = require("montage/core/undo-manager").UndoManager, 9 UndoManager = require("montage/core/undo-manager").UndoManager,
10 AppData = require("js/data/appdata").AppData; 10 AppData = require("js/data/appdata").AppData,
11 Popup = require("js/components/popup.reel").Popup;
11 12
12var matrix = require("js/lib/math/matrix"); 13var matrix = require("js/lib/math/matrix");
13var NjUtils = require("js/lib/NJUtils").NJUtils; 14var NjUtils = require("js/lib/NJUtils").NJUtils;
@@ -345,14 +346,44 @@ exports.Ninja = Montage.create(Component, {
345 346
346 347
347 //////////////////////////////////////////////////////////////////// 348 ////////////////////////////////////////////////////////////////////
349 ////////////////////////////////////////////////////////////////////
348 //TODO: Expand method to allow other browsers for preview 350 //TODO: Expand method to allow other browsers for preview
349 executeChromePreview: { 351 executeChromePreview: {
350 value: function () { 352 value: function () {
351 this.currentDocument.model.browserPreview('chrome'); 353 //TODO: Make into proper component
354 this.saveOperationScreen = {};
355 this._saveOperationPopup = {};
356 //Show
357 this.saveOperationScreen.show = function (ctxt) {
358 //
359 ctxt._saveOperationPopup.blackout = document.createElement('div');
360 ctxt._saveOperationPopup.blackout.style.width = '100%';
361 ctxt._saveOperationPopup.blackout.style.height = '100%';
362 ctxt._saveOperationPopup.blackout.style.background = 'rgba(0,0,0,0.8)'; //'-webkit-radial-gradient(center, ellipse cover, rgba(0,0,0,.65) 0%, rgba(0,0,0,0.8) 80%)';
363 ctxt.application.ninja.popupManager.addPopup(ctxt._saveOperationPopup.blackout);
364 };
365 //Hide
366 this.saveOperationScreen.hide = function (ctxt) {
367 ctxt.application.ninja.popupManager.removePopup(ctxt._saveOperationPopup.blackout);
368 };
369 //
370 this.currentDocument.model.browserPreview('chrome', this.saveOperationScreen, this);
352 } 371 }
353 }, 372 },
354 //////////////////////////////////////////////////////////////////// 373 ////////////////////////////////////////////////////////////////////
355 374
375 //TODO: Make into proper component
376 _saveOperationPopup: {
377 value: null
378 },
379 //TODO: Make into proper component
380 saveOperationScreen: {
381 value: null
382 },
383
384 ////////////////////////////////////////////////////////////////////
385 ////////////////////////////////////////////////////////////////////
386
356 387
357 handleResize: { 388 handleResize: {
358 value: function() { 389 value: function() {