Places:Controller

From MozillaWiki
Jump to navigation Jump to search

Background

The controller is part of the Places System's MVC architecture. The controller is responsible for enabling, disabling and performing commands based on the state of a PlacesView.

Code Location

The Places Controller is implemented in the PlacesController object, which lives in browser/components/places/content/controller.js and is included by chrome://browser/content/places/places.js

The controller is the one constant factor about any Places instantiation. The PlacesController object is required by the views. You must include this script file for things to work.

Functionality

Command Updating

Command Execution

Utilities