OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google 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 are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 19 matching lines...) Expand all Loading... |
30 | 30 |
31 #include "config.h" | 31 #include "config.h" |
32 #include "WebScrollbarTheme.h" | 32 #include "WebScrollbarTheme.h" |
33 | 33 |
34 #include "platform/scroll/ScrollbarThemeMacCommon.h" | 34 #include "platform/scroll/ScrollbarThemeMacCommon.h" |
35 | 35 |
36 using namespace WebCore; | 36 using namespace WebCore; |
37 | 37 |
38 namespace blink { | 38 namespace blink { |
39 | 39 |
| 40 #if defined(MAC_OS_X_VERSION_10_7) && MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_V
ERSION_10_7 |
| 41 COMPILE_ASSERT(ScrollerStyleLegacy == NSScrollerStyleLegacy, ScrollerStyle_Legac
y_must_be_equal); |
| 42 COMPILE_ASSERT(ScrollerStyleOverlay == NSScrollerStyleOverlay, ScrollerStyle_Ove
rlay_must_be_equal); |
| 43 #endif |
| 44 |
40 void WebScrollbarTheme::updateScrollbars( | 45 void WebScrollbarTheme::updateScrollbars( |
41 float initialButtonDelay, float autoscrollButtonDelay, | 46 float initialButtonDelay, float autoscrollButtonDelay, |
42 bool jumpOnTrackClick, bool redraw) | 47 bool jumpOnTrackClick, bool redraw) |
43 { | 48 { |
44 ScrollbarTheme* theme = ScrollbarTheme::theme(); | 49 ScrollbarTheme* theme = ScrollbarTheme::theme(); |
45 if (theme->isMockTheme()) | 50 if (theme->isMockTheme()) |
46 return; | 51 return; |
47 | 52 |
48 static_cast<ScrollbarThemeMacCommon*>(ScrollbarTheme::theme())->preferencesC
hanged( | 53 static_cast<ScrollbarThemeMacCommon*>(ScrollbarTheme::theme())->preferencesC
hanged( |
49 initialButtonDelay, autoscrollButtonDelay, jumpOnTrackClick, redraw); | 54 initialButtonDelay, autoscrollButtonDelay, jumpOnTrackClick, redraw); |
50 } | 55 } |
51 | 56 |
| 57 void WebScrollbarTheme::updateScrollbars( |
| 58 float initialButtonDelay, float autoscrollButtonDelay, |
| 59 bool jumpOnTrackClick, ScrollerStyle preferredScrollerStyle, bool redraw) |
| 60 { |
| 61 updateScrollbars(initialButtonDelay, autoscrollButtonDelay, jumpOnTrackClick
, redraw); |
| 62 } |
| 63 |
52 } // namespace blink | 64 } // namespace blink |
OLD | NEW |