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 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
267 void ScrollbarThemeMacOverlayAPI::updateEnabledState(const ScrollbarThemeClient& scrollbar) | 267 void ScrollbarThemeMacOverlayAPI::updateEnabledState(const ScrollbarThemeClient& scrollbar) |
268 { | 268 { |
269 [painterForScrollbar(scrollbar) setEnabled:scrollbar.enabled()]; | 269 [painterForScrollbar(scrollbar) setEnabled:scrollbar.enabled()]; |
270 } | 270 } |
271 | 271 |
272 float ScrollbarThemeMacOverlayAPI::thumbOpacity(const ScrollbarThemeClient& scro llbar) const { | 272 float ScrollbarThemeMacOverlayAPI::thumbOpacity(const ScrollbarThemeClient& scro llbar) const { |
273 ScrollbarPainter scrollbarPainter = painterForScrollbar(scrollbar); | 273 ScrollbarPainter scrollbarPainter = painterForScrollbar(scrollbar); |
274 return [scrollbarPainter knobAlpha]; | 274 return [scrollbarPainter knobAlpha]; |
275 } | 275 } |
276 | 276 |
277 ScrollbarPart ScrollbarThemeMacOverlayAPI::invalidateOnThumbPositionChange(const ScrollbarThemeClient& scrollbar, float oldPosition, float newPosition) const { | |
278 // ScrollAnimatorMac will invalidate the thumb when appropriate. | |
279 // TODO(jbroman): Does this also apply to ScrollbarThemeMacNonOverlayAPI? | |
ccameron
2015/12/23 01:20:37
In principle it could be "just the thumb", but, in
| |
280 return NoPart; | |
281 } | |
282 | |
277 } // namespace blink | 283 } // namespace blink |
278 | 284 |
OLD | NEW |