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

Side by Side Diff: Source/core/rendering/RenderScrollbarTheme.h

Issue 51673005: Remove unnecessary dependency upon ScrollView from the ScrollbarTheme classes. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink@master
Patch Set: Remove redefinition of scrollOffset Created 7 years, 1 month 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) 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 14 matching lines...) Expand all
25 25
26 #ifndef RenderScrollbarTheme_h 26 #ifndef RenderScrollbarTheme_h
27 #define RenderScrollbarTheme_h 27 #define RenderScrollbarTheme_h
28 28
29 #include "core/platform/ScrollbarTheme.h" 29 #include "core/platform/ScrollbarTheme.h"
30 30
31 namespace WebCore { 31 namespace WebCore {
32 32
33 class PlatformMouseEvent; 33 class PlatformMouseEvent;
34 class Scrollbar; 34 class Scrollbar;
35 class ScrollView;
36 35
37 class RenderScrollbarTheme : public ScrollbarTheme { 36 class RenderScrollbarTheme : public ScrollbarTheme {
38 public: 37 public:
39 virtual ~RenderScrollbarTheme() { } 38 virtual ~RenderScrollbarTheme() { }
40 39
41 virtual int scrollbarThickness(ScrollbarControlSize controlSize) OVERRIDE { return ScrollbarTheme::theme()->scrollbarThickness(controlSize); } 40 virtual int scrollbarThickness(ScrollbarControlSize controlSize) OVERRIDE { return ScrollbarTheme::theme()->scrollbarThickness(controlSize); }
42 41
43 virtual ScrollbarButtonsPlacement buttonsPlacement() const OVERRIDE { return ScrollbarTheme::theme()->buttonsPlacement(); } 42 virtual ScrollbarButtonsPlacement buttonsPlacement() const OVERRIDE { return ScrollbarTheme::theme()->buttonsPlacement(); }
44 43
45 virtual bool supportsControlTints() const OVERRIDE { return true; } 44 virtual bool supportsControlTints() const OVERRIDE { return true; }
46 45
47 virtual void paintScrollCorner(ScrollView*, GraphicsContext*, const IntRect& cornerRect) OVERRIDE; 46 virtual void paintScrollCorner(GraphicsContext*, const IntRect& cornerRect) OVERRIDE;
48 47
49 virtual bool shouldCenterOnThumb(ScrollbarThemeClient* scrollbar, const Plat formMouseEvent& event) OVERRIDE { return ScrollbarTheme::theme()->shouldCenterOn Thumb(scrollbar, event); } 48 virtual bool shouldCenterOnThumb(ScrollbarThemeClient* scrollbar, const Plat formMouseEvent& event) OVERRIDE { return ScrollbarTheme::theme()->shouldCenterOn Thumb(scrollbar, event); }
50 49
51 virtual double initialAutoscrollTimerDelay() OVERRIDE { return ScrollbarThem e::theme()->initialAutoscrollTimerDelay(); } 50 virtual double initialAutoscrollTimerDelay() OVERRIDE { return ScrollbarThem e::theme()->initialAutoscrollTimerDelay(); }
52 virtual double autoscrollTimerDelay() OVERRIDE { return ScrollbarTheme::them e()->autoscrollTimerDelay(); } 51 virtual double autoscrollTimerDelay() OVERRIDE { return ScrollbarTheme::them e()->autoscrollTimerDelay(); }
53 52
54 virtual void registerScrollbar(ScrollbarThemeClient* scrollbar) OVERRIDE { r eturn ScrollbarTheme::theme()->registerScrollbar(scrollbar); } 53 virtual void registerScrollbar(ScrollbarThemeClient* scrollbar) OVERRIDE { r eturn ScrollbarTheme::theme()->registerScrollbar(scrollbar); }
55 virtual void unregisterScrollbar(ScrollbarThemeClient* scrollbar) OVERRIDE { return ScrollbarTheme::theme()->unregisterScrollbar(scrollbar); } 54 virtual void unregisterScrollbar(ScrollbarThemeClient* scrollbar) OVERRIDE { return ScrollbarTheme::theme()->unregisterScrollbar(scrollbar); }
56 55
57 virtual int minimumThumbLength(ScrollbarThemeClient*) OVERRIDE; 56 virtual int minimumThumbLength(ScrollbarThemeClient*) OVERRIDE;
(...skipping 16 matching lines...) Expand all
74 virtual void paintButton(GraphicsContext*, ScrollbarThemeClient*, const IntR ect&, ScrollbarPart) OVERRIDE; 73 virtual void paintButton(GraphicsContext*, ScrollbarThemeClient*, const IntR ect&, ScrollbarPart) OVERRIDE;
75 virtual void paintThumb(GraphicsContext*, ScrollbarThemeClient*, const IntRe ct&) OVERRIDE; 74 virtual void paintThumb(GraphicsContext*, ScrollbarThemeClient*, const IntRe ct&) OVERRIDE;
76 virtual void paintTickmarks(GraphicsContext*, ScrollbarThemeClient*, const I ntRect&) OVERRIDE; 75 virtual void paintTickmarks(GraphicsContext*, ScrollbarThemeClient*, const I ntRect&) OVERRIDE;
77 76
78 virtual IntRect constrainTrackRectToTrackPieces(ScrollbarThemeClient*, const IntRect&) OVERRIDE; 77 virtual IntRect constrainTrackRectToTrackPieces(ScrollbarThemeClient*, const IntRect&) OVERRIDE;
79 }; 78 };
80 79
81 } // namespace WebCore 80 } // namespace WebCore
82 81
83 #endif // RenderScrollbarTheme_h 82 #endif // RenderScrollbarTheme_h
OLDNEW
« no previous file with comments | « Source/core/platform/ScrollbarThemeMacCommon.mm ('k') | Source/core/rendering/RenderScrollbarTheme.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698