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

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

Issue 319183004: Prefer to forward-declare GraphicsContext in headers. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: schenney nit (pare down platform/geometry/ includes to *Rect.h) Created 6 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 13 matching lines...) Expand all
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 namespace WebCore { 32 namespace WebCore {
33 33
34 class Pattern;
35
34 class PLATFORM_EXPORT ScrollbarThemeMacCommon : public ScrollbarTheme { 36 class PLATFORM_EXPORT ScrollbarThemeMacCommon : public ScrollbarTheme {
35 public: 37 public:
36 virtual ~ScrollbarThemeMacCommon(); 38 virtual ~ScrollbarThemeMacCommon();
37 39
38 virtual void registerScrollbar(ScrollbarThemeClient*) OVERRIDE; 40 virtual void registerScrollbar(ScrollbarThemeClient*) OVERRIDE;
39 virtual void unregisterScrollbar(ScrollbarThemeClient*) OVERRIDE; 41 virtual void unregisterScrollbar(ScrollbarThemeClient*) OVERRIDE;
40 void preferencesChanged(float initialButtonDelay, float autoscrollButtonDela y, NSScrollerStyle preferredScrollerStyle, bool redraw); 42 void preferencesChanged(float initialButtonDelay, float autoscrollButtonDela y, NSScrollerStyle preferredScrollerStyle, bool redraw);
41 43
42 virtual bool supportsControlTints() const OVERRIDE { return true; } 44 virtual bool supportsControlTints() const OVERRIDE { return true; }
43 45
(...skipping 17 matching lines...) Expand all
61 virtual void updateButtonPlacement() { } 63 virtual void updateButtonPlacement() { }
62 64
63 void paintGivenTickmarks(GraphicsContext*, ScrollbarThemeClient*, const IntR ect&, const Vector<IntRect>&); 65 void paintGivenTickmarks(GraphicsContext*, ScrollbarThemeClient*, const IntR ect&, const 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/scroll/ScrollbarTheme.cpp ('k') | Source/platform/scroll/ScrollbarThemeMacCommon.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698