ewk_color_picker_private.h [plain text]
#ifndef ewk_color_picker_private_h
#define ewk_color_picker_private_h
#if ENABLE(INPUT_TYPE_COLOR)
#include "WKRetainPtr.h"
#include <WebCore/Color.h>
#include <wtf/PassOwnPtr.h>
class EwkColorPicker {
public:
static PassOwnPtr<EwkColorPicker> create(WKColorPickerResultListenerRef colorPickerListener, const WebCore::Color& initialColor)
{
return adoptPtr(new EwkColorPicker(colorPickerListener, initialColor));
}
const WebCore::Color& color() const;
void setColor(const WebCore::Color&);
private:
EwkColorPicker(WKColorPickerResultListenerRef colorPickerListener, const WebCore::Color& initialColor);
WKRetainPtr<WKColorPickerResultListenerRef> m_colorPickerListener;
WebCore::Color m_color;
};
#endif // ENABLE(INPUT_TYPE_COLOR)
#endif // ewk_color_picker_private_h