widget/xpwidgets/nsColorPickerProxy.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/widget/xpwidgets/nsColorPickerProxy.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,32 @@
     1.4 +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
     1.5 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.7 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.8 +
     1.9 +#ifndef nsColorPickerProxy_h
    1.10 +#define nsColorPickerProxy_h
    1.11 +
    1.12 +#include "nsIColorPicker.h"
    1.13 +
    1.14 +#include "mozilla/dom/PColorPickerChild.h"
    1.15 +
    1.16 +class nsColorPickerProxy MOZ_FINAL : public nsIColorPicker,
    1.17 +                                     public mozilla::dom::PColorPickerChild
    1.18 +{
    1.19 +public:
    1.20 +  NS_DECL_ISUPPORTS
    1.21 +  NS_DECL_NSICOLORPICKER
    1.22 +
    1.23 +  nsColorPickerProxy() {}
    1.24 +  ~nsColorPickerProxy() {}
    1.25 +
    1.26 +  virtual bool RecvUpdate(const nsString& aColor) MOZ_OVERRIDE;
    1.27 +  virtual bool Recv__delete__(const nsString& aColor) MOZ_OVERRIDE;
    1.28 +
    1.29 +private:
    1.30 +  nsCOMPtr<nsIColorPickerShownCallback> mCallback;
    1.31 +  nsString mTitle;
    1.32 +  nsString mInitialColor;
    1.33 +};
    1.34 +
    1.35 +#endif // nsColorPickerProxy_h

mercurial