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

Unified Diff: Source/core/platform/mac/ScrollbarThemeMac.h

Issue 21108004: Separate ScrollbarThemeMac into separate files (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@second_refactor
Patch Set: Incorporate review feedback Created 7 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/platform/mac/ScrollAnimatorMac.mm ('k') | Source/core/platform/mac/ScrollbarThemeMac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/platform/mac/ScrollbarThemeMac.h
diff --git a/Source/core/platform/mac/ScrollbarThemeMac.h b/Source/core/platform/mac/ScrollbarThemeMac.h
index 0cfdcfed852a07514f765f113e5a7e96e5981fd1..5849d37388779594d49b69991a06e17cd3d970d2 100644
--- a/Source/core/platform/mac/ScrollbarThemeMac.h
+++ b/Source/core/platform/mac/ScrollbarThemeMac.h
@@ -28,8 +28,6 @@
#include "core/platform/ScrollbarThemeComposite.h"
-typedef id ScrollbarPainter;
-
namespace WebCore {
class ScrollbarThemeMacCommon : public ScrollbarThemeComposite {
@@ -63,55 +61,6 @@ protected:
RefPtr<Pattern> m_overhangPattern;
};
-class ScrollbarThemeMacOverlayAPI : public ScrollbarThemeMacCommon {
-public:
- virtual void updateEnabledState(ScrollbarThemeClient*);
- virtual int scrollbarThickness(ScrollbarControlSize = RegularScrollbar);
- virtual bool usesOverlayScrollbars() const;
- virtual void updateScrollbarOverlayStyle(ScrollbarThemeClient*);
- virtual ScrollbarButtonsPlacement buttonsPlacement() const;
-
- virtual void registerScrollbar(ScrollbarThemeClient*);
- virtual void unregisterScrollbar(ScrollbarThemeClient*);
-
- void setNewPainterForScrollbar(ScrollbarThemeClient*, ScrollbarPainter);
- ScrollbarPainter painterForScrollbar(ScrollbarThemeClient*);
-
- virtual void paintTrackBackground(GraphicsContext*, ScrollbarThemeClient*, const IntRect&);
- virtual void paintThumb(GraphicsContext*, ScrollbarThemeClient*, const IntRect&);
-
-protected:
- virtual IntRect trackRect(ScrollbarThemeClient*, bool painting = false);
- virtual IntRect backButtonRect(ScrollbarThemeClient*, ScrollbarPart, bool painting = false);
- virtual IntRect forwardButtonRect(ScrollbarThemeClient*, ScrollbarPart, bool painting = false);
-
- virtual bool hasButtons(ScrollbarThemeClient*) { return false; }
- virtual bool hasThumb(ScrollbarThemeClient*);
-
- virtual int minimumThumbLength(ScrollbarThemeClient*);
-};
-
-class ScrollbarThemeMacNonOverlayAPI : public ScrollbarThemeMacCommon {
-public:
- virtual int scrollbarThickness(ScrollbarControlSize = RegularScrollbar);
- virtual bool usesOverlayScrollbars() const { return false; }
- virtual ScrollbarButtonsPlacement buttonsPlacement() const;
-
- virtual bool paint(ScrollbarThemeClient*, GraphicsContext*, const IntRect& damageRect);
-
-protected:
- virtual IntRect trackRect(ScrollbarThemeClient*, bool painting = false);
- virtual IntRect backButtonRect(ScrollbarThemeClient*, ScrollbarPart, bool painting = false);
- virtual IntRect forwardButtonRect(ScrollbarThemeClient*, ScrollbarPart, bool painting = false);
-
- virtual void updateButtonPlacement();
-
- virtual bool hasButtons(ScrollbarThemeClient*);
- virtual bool hasThumb(ScrollbarThemeClient*);
-
- virtual int minimumThumbLength(ScrollbarThemeClient*);
-};
-
}
#endif
« no previous file with comments | « Source/core/platform/mac/ScrollAnimatorMac.mm ('k') | Source/core/platform/mac/ScrollbarThemeMac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698