31 if (typeof(
Cc) ==
"undefined")
32 var
Cc = Components.classes;
33 if (typeof(
Ci) ==
"undefined")
34 var
Ci = Components.interfaces;
35 if (typeof(
Cr) ==
"undefined")
36 var
Cr = Components.results;
37 if (typeof(
Cu) ==
"undefined")
38 var
Cu = Components.utils;
40 Cu.import(
"resource://app/jsmodules/DOMUtils.jsm");
41 Cu.import(
"resource://app/jsmodules/SBDataRemoteUtils.jsm");
42 Cu.import(
"resource://app/jsmodules/SBUtils.jsm");
48 _mediacoreManager:
null,
50 _videoFullscreenDataRemote:
null,
56 get VIDEO_FULLSCREEN_DR_KEY() {
57 const dataRemoteKey =
"video.fullscreen";
65 toggleFullscreen:
function vcc_toggleFullscreen() {
66 this._videoFullscreenDataRemote.boolValue =
67 !this._videoFullscreenDataRemote.boolValue;
74 _initialize:
function vcc__initialize() {
75 this._mediacoreManager =
76 Cc[
"@songbirdnest.com/Songbird/Mediacore/Manager;1"]
77 .getService(Ci.sbIMediacoreManager);
78 this._videoFullscreenDataRemote =
81 var useTransparentGraphics =
true;
82 if (
"@songbirdnest.com/Songbird/WindowChromeService;1" in Cc) {
83 var winChromeService =
84 Cc[
"@songbirdnest.com/Songbird/WindowChromeService;1"]
85 .getService(Ci.sbIWindowChromeService);
86 useTransparentGraphics = winChromeService.isCompositionEnabled;
89 if (useTransparentGraphics) {
90 var osdWindow = document.getElementById(
"video_osd_controls_win");
91 osdWindow.setAttribute(
"transparent",
true);
95 _shutdown:
function vcc__shutdown() {
96 this._mediacoreManager =
null;
97 this._videoFullscreenDataRemote =
null;
function SBNewDataRemote(aKey, aRoot)
Create a new data remote object.
var videoControlsController