nsIWindowCreator.idl 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
  2. *
  3. * This Source Code Form is subject to the terms of the Mozilla Public
  4. * License, v. 2.0. If a copy of the MPL was not distributed with this
  5. * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
  6. /**
  7. * nsIWindowCreator is a callback interface used by Gecko to create
  8. * new browser windows. The application, either Mozilla or an embedding app,
  9. * must provide an implementation of the Window Watcher component and
  10. * notify the WindowWatcher during application initialization.
  11. * @see nsIWindowWatcher
  12. */
  13. #include "nsISupports.idl"
  14. interface nsIWebBrowserChrome;
  15. [scriptable, uuid(30465632-A777-44cc-90F9-8145475EF999)]
  16. interface nsIWindowCreator : nsISupports {
  17. /** Create a new window. Gecko will/may call this method, if made
  18. available to it, to create new windows.
  19. @param parent parent window, if any. null if not. the newly created
  20. window should be made a child/dependent window of
  21. the parent, if any (and if the concept applies
  22. to the underlying OS).
  23. @param chromeFlags chrome features from nsIWebBrowserChrome
  24. @return the new window
  25. */
  26. nsIWebBrowserChrome createChromeWindow(in nsIWebBrowserChrome parent,
  27. in uint32_t chromeFlags);
  28. };
  29. %{C++
  30. // {30465632-A777-44cc-90F9-8145475EF999}
  31. #define NS_WINDOWCREATOR_IID \
  32. {0x30465632, 0xa777, 0x44cc, {0x90, 0xf9, 0x81, 0x45, 0x47, 0x5e, 0xf9, 0x99}}
  33. %}