| 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 26 matching lines...) Expand all Loading... |
| 37 | 37 |
| 38 virtual void registerScrollbar(ScrollbarThemeClient*) OVERRIDE; | 38 virtual void registerScrollbar(ScrollbarThemeClient*) OVERRIDE; |
| 39 virtual void unregisterScrollbar(ScrollbarThemeClient*) OVERRIDE; | 39 virtual void unregisterScrollbar(ScrollbarThemeClient*) OVERRIDE; |
| 40 void preferencesChanged(); | 40 void preferencesChanged(); |
| 41 | 41 |
| 42 virtual bool supportsControlTints() const OVERRIDE { return true; } | 42 virtual bool supportsControlTints() const OVERRIDE { return true; } |
| 43 | 43 |
| 44 virtual double initialAutoscrollTimerDelay() OVERRIDE; | 44 virtual double initialAutoscrollTimerDelay() OVERRIDE; |
| 45 virtual double autoscrollTimerDelay() OVERRIDE; | 45 virtual double autoscrollTimerDelay() OVERRIDE; |
| 46 | 46 |
| 47 virtual void paintOverhangBackground(ScrollView*, GraphicsContext*, const In
tRect& horizontalOverhangArea, const IntRect& verticalOverhangArea, const IntRec
t& dirtyRect) OVERRIDE; | 47 virtual void paintOverhangBackground(GraphicsContext*, const IntRect& horizo
ntalOverhangArea, const IntRect& verticalOverhangArea, const IntRect& dirtyRect)
OVERRIDE; |
| 48 virtual void paintOverhangShadows(ScrollView*, GraphicsContext*, const IntRe
ct& horizontalOverhangArea, const IntRect& verticalOverhangArea, const IntRect&
dirtyRect) OVERRIDE; | 48 virtual void paintOverhangShadows(GraphicsContext*, const IntSize& scrollOff
set, const IntRect& horizontalOverhangArea, const IntRect& verticalOverhangArea,
const IntRect& dirtyRect) OVERRIDE; |
| 49 virtual void paintTickmarks(GraphicsContext*, ScrollbarThemeClient*, const I
ntRect&) OVERRIDE; | 49 virtual void paintTickmarks(GraphicsContext*, ScrollbarThemeClient*, const I
ntRect&) OVERRIDE; |
| 50 | 50 |
| 51 protected: | 51 protected: |
| 52 virtual int maxOverlapBetweenPages() OVERRIDE { return 40; } | 52 virtual int maxOverlapBetweenPages() OVERRIDE { return 40; } |
| 53 | 53 |
| 54 virtual bool shouldCenterOnThumb(ScrollbarThemeClient*, const PlatformMouseE
vent&) OVERRIDE; | 54 virtual bool shouldCenterOnThumb(ScrollbarThemeClient*, const PlatformMouseE
vent&) OVERRIDE; |
| 55 virtual bool shouldDragDocumentInsteadOfThumb(ScrollbarThemeClient*, const P
latformMouseEvent&) OVERRIDE; | 55 virtual bool shouldDragDocumentInsteadOfThumb(ScrollbarThemeClient*, const P
latformMouseEvent&) OVERRIDE; |
| 56 int scrollbarPartToHIPressedState(ScrollbarPart); | 56 int scrollbarPartToHIPressedState(ScrollbarPart); |
| 57 | 57 |
| 58 virtual void updateButtonPlacement() { } | 58 virtual void updateButtonPlacement() { } |
| 59 | 59 |
| 60 void paintGivenTickmarks(GraphicsContext*, ScrollbarThemeClient*, const IntR
ect&, const Vector<IntRect>&); | 60 void paintGivenTickmarks(GraphicsContext*, ScrollbarThemeClient*, const IntR
ect&, const Vector<IntRect>&); |
| 61 | 61 |
| 62 RefPtr<Pattern> m_overhangPattern; | 62 RefPtr<Pattern> m_overhangPattern; |
| 63 }; | 63 }; |
| 64 | 64 |
| 65 } | 65 } |
| 66 | 66 |
| 67 #endif // ScrollbarThemeMacCommon_h | 67 #endif // ScrollbarThemeMacCommon_h |
| OLD | NEW |