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

Side by Side Diff: Source/platform/scroll/ScrollbarThemeMacCommon.h

Issue 1170523002: Removing GraphicsContext from ImageBuffer (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fix for shape bug Created 5 years, 6 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 | Annotate | Revision Log
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 11 matching lines...) Expand all
22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24 */ 24 */
25 25
26 #ifndef ScrollbarThemeMacCommon_h 26 #ifndef ScrollbarThemeMacCommon_h
27 #define ScrollbarThemeMacCommon_h 27 #define ScrollbarThemeMacCommon_h
28 28
29 #include "platform/mac/NSScrollerImpDetails.h" 29 #include "platform/mac/NSScrollerImpDetails.h"
30 #include "platform/scroll/ScrollbarTheme.h" 30 #include "platform/scroll/ScrollbarTheme.h"
31 31
32 class SkCanvas;
33
32 namespace blink { 34 namespace blink {
33 35
34 class Pattern; 36 class Pattern;
35 37
36 class PLATFORM_EXPORT ScrollbarThemeMacCommon : public ScrollbarTheme { 38 class PLATFORM_EXPORT ScrollbarThemeMacCommon : public ScrollbarTheme {
37 public: 39 public:
38 virtual ~ScrollbarThemeMacCommon(); 40 virtual ~ScrollbarThemeMacCommon();
39 41
40 virtual void registerScrollbar(ScrollbarThemeClient*) override; 42 virtual void registerScrollbar(ScrollbarThemeClient*) override;
41 virtual void unregisterScrollbar(ScrollbarThemeClient*) override; 43 virtual void unregisterScrollbar(ScrollbarThemeClient*) override;
(...skipping 11 matching lines...) Expand all
53 static bool isOverlayAPIAvailable(); 55 static bool isOverlayAPIAvailable();
54 56
55 protected: 57 protected:
56 virtual int maxOverlapBetweenPages() override { return 40; } 58 virtual int maxOverlapBetweenPages() override { return 40; }
57 59
58 virtual bool shouldDragDocumentInsteadOfThumb(ScrollbarThemeClient*, const P latformMouseEvent&) override; 60 virtual bool shouldDragDocumentInsteadOfThumb(ScrollbarThemeClient*, const P latformMouseEvent&) override;
59 int scrollbarPartToHIPressedState(ScrollbarPart); 61 int scrollbarPartToHIPressedState(ScrollbarPart);
60 62
61 virtual void updateButtonPlacement() { } 63 virtual void updateButtonPlacement() { }
62 64
63 void paintGivenTickmarks(GraphicsContext*, ScrollbarThemeClient*, const IntR ect&, const Vector<IntRect>&); 65 void paintGivenTickmarks(SkCanvas*, ScrollbarThemeClient*, const IntRect&, c onst Vector<IntRect>&);
64 66
65 RefPtr<Pattern> m_overhangPattern; 67 RefPtr<Pattern> m_overhangPattern;
66 }; 68 };
67 69
68 } 70 }
69 71
70 #endif // ScrollbarThemeMacCommon_h 72 #endif // ScrollbarThemeMacCommon_h
OLDNEW
« no previous file with comments | « Source/platform/mac/LocalCurrentGraphicsContext.mm ('k') | Source/platform/scroll/ScrollbarThemeMacCommon.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698