MozillaZine

NsIWindowMediator

From MozillaZine Knowledge Base

(Difference between revisions)

Revision as of 23:59, 27 April 2005

This page is part of the extension development documentation project.

Ask your questions in MozillaZine Forums. Also try browsing example code.

Note: development documentation is in process of being moved to Mozilla Development Center (MDC).

Window mediator is Mozilla component that keeps track of open windows. It's accessed through nsIWindowMediator interface. Two most common uses of nsIWindowMediator are

  1. Getting the most recent / any window of given type.
  2. Enumerating all windows of given type.

Examples below.

Getting most recent window

Enumerating windows

References