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

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

Issue 57463002: Have Blink be told of scrollbar changes rather than paying attention itself (Blink side). (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: win fix? 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 19 matching lines...) Expand all
30 30
31 namespace WebCore { 31 namespace WebCore {
32 32
33 class ScrollbarThemeMacCommon : public ScrollbarTheme { 33 class ScrollbarThemeMacCommon : public ScrollbarTheme {
34 public: 34 public:
35 ScrollbarThemeMacCommon(); 35 ScrollbarThemeMacCommon();
36 virtual ~ScrollbarThemeMacCommon(); 36 virtual ~ScrollbarThemeMacCommon();
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(float, float, bool, bool);
abarth-chromium 2013/11/04 00:43:24 Would you be willing to name these parameters? It
Avi (use Gerrit) 2013/11/04 01:40:24 Of course I'm willing. I'm writing to fit in with
abarth-chromium 2013/11/04 01:41:55 The existing style is to omit parameter names when
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(GraphicsContext*, const IntRect& horizo ntalOverhangArea, const IntRect& verticalOverhangArea, const IntRect& dirtyRect) OVERRIDE; 47 virtual void paintOverhangBackground(GraphicsContext*, const IntRect& horizo ntalOverhangArea, 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; 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
OLDNEW
« no previous file with comments | « no previous file | Source/core/platform/ScrollbarThemeMacCommon.mm » ('j') | Source/web/mac/WebScrollbarTheme.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698