Chromium Code Reviews| Index: Source/core/platform/ColorSuggestion.h |
| diff --git a/Source/bindings/v8/V8DOMActivityLogger.h b/Source/core/platform/ColorSuggestion.h |
| similarity index 78% |
| copy from Source/bindings/v8/V8DOMActivityLogger.h |
| copy to Source/core/platform/ColorSuggestion.h |
| index 93915a65f2c791225f9f9df01fd86d85b0ee4ea0..4f5c64620903377af2af3afe75788cb8f5c3a22c 100644 |
| --- a/Source/bindings/v8/V8DOMActivityLogger.h |
| +++ b/Source/core/platform/ColorSuggestion.h |
| @@ -1,5 +1,5 @@ |
| /* |
| - * Copyright (C) 2009 Google Inc. All rights reserved. |
| + * Copyright 2013 Google Inc. All rights reserved. |
| * |
| * Redistribution and use in source and binary forms, with or without |
| * modification, are permitted provided that the following conditions are |
| @@ -28,21 +28,26 @@ |
| * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| */ |
| -#ifndef V8DOMActivityLogger_h |
| -#define V8DOMActivityLogger_h |
| +#ifndef ColorSuggestion_h |
| +#define ColorSuggestion_h |
| -#include <v8.h> |
| +#include "core/platform/graphics/Color.h" |
| #include "wtf/text/WTFString.h" |
| namespace WebCore { |
| -class V8DOMActivityLogger { |
| -public: |
| - virtual ~V8DOMActivityLogger() { } |
| +struct ColorSuggestion { |
| + Color colorValue; |
| + String displayValue; |
|
tkent
2013/08/25 22:26:01
The name |displayValue| is confusing. Maybe it sh
keishi
2013/08/26 05:29:15
Done. Changed to valueAsColor and valueAsText
|
| + String label; |
| - virtual void log(const String& apiName, int argc, const v8::Handle<v8::Value>* argv, const String& extraInfo) { } |
| + ColorSuggestion(const Color& value, const String& displayValue, const String& label) |
| + : colorValue(value) |
| + , displayValue(displayValue) |
| + , label(label) |
| + { } |
| }; |
| } // namespace WebCore |
| -#endif // V8DOMActivityLogger_h |
| +#endif // ColorSuggestion_h |