OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2007 Apple Inc. | 2 * Copyright (C) 2007 Apple Inc. |
3 * Copyright (C) 2007 Alp Toker <alp@atoker.com> | 3 * Copyright (C) 2007 Alp Toker <alp@atoker.com> |
4 * Copyright (C) 2008 Collabora Ltd. | 4 * Copyright (C) 2008 Collabora Ltd. |
5 * Copyright (C) 2008, 2009 Google Inc. | 5 * Copyright (C) 2008, 2009 Google Inc. |
6 * Copyright (C) 2009 Kenneth Rohde Christiansen | 6 * Copyright (C) 2009 Kenneth Rohde Christiansen |
7 * | 7 * |
8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
(...skipping 14 matching lines...) Expand all Loading... |
25 #include "config.h" | 25 #include "config.h" |
26 #include "RenderThemeChromiumLinux.h" | 26 #include "RenderThemeChromiumLinux.h" |
27 | 27 |
28 #include "Color.h" | 28 #include "Color.h" |
29 #include "CSSValueKeywords.h" | 29 #include "CSSValueKeywords.h" |
30 #include "RenderObject.h" | 30 #include "RenderObject.h" |
31 #include "UserAgentStyleSheets.h" | 31 #include "UserAgentStyleSheets.h" |
32 | 32 |
33 namespace WebCore { | 33 namespace WebCore { |
34 | 34 |
| 35 unsigned RenderThemeChromiumLinux::m_thumbInactiveColor = 0xF0EBE5; |
| 36 unsigned RenderThemeChromiumLinux::m_thumbActiveColor = 0xFAF8F5; |
| 37 unsigned RenderThemeChromiumLinux::m_trackColor = 0xE3DDD8; |
| 38 |
35 PassRefPtr<RenderTheme> RenderThemeChromiumLinux::create() | 39 PassRefPtr<RenderTheme> RenderThemeChromiumLinux::create() |
36 { | 40 { |
37 return adoptRef(new RenderThemeChromiumLinux()); | 41 return adoptRef(new RenderThemeChromiumLinux()); |
38 } | 42 } |
39 | 43 |
40 PassRefPtr<RenderTheme> RenderTheme::themeForPage(Page* page) | 44 PassRefPtr<RenderTheme> RenderTheme::themeForPage(Page* page) |
41 { | 45 { |
42 static RenderTheme* rt = RenderThemeChromiumLinux::create().releaseRef(); | 46 static RenderTheme* rt = RenderThemeChromiumLinux::create().releaseRef(); |
43 return rt; | 47 return rt; |
44 } | 48 } |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 void RenderThemeChromiumLinux::setCaretBlinkInterval(double interval) | 119 void RenderThemeChromiumLinux::setCaretBlinkInterval(double interval) |
116 { | 120 { |
117 m_caretBlinkInterval = interval; | 121 m_caretBlinkInterval = interval; |
118 } | 122 } |
119 | 123 |
120 double RenderThemeChromiumLinux::caretBlinkIntervalInternal() const | 124 double RenderThemeChromiumLinux::caretBlinkIntervalInternal() const |
121 { | 125 { |
122 return m_caretBlinkInterval; | 126 return m_caretBlinkInterval; |
123 } | 127 } |
124 | 128 |
| 129 void RenderThemeChromiumLinux::setScrollbarColors( |
| 130 SkColor inactive_color, SkColor active_color, SkColor track_color) |
| 131 { |
| 132 m_thumbInactiveColor = inactive_color; |
| 133 m_thumbActiveColor = active_color; |
| 134 m_trackColor = track_color; |
| 135 } |
| 136 |
125 } // namespace WebCore | 137 } // namespace WebCore |
OLD | NEW |