michael@0: /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #include "nsISupports.idl" michael@0: #include "domstubs.idl" michael@0: michael@0: /* michael@0: The nsPICommandUpdater interface is used by modules that implement michael@0: commands, to tell the command manager that commands need updating. michael@0: This is a private interface; embedders should not use it. michael@0: michael@0: Command-implementing modules should get one of these by a QI michael@0: from an nsICommandManager. michael@0: */ michael@0: michael@0: [scriptable, uuid(B135F602-0BFE-11D5-A73C-F0E420E8293C)] michael@0: interface nsPICommandUpdater : nsISupports michael@0: { michael@0: michael@0: /* michael@0: * Init the command updater, passing an nsIDOMWindow which michael@0: * is the window that the command updater lives on. michael@0: * michael@0: */ michael@0: void init(in nsIDOMWindow aWindow); michael@0: michael@0: /* michael@0: * Notify the command manager that the status of a command michael@0: * changed. It may have changed from enabled to disabled, michael@0: * or vice versa, or become toggled etc. michael@0: */ michael@0: void commandStatusChanged(in string aCommandName); michael@0: michael@0: }; michael@0: michael@0: