| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. | 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 #ifndef Theme_h | 26 #ifndef Theme_h |
| 27 #define Theme_h | 27 #define Theme_h |
| 28 | 28 |
| 29 #include "platform/LengthBox.h" | 29 #include "platform/LengthBox.h" |
| 30 #include "platform/LengthSize.h" | 30 #include "platform/LengthSize.h" |
| 31 #include "platform/PlatformExport.h" | 31 #include "platform/PlatformExport.h" |
| 32 #include "platform/ThemeTypes.h" | 32 #include "platform/ThemeTypes.h" |
| 33 #include "platform/fonts/FontDescription.h" | 33 #include "platform/fonts/FontDescription.h" |
| 34 #include "platform/geometry/IntRect.h" | 34 #include "platform/geometry/IntRect.h" |
| 35 #include "platform/graphics/Color.h" | 35 #include "platform/graphics/Color.h" |
| 36 #include "wtf/Allocator.h" | 36 #include "platform/wtf/Allocator.h" |
| 37 #include "wtf/Forward.h" | 37 #include "platform/wtf/Forward.h" |
| 38 #include "wtf/Noncopyable.h" | 38 #include "platform/wtf/Noncopyable.h" |
| 39 | 39 |
| 40 namespace blink { | 40 namespace blink { |
| 41 | 41 |
| 42 class GraphicsContext; | 42 class GraphicsContext; |
| 43 class ScrollableArea; | 43 class ScrollableArea; |
| 44 | 44 |
| 45 // Unlike other platform classes, Theme does extensively use virtual functions. | 45 // Unlike other platform classes, Theme does extensively use virtual functions. |
| 46 // This design allows a platform to switch between multiple themes at runtime. | 46 // This design allows a platform to switch between multiple themes at runtime. |
| 47 class PLATFORM_EXPORT Theme { | 47 class PLATFORM_EXPORT Theme { |
| 48 USING_FAST_MALLOC(Theme); | 48 USING_FAST_MALLOC(Theme); |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 private: | 144 private: |
| 145 mutable Color active_selection_color_; | 145 mutable Color active_selection_color_; |
| 146 mutable Color inactive_selection_color_; | 146 mutable Color inactive_selection_color_; |
| 147 }; | 147 }; |
| 148 | 148 |
| 149 PLATFORM_EXPORT Theme* PlatformTheme(); | 149 PLATFORM_EXPORT Theme* PlatformTheme(); |
| 150 | 150 |
| 151 } // namespace blink | 151 } // namespace blink |
| 152 | 152 |
| 153 #endif // Theme_h | 153 #endif // Theme_h |
| OLD | NEW |