OLD | NEW |
---|---|
1 /* | 1 /* |
2 * This file is part of the theme implementation for form controls in WebCore. | 2 * This file is part of the theme implementation for form controls in WebCore. |
3 * | 3 * |
4 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Computer, Inc. | 4 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Computer, Inc. |
5 * | 5 * |
6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
10 * | 10 * |
11 * This library is distributed in the hope that it will be useful, | 11 * This library is distributed in the hope that it will be useful, |
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
14 * Library General Public License for more details. | 14 * Library General Public License for more details. |
15 * | 15 * |
16 * You should have received a copy of the GNU Library General Public License | 16 * You should have received a copy of the GNU Library General Public License |
17 * along with this library; see the file COPYING.LIB. If not, write to | 17 * along with this library; see the file COPYING.LIB. If not, write to |
18 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 18 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
19 * Boston, MA 02110-1301, USA. | 19 * Boston, MA 02110-1301, USA. |
20 * | 20 * |
21 */ | 21 */ |
22 | 22 |
23 #ifndef RenderTheme_h | 23 #ifndef RenderTheme_h |
24 #define RenderTheme_h | 24 #define RenderTheme_h |
25 | 25 |
26 #if OS(DARWIN) | |
27 #define WTF_USE_NEW_THEME 1 | |
28 #endif | |
abarth-chromium
2013/08/12 19:43:21
This should got in Platform.h rather than here. W
lgombos
2013/08/13 14:52:45
It seems to me that from the ~20 USE() guards curr
| |
29 | |
26 #include "core/platform/ScrollTypes.h" | 30 #include "core/platform/ScrollTypes.h" |
27 #if USE(NEW_THEME) | 31 #if USE(NEW_THEME) |
28 #include "core/platform/Theme.h" | 32 #include "core/platform/Theme.h" |
29 #else | 33 #else |
30 #include "core/platform/ThemeTypes.h" | 34 #include "core/platform/ThemeTypes.h" |
31 #endif | 35 #endif |
32 #include "core/rendering/RenderObject.h" | 36 #include "core/rendering/RenderObject.h" |
33 #include "core/rendering/style/CachedUAStyle.h" | 37 #include "core/rendering/style/CachedUAStyle.h" |
34 #include "wtf/PassRefPtr.h" | 38 #include "wtf/PassRefPtr.h" |
35 #include "wtf/RefCounted.h" | 39 #include "wtf/RefCounted.h" |
(...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
356 static const RGBA32 defaultTapHighlightColor = 0x66000000; | 360 static const RGBA32 defaultTapHighlightColor = 0x66000000; |
357 | 361 |
358 #if USE(NEW_THEME) | 362 #if USE(NEW_THEME) |
359 Theme* m_theme; // The platform-specific theme. | 363 Theme* m_theme; // The platform-specific theme. |
360 #endif | 364 #endif |
361 }; | 365 }; |
362 | 366 |
363 } // namespace WebCore | 367 } // namespace WebCore |
364 | 368 |
365 #endif // RenderTheme_h | 369 #endif // RenderTheme_h |
OLD | NEW |