widget/nsColorPickerProxy.h
author Nick Alexander <nalexander@mozilla.com>
Tue, 25 Nov 2014 17:04:55 -0800
changeset 243921 3397a68199cc4cd46fdb217f00dd2237807a5683
parent 236314 41c37790896e424e2743811d3d19be00068ce941
child 257987 a20c7910a82fa2df2f3398c1108d102bac9128b0
permissions -rw-r--r--
Bug 1098667 - Part 2: Add "Finish migrating" view to Remote Tabs home panel. r=rnewman

/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

#ifndef nsColorPickerProxy_h
#define nsColorPickerProxy_h

#include "nsIColorPicker.h"

#include "mozilla/dom/PColorPickerChild.h"

class nsColorPickerProxy MOZ_FINAL : public nsIColorPicker,
                                     public mozilla::dom::PColorPickerChild
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSICOLORPICKER

  nsColorPickerProxy() {}

  virtual bool RecvUpdate(const nsString& aColor) MOZ_OVERRIDE;
  virtual bool Recv__delete__(const nsString& aColor) MOZ_OVERRIDE;

private:
  ~nsColorPickerProxy() {}

  nsCOMPtr<nsIColorPickerShownCallback> mCallback;
  nsString mTitle;
  nsString mInitialColor;
};

#endif // nsColorPickerProxy_h