nsCommandHandler.h 786 B

1234567891011121314151617181920212223242526272829303132333435
  1. /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
  2. /* This Source Code Form is subject to the terms of the Mozilla Public
  3. * License, v. 2.0. If a copy of the MPL was not distributed with this
  4. * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
  5. #ifndef NSCOMMANDHANDLER_H
  6. #define NSCOMMANDHANDLER_H
  7. #include "nsISupports.h"
  8. #include "nsICommandHandler.h"
  9. class nsPIDOMWindowOuter;
  10. class nsCommandHandler
  11. : public nsICommandHandlerInit
  12. , public nsICommandHandler
  13. {
  14. public:
  15. nsCommandHandler();
  16. NS_DECL_ISUPPORTS
  17. NS_DECL_NSICOMMANDHANDLERINIT
  18. NS_DECL_NSICOMMANDHANDLER
  19. protected:
  20. virtual ~nsCommandHandler();
  21. private:
  22. nsresult GetCommandHandler(nsICommandHandler** aCommandHandler);
  23. nsPIDOMWindowOuter* mWindow;
  24. };
  25. #endif