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 13 matching lines...) Expand all Loading... |
24 */ | 24 */ |
25 | 25 |
26 #ifndef ScrollbarThemeMacCommon_h | 26 #ifndef ScrollbarThemeMacCommon_h |
27 #define ScrollbarThemeMacCommon_h | 27 #define ScrollbarThemeMacCommon_h |
28 | 28 |
29 #include "platform/mac/NSScrollerImpDetails.h" | 29 #include "platform/mac/NSScrollerImpDetails.h" |
30 #include "platform/scroll/ScrollbarTheme.h" | 30 #include "platform/scroll/ScrollbarTheme.h" |
31 | 31 |
32 namespace WebCore { | 32 namespace WebCore { |
33 | 33 |
| 34 class Pattern; |
| 35 |
34 class PLATFORM_EXPORT ScrollbarThemeMacCommon : public ScrollbarTheme { | 36 class PLATFORM_EXPORT ScrollbarThemeMacCommon : public ScrollbarTheme { |
35 public: | 37 public: |
36 virtual ~ScrollbarThemeMacCommon(); | 38 virtual ~ScrollbarThemeMacCommon(); |
37 | 39 |
38 virtual void registerScrollbar(ScrollbarThemeClient*) OVERRIDE; | 40 virtual void registerScrollbar(ScrollbarThemeClient*) OVERRIDE; |
39 virtual void unregisterScrollbar(ScrollbarThemeClient*) OVERRIDE; | 41 virtual void unregisterScrollbar(ScrollbarThemeClient*) OVERRIDE; |
40 void preferencesChanged(float initialButtonDelay, float autoscrollButtonDela
y, NSScrollerStyle preferredScrollerStyle, bool redraw); | 42 void preferencesChanged(float initialButtonDelay, float autoscrollButtonDela
y, NSScrollerStyle preferredScrollerStyle, bool redraw); |
41 | 43 |
42 virtual bool supportsControlTints() const OVERRIDE { return true; } | 44 virtual bool supportsControlTints() const OVERRIDE { return true; } |
43 | 45 |
(...skipping 17 matching lines...) Expand all Loading... |
61 virtual void updateButtonPlacement() { } | 63 virtual void updateButtonPlacement() { } |
62 | 64 |
63 void paintGivenTickmarks(GraphicsContext*, ScrollbarThemeClient*, const IntR
ect&, const Vector<IntRect>&); | 65 void paintGivenTickmarks(GraphicsContext*, ScrollbarThemeClient*, const IntR
ect&, const Vector<IntRect>&); |
64 | 66 |
65 RefPtr<Pattern> m_overhangPattern; | 67 RefPtr<Pattern> m_overhangPattern; |
66 }; | 68 }; |
67 | 69 |
68 } | 70 } |
69 | 71 |
70 #endif // ScrollbarThemeMacCommon_h | 72 #endif // ScrollbarThemeMacCommon_h |
OLD | NEW |