Go to the source code of this file.
|
Cu | import ("resource://gre/modules/XPCOMUtils.jsm") |
|
XPCOMUtils | defineLazyServiceGetter (this,"ioSvc","@mozilla.org/network/io-service;1","nsIIOService") |
|
function | _imageFromURI (uri, callback) |
|
function | getFaviconAsImage (iconurl, callback) |
|
function | PreviewController (win, tab) |
|
XPCOMUtils | defineLazyGetter (PreviewController.prototype,"canvasPreviewFlags", function(){let canvasInterface=Ci.nsIDOMCanvasRenderingContext2D;return canvasInterface.DRAWWINDOW_DRAW_VIEW|canvasInterface.DRAWWINDOW_DRAW_CARET|canvasInterface.DRAWWINDOW_DO_NOT_FLUSH;}) |
|
function | TabWindow (win) |
|
XPCOMUtils | defineLazyGetter (AeroPeek,"cacheTimer", function() Cc["@mozilla.org/timer;1"].createInstance(Ci.nsITimer)) |
|
AeroPeek | initialize () |
|
function _imageFromURI |
( |
|
uri, |
|
|
|
callback |
|
) |
| |
XPCOMUtils defineLazyGetter |
( |
PreviewController. |
prototype, |
|
|
"canvasPreviewFlags" |
, |
|
|
function(){let canvasInterface=Ci.nsIDOMCanvasRenderingContext2D;return canvasInterface.DRAWWINDOW_DRAW_VIEW|canvasInterface.DRAWWINDOW_DRAW_CARET|canvasInterface.DRAWWINDOW_DO_NOT_FLUSH;} |
|
|
) |
| |
XPCOMUtils defineLazyGetter |
( |
AeroPeek |
, |
|
|
"cacheTimer" |
, |
|
|
function() Cc.createInstance(Ci.nsITimer) |
["@mozilla.org/timer;1"] |
|
) |
| |
XPCOMUtils defineLazyServiceGetter |
( |
this |
, |
|
|
"ioSvc" |
, |
|
|
"@mozilla.org/network/io-service;1" |
, |
|
|
"nsIIOService" |
|
|
) |
| |
function getFaviconAsImage |
( |
|
iconurl, |
|
|
|
callback |
|
) |
| |
Cu import |
( |
"resource://gre/modules/XPCOMUtils.jsm" |
| ) |
|
function PreviewController |
( |
|
win, |
|
|
|
tab |
|
) |
| |
function TabWindow |
( |
|
win | ) |
|
const CACHE_EXPIRATION_TIME_PREF_NAME = "browser.taskbar.previews.cachetime" |
const Cc = Components.classes |
const Cu = Components.utils |
const DISABLE_THRESHOLD_PREF_NAME = "browser.taskbar.previews.max" |
var EXPORTED_SYMBOLS = ["AeroPeek"] |
const TOGGLE_PREF_NAME = "browser.taskbar.previews.enable" |
const WINTASKBAR_CONTRACTID = "@mozilla.org/windows-taskbar;1" |