| Index: Source/platform/ColorSuggestion.h
|
| diff --git a/Source/core/dom/Promise.h b/Source/platform/ColorSuggestion.h
|
| similarity index 83%
|
| copy from Source/core/dom/Promise.h
|
| copy to Source/platform/ColorSuggestion.h
|
| index 2c842aa4c117365f9c564c21d18cf38dc6a1a6d4..c012792e7effb0a37ca73f1c0601f6bf2baa9089 100644
|
| --- a/Source/core/dom/Promise.h
|
| +++ b/Source/platform/ColorSuggestion.h
|
| @@ -28,19 +28,24 @@
|
| * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| */
|
|
|
| -// FIXME: This file should be deleted.
|
| -#ifndef Promise_h
|
| -#define Promise_h
|
| +#ifndef ColorSuggestion_h
|
| +#define ColorSuggestion_h
|
|
|
| -#include "wtf/RefCounted.h"
|
| +#include "platform/graphics/Color.h"
|
| +#include "wtf/text/WTFString.h"
|
|
|
| namespace WebCore {
|
|
|
| -// An empty class. This is here because a generated file use it.
|
| -class Promise : public RefCounted<Promise> {
|
| +struct ColorSuggestion {
|
| + Color color;
|
| + String label;
|
| +
|
| + ColorSuggestion(const Color& colorValue, const String& label)
|
| + : color(colorValue)
|
| + , label(label)
|
| + { }
|
| };
|
|
|
| } // namespace WebCore
|
|
|
| -
|
| -#endif // Promise_h
|
| +#endif // ColorSuggestion_h
|
|
|