Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(446)

Side by Side Diff: third_party/WebKit/Source/web/mac/WebScrollbarTheme.mm

Issue 1653003002: Make scrollAnimatorEnabled work on Mac like it does on other platforms (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Previous patch accidentally lost new files Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698