Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
michael@0 | 1 | /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ |
michael@0 | 2 | /* ***** BEGIN LICENSE BLOCK ***** |
michael@0 | 3 | * Version: Mozilla-sample-code 1.0 |
michael@0 | 4 | * |
michael@0 | 5 | * Copyright (c) 2002 Netscape Communications Corporation and |
michael@0 | 6 | * other contributors |
michael@0 | 7 | * |
michael@0 | 8 | * Permission is hereby granted, free of charge, to any person obtaining a |
michael@0 | 9 | * copy of this Mozilla sample software and associated documentation files |
michael@0 | 10 | * (the "Software"), to deal in the Software without restriction, including |
michael@0 | 11 | * without limitation the rights to use, copy, modify, merge, publish, |
michael@0 | 12 | * distribute, sublicense, and/or sell copies of the Software, and to permit |
michael@0 | 13 | * persons to whom the Software is furnished to do so, subject to the |
michael@0 | 14 | * following conditions: |
michael@0 | 15 | * |
michael@0 | 16 | * The above copyright notice and this permission notice shall be included |
michael@0 | 17 | * in all copies or substantial portions of the Software. |
michael@0 | 18 | * |
michael@0 | 19 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS |
michael@0 | 20 | * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
michael@0 | 21 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL |
michael@0 | 22 | * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
michael@0 | 23 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING |
michael@0 | 24 | * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
michael@0 | 25 | * DEALINGS IN THE SOFTWARE. |
michael@0 | 26 | * |
michael@0 | 27 | * Contributor(s): |
michael@0 | 28 | * |
michael@0 | 29 | * ***** END LICENSE BLOCK ***** */ |
michael@0 | 30 | |
michael@0 | 31 | #include "nsIWebBrowserChrome.h" |
michael@0 | 32 | #include "WindowCreator.h" |
michael@0 | 33 | #include "winEmbed.h" |
michael@0 | 34 | |
michael@0 | 35 | WindowCreator::WindowCreator() |
michael@0 | 36 | { |
michael@0 | 37 | } |
michael@0 | 38 | |
michael@0 | 39 | WindowCreator::~WindowCreator() |
michael@0 | 40 | { |
michael@0 | 41 | } |
michael@0 | 42 | |
michael@0 | 43 | NS_IMPL_ISUPPORTS(WindowCreator, nsIWindowCreator) |
michael@0 | 44 | |
michael@0 | 45 | NS_IMETHODIMP |
michael@0 | 46 | WindowCreator::CreateChromeWindow(nsIWebBrowserChrome *parent, |
michael@0 | 47 | uint32_t chromeFlags, |
michael@0 | 48 | nsIWebBrowserChrome **_retval) |
michael@0 | 49 | { |
michael@0 | 50 | NS_ENSURE_ARG_POINTER(_retval); |
michael@0 | 51 | AppCallbacks::CreateBrowserWindow(int32_t(chromeFlags), parent, _retval); |
michael@0 | 52 | return *_retval ? NS_OK : NS_ERROR_FAILURE; |
michael@0 | 53 | } |