Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add timeline viewer

  • Loading branch information...
commit 2c1c25046aa4019793d55c472cd3d0ef3c95fef5 1 parent 0a74273
@mitsugu authored
View
4 application.ini
@@ -1,7 +1,7 @@
[App]
Name=ustplayer
-Version=1.2.5
-BuildID=20110405
+Version=1.3.0
+BuildID=20110521
ID=ustplayer@gmail.com
Vendor=Mitsugu Oyama
Copyright=Copyright (c) 2010-2011 mitsugu.oyama
View
5 chrome/content/player.js
@@ -4,8 +4,11 @@
let title=window.opener.ustplayer.title;
var player={
+ urlTimeLine: '',
dispTimeLine: function(){
- system.openBrowser(urlTimeLine);
+ this.urlTimeLine=urlTimeLine;
+ let mode='chrome,titlebar,centerscreen,modal';
+ window.open('chrome://ustplayer/content/timeline.xul','',mode);
}
};
let init=function(){
View
7 chrome/content/timeline.js
@@ -0,0 +1,7 @@
+{
+ let urlTimeLine=window.opener.player.urlTimeLine;
+ let init=function(){
+ document.getElementById('frame').setAttribute('src',urlTimeLine);
+ };
+ window.addEventListener('load',init,false);
+}
View
26 chrome/content/timeline.xul
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
+<?xml-stylesheet type="text/css" href="chrome://ustplayer/skin/timeline.css"?>
+<!DOCTYPE window>
+<window id='timeline'
+ title='TimeLine'
+ xmlns='http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul'
+ windowtype="navigator:browser">
+ <script type="application/x-javascript"
+ src="chrome://ustplayer/content/timeline.js"/>
+ <vbox id="main" flex="1">
+ <hbox id="contents" flex="1">
+ <spacer flex="1"/>
+ <browser id="frame" src="" type="content-primary" flex="1"/>
+ <spacer flex="1"/>
+ </hbox>
+ <hbox id="button_panel">
+ <spacer flex="1"/>
+ <button label="Close"
+ accesskey="c"
+ tabindex="999"
+ oncommand="window.close();"/>
+ <spacer flex="1"/>
+ </hbox>
+ </vbox>
+</window>
View
9 chrome/skin/classic/timeline.css
@@ -0,0 +1,9 @@
+@namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);
+#frame {
+ margin:1em;
+ width:26em;
+ height:40em;
+}
+#button_panel {
+ margin-bottom:0.5em;
+}
View
1  defaults/preferences/prefs.js
@@ -1,2 +1,3 @@
pref("toolkit.defaultChromeURI", "chrome://ustplayer/content/ustplayer.xul");
pref("toolkit.singletonWindowType", "xulmine");
+pref("browser.chromeURL", "chrome://ustplayer/content/timeline.xul");
Please sign in to comment.
Something went wrong with that request. Please try again.