controller.js File Reference

Go to the source code of this file.

Functions

function InsertionPoint (aItemId, aIndex, aOrientation, aIsTag, aDropNearItemId)
 
function PlacesController (aView)
 
function goUpdatePlacesCommands ()
 
function doGetPlacesControllerForCommand (aCommand)
 
function goDoPlacesCommand (aCommand)
 

Variables

const ORGANIZER_ROOT_BOOKMARKS = "place:folder=BOOKMARKS_MENU&excludeItems=1&queryType=1"
 
const ORGANIZER_SUBSCRIPTIONS_QUERY = "place:annotation=livemark%2FfeedURI"
 
const RELOAD_ACTION_NOTHING = 0
 
const RELOAD_ACTION_INSERT = 1
 
const RELOAD_ACTION_REMOVE = 2
 
const RELOAD_ACTION_MOVE = 3
 
const REMOVE_PAGES_CHUNKLEN = 300
 
const REMOVE_PAGES_MAX_SINGLEREMOVES = 10
 
InsertionPoint prototype
 
var PlacesControllerDragHelper
 

Function Documentation

function doGetPlacesControllerForCommand (   aCommand)

Definition at line 1641 of file controller.js.

Here is the call graph for this function:

Here is the caller graph for this function:

function goDoPlacesCommand (   aCommand)

Definition at line 1664 of file controller.js.

Here is the call graph for this function:

function goUpdatePlacesCommands ( )

Definition at line 1613 of file controller.js.

Here is the call graph for this function:

function InsertionPoint (   aItemId,
  aIndex,
  aOrientation,
  aIsTag,
  aDropNearItemId 
)

Represents an insertion point within a container where we can insert items.

Parameters
aItemIdThe identifier of the parent container
aIndexThe index within the container where we should insert
aOrientationThe orientation of the insertion. NOTE: the adjustments to the insertion point to accommodate the orientation should be done by the person who constructs the IP, not the user. The orientation is provided for informational purposes only!
[optional]aIsTag Indicates if parent container is a tag
[optional]aDropNearItemId When defined we will calculate index based on this itemId

Definition at line 84 of file controller.js.

function PlacesController (   aView)

Places Controller

Definition at line 113 of file controller.js.

Variable Documentation

const ORGANIZER_ROOT_BOOKMARKS = "place:folder=BOOKMARKS_MENU&excludeItems=1&queryType=1"

Definition at line 42 of file controller.js.

const ORGANIZER_SUBSCRIPTIONS_QUERY = "place:annotation=livemark%2FfeedURI"

Definition at line 43 of file controller.js.

var PlacesControllerDragHelper

Handles drag and drop operations for views. Note that this is view agnostic! You should not use PlacesController._view within these methods, since the view that the item(s) have been dropped on was not necessarily active. Drop functions are passed the view that is being dropped on.

Definition at line 1333 of file controller.js.

PlacesController prototype
Initial value:
= {
set index(val) {
return this._index = val;
},
get index() {
if (this.dropNearItemId > 0) {
var index = PlacesUtils.bookmarks.getItemIndex(this.dropNearItemId);
return this.orientation == Ci.nsITreeView.DROP_BEFORE ? index : index + 1;
}
return this._index;
}
}
this _dialogInput val(dateText)
const Ci

Definition at line 93 of file controller.js.

const RELOAD_ACTION_INSERT = 1

Definition at line 48 of file controller.js.

const RELOAD_ACTION_MOVE = 3

Definition at line 53 of file controller.js.

const RELOAD_ACTION_NOTHING = 0

Definition at line 46 of file controller.js.

const RELOAD_ACTION_REMOVE = 2

Definition at line 50 of file controller.js.

const REMOVE_PAGES_CHUNKLEN = 300

Definition at line 59 of file controller.js.

const REMOVE_PAGES_MAX_SINGLEREMOVES = 10

Definition at line 64 of file controller.js.