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 26 matching lines...) Expand all Loading... |
37 | 37 |
38 using namespace blink; | 38 using namespace blink; |
39 | 39 |
40 namespace blink { | 40 namespace blink { |
41 | 41 |
42 static_assert(static_cast<NSScrollerStyle>(ScrollerStyleLegacy) == NSScrollerSty
leLegacy, "ScrollerStyleLegacy must match NSScrollerStyleLegacy"); | 42 static_assert(static_cast<NSScrollerStyle>(ScrollerStyleLegacy) == NSScrollerSty
leLegacy, "ScrollerStyleLegacy must match NSScrollerStyleLegacy"); |
43 static_assert(static_cast<NSScrollerStyle>(ScrollerStyleOverlay) == NSScrollerSt
yleOverlay, "ScrollerStyleOverlay must match NSScrollerStyleOverlay"); | 43 static_assert(static_cast<NSScrollerStyle>(ScrollerStyleOverlay) == NSScrollerSt
yleOverlay, "ScrollerStyleOverlay must match NSScrollerStyleOverlay"); |
44 | 44 |
45 void WebScrollbarTheme::updateScrollbarsWithNSDefaults( | 45 void WebScrollbarTheme::updateScrollbarsWithNSDefaults( |
46 float initialButtonDelay, float autoscrollButtonDelay, | 46 float initialButtonDelay, float autoscrollButtonDelay, |
47 ScrollerStyle preferredScrollerStyle, bool redraw, bool scrollAnimationEnabl
ed, WebScrollbarButtonsPlacement buttonPlacement) | 47 ScrollerStyle preferredScrollerStyle, bool redraw, WebScrollbarButtonsPlacem
ent buttonPlacement) |
48 { | 48 { |
49 ScrollbarTheme& theme = ScrollbarTheme::theme(); | 49 ScrollbarTheme& theme = ScrollbarTheme::theme(); |
50 if (theme.isMockTheme()) | 50 if (theme.isMockTheme()) |
51 return; | 51 return; |
52 | 52 |
53 static_cast<ScrollbarThemeMacCommon&>(theme).preferencesChanged( | 53 static_cast<ScrollbarThemeMacCommon&>(theme).preferencesChanged( |
54 initialButtonDelay, autoscrollButtonDelay, | 54 initialButtonDelay, autoscrollButtonDelay, |
55 static_cast<NSScrollerStyle>(preferredScrollerStyle), | 55 static_cast<NSScrollerStyle>(preferredScrollerStyle), |
56 redraw, scrollAnimationEnabled, buttonPlacement); | 56 redraw, buttonPlacement); |
57 } | 57 } |
58 | 58 |
59 } // namespace blink | 59 } // namespace blink |
OLD | NEW |