WindowsPreviewPerTab.jsm File Reference

Go to the source code of this file.

Functions

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 ()
 

Variables

var EXPORTED_SYMBOLS = ["AeroPeek"]
 
const Cc = Components.classes
 
const Ci = Components.interfaces
 
const Cu = Components.utils
 
const TOGGLE_PREF_NAME = "browser.taskbar.previews.enable"
 
const DISABLE_THRESHOLD_PREF_NAME = "browser.taskbar.previews.max"
 
const CACHE_EXPIRATION_TIME_PREF_NAME = "browser.taskbar.previews.cachetime"
 
const WINTASKBAR_CONTRACTID = "@mozilla.org/windows-taskbar;1"
 
PreviewController prototype
 

Function Documentation

function _imageFromURI (   uri,
  callback 
)

Definition at line 108 of file WindowsPreviewPerTab.jsm.

Here is the caller graph for this function:

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 
)

Definition at line 128 of file WindowsPreviewPerTab.jsm.

Here is the call graph for this function:

Cu import ( "resource://gre/modules/XPCOMUtils.jsm"  )
AeroPeek initialize ( )
function PreviewController (   win,
  tab 
)

Definition at line 151 of file WindowsPreviewPerTab.jsm.

function TabWindow (   win)

Definition at line 372 of file WindowsPreviewPerTab.jsm.

Variable Documentation

const CACHE_EXPIRATION_TIME_PREF_NAME = "browser.taskbar.previews.cachetime"

Definition at line 91 of file WindowsPreviewPerTab.jsm.

const Cc = Components.classes

Definition at line 79 of file WindowsPreviewPerTab.jsm.

Definition at line 80 of file WindowsPreviewPerTab.jsm.

const Cu = Components.utils

Definition at line 81 of file WindowsPreviewPerTab.jsm.

const DISABLE_THRESHOLD_PREF_NAME = "browser.taskbar.previews.max"

Definition at line 89 of file WindowsPreviewPerTab.jsm.

var EXPORTED_SYMBOLS = ["AeroPeek"]

Definition at line 77 of file WindowsPreviewPerTab.jsm.

TabWindow prototype

Definition at line 176 of file WindowsPreviewPerTab.jsm.

const TOGGLE_PREF_NAME = "browser.taskbar.previews.enable"

Definition at line 87 of file WindowsPreviewPerTab.jsm.

const WINTASKBAR_CONTRACTID = "@mozilla.org/windows-taskbar;1"

Definition at line 93 of file WindowsPreviewPerTab.jsm.