1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 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/. */
7 #ifndef nsColorPicker_h__
8 #define nsColorPicker_h__
14 #include "nsIColorPicker.h"
16 #include "nsThreadUtils.h"
20 class AsyncColorChooser
:
24 AsyncColorChooser(DWORD aInitialColor
, nsIWidget
* aParentWidget
, nsIColorPickerShownCallback
* aCallback
);
25 NS_IMETHOD
Run() MOZ_OVERRIDE
;
29 nsCOMPtr
<nsIWidget
> mParentWidget
;
30 nsCOMPtr
<nsIColorPickerShownCallback
> mCallback
;
39 virtual ~nsColorPicker();
43 NS_IMETHOD
Init(nsIDOMWindow
* parent
, const nsAString
& title
, const nsAString
& aInitialColor
);
44 NS_IMETHOD
Open(nsIColorPickerShownCallback
* aCallback
);
48 nsCOMPtr
<nsIWidget
> mParentWidget
;
51 #endif // nsColorPicker_h__