michael@0: /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ michael@0: /* ***** BEGIN LICENSE BLOCK ***** michael@0: * Version: Mozilla-sample-code 1.0 michael@0: * michael@0: * Copyright (c) 2002 Netscape Communications Corporation and michael@0: * other contributors michael@0: * michael@0: * Permission is hereby granted, free of charge, to any person obtaining a michael@0: * copy of this Mozilla sample software and associated documentation files michael@0: * (the "Software"), to deal in the Software without restriction, including michael@0: * without limitation the rights to use, copy, modify, merge, publish, michael@0: * distribute, sublicense, and/or sell copies of the Software, and to permit michael@0: * persons to whom the Software is furnished to do so, subject to the michael@0: * following conditions: michael@0: * michael@0: * The above copyright notice and this permission notice shall be included michael@0: * in all copies or substantial portions of the Software. michael@0: * michael@0: * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS michael@0: * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, michael@0: * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL michael@0: * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER michael@0: * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING michael@0: * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER michael@0: * DEALINGS IN THE SOFTWARE. michael@0: * michael@0: * Contributor(s): michael@0: * michael@0: * ***** END LICENSE BLOCK ***** */ michael@0: michael@0: #include "nsIWebBrowserChrome.h" michael@0: #include "WindowCreator.h" michael@0: #include "winEmbed.h" michael@0: michael@0: WindowCreator::WindowCreator() michael@0: { michael@0: } michael@0: michael@0: WindowCreator::~WindowCreator() michael@0: { michael@0: } michael@0: michael@0: NS_IMPL_ISUPPORTS(WindowCreator, nsIWindowCreator) michael@0: michael@0: NS_IMETHODIMP michael@0: WindowCreator::CreateChromeWindow(nsIWebBrowserChrome *parent, michael@0: uint32_t chromeFlags, michael@0: nsIWebBrowserChrome **_retval) michael@0: { michael@0: NS_ENSURE_ARG_POINTER(_retval); michael@0: AppCallbacks::CreateBrowserWindow(int32_t(chromeFlags), parent, _retval); michael@0: return *_retval ? NS_OK : NS_ERROR_FAILURE; michael@0: }