OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CONTENT_COMMON_CSS_COLORS_H_ | 5 #ifndef CONTENT_COMMON_CSS_COLORS_H_ |
6 #define CONTENT_COMMON_CSS_COLORS_H_ | 6 #define CONTENT_COMMON_CSS_COLORS_H_ |
7 #pragma once | |
8 | 7 |
9 #include <utility> | 8 #include <utility> |
10 | 9 |
11 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebColorName.h" | 11 #include "third_party/WebKit/Source/WebKit/chromium/public/WebColorName.h" |
13 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebColor.h" | 12 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebColor.h" |
14 | 13 |
15 // Functionality related to sending the values of CSS colors to the renderer. | 14 // Functionality related to sending the values of CSS colors to the renderer. |
16 class CSSColors { | 15 class CSSColors { |
17 public: | 16 public: |
18 typedef WebKit::WebColorName CSSColorName; | 17 typedef WebKit::WebColorName CSSColorName; |
19 typedef std::pair<CSSColorName, WebKit::WebColor> CSSColorMapping; | 18 typedef std::pair<CSSColorName, WebKit::WebColor> CSSColorMapping; |
20 | 19 |
21 private: | 20 private: |
22 DISALLOW_COPY_AND_ASSIGN(CSSColors); | 21 DISALLOW_COPY_AND_ASSIGN(CSSColors); |
23 }; | 22 }; |
24 | 23 |
25 #endif // CONTENT_COMMON_CSS_COLORS_H_ | 24 #endif // CONTENT_COMMON_CSS_COLORS_H_ |
OLD | NEW |