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: #ifndef nsControllerCommandTable_h_ michael@0: #define nsControllerCommandTable_h_ michael@0: michael@0: michael@0: #include "nsIControllerCommandTable.h" michael@0: #include "nsWeakReference.h" michael@0: #include "nsInterfaceHashtable.h" michael@0: michael@0: class nsIControllerCommand; michael@0: michael@0: class nsControllerCommandTable : public nsIControllerCommandTable, michael@0: public nsSupportsWeakReference michael@0: { michael@0: public: michael@0: michael@0: nsControllerCommandTable(); michael@0: virtual ~nsControllerCommandTable(); michael@0: michael@0: NS_DECL_ISUPPORTS michael@0: michael@0: NS_DECL_NSICONTROLLERCOMMANDTABLE michael@0: michael@0: protected: michael@0: michael@0: // Hash table of nsIControllerCommands, keyed by command name. michael@0: nsInterfaceHashtable mCommandsTable; michael@0: michael@0: // Are we mutable? michael@0: bool mMutable; michael@0: }; michael@0: michael@0: michael@0: #endif // nsControllerCommandTable_h_