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

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

Issue 1213003004: Fix virtual/override/final usage in Source/platform/. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google 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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 21 matching lines...) Expand all
32 #define ScrollbarThemeMacOverlayAPI_h 32 #define ScrollbarThemeMacOverlayAPI_h
33 33
34 #include "platform/scroll/ScrollbarThemeMacCommon.h" 34 #include "platform/scroll/ScrollbarThemeMacCommon.h"
35 35
36 typedef id ScrollbarPainter; 36 typedef id ScrollbarPainter;
37 37
38 namespace blink { 38 namespace blink {
39 39
40 class PLATFORM_EXPORT ScrollbarThemeMacOverlayAPI : public ScrollbarThemeMacComm on { 40 class PLATFORM_EXPORT ScrollbarThemeMacOverlayAPI : public ScrollbarThemeMacComm on {
41 public: 41 public:
42 virtual void updateEnabledState(ScrollbarThemeClient*) override; 42 void updateEnabledState(ScrollbarThemeClient*) override;
43 virtual int scrollbarThickness(ScrollbarControlSize = RegularScrollbar) over ride; 43 int scrollbarThickness(ScrollbarControlSize = RegularScrollbar) override;
44 virtual bool usesOverlayScrollbars() const override; 44 bool usesOverlayScrollbars() const override;
45 virtual void updateScrollbarOverlayStyle(ScrollbarThemeClient*) override; 45 void updateScrollbarOverlayStyle(ScrollbarThemeClient*) override;
46 virtual ScrollbarButtonsPlacement buttonsPlacement() const override; 46 ScrollbarButtonsPlacement buttonsPlacement() const override;
47 47
48 virtual void registerScrollbar(ScrollbarThemeClient*) override; 48 void registerScrollbar(ScrollbarThemeClient*) override;
49 virtual void unregisterScrollbar(ScrollbarThemeClient*) override; 49 void unregisterScrollbar(ScrollbarThemeClient*) override;
50 50
51 void setNewPainterForScrollbar(ScrollbarThemeClient*, ScrollbarPainter); 51 void setNewPainterForScrollbar(ScrollbarThemeClient*, ScrollbarPainter);
52 ScrollbarPainter painterForScrollbar(ScrollbarThemeClient*); 52 ScrollbarPainter painterForScrollbar(ScrollbarThemeClient*);
53 53
54 virtual void paintTrackBackground(GraphicsContext*, ScrollbarThemeClient*, c onst IntRect&) override; 54 void paintTrackBackground(GraphicsContext*, ScrollbarThemeClient*, const Int Rect&) override;
55 virtual void paintThumb(GraphicsContext*, ScrollbarThemeClient*, const IntRe ct&) override; 55 void paintThumb(GraphicsContext*, ScrollbarThemeClient*, const IntRect&) ove rride;
56 56
57 protected: 57 protected:
58 virtual IntRect trackRect(ScrollbarThemeClient*, bool painting = false) over ride; 58 IntRect trackRect(ScrollbarThemeClient*, bool painting = false) override;
59 virtual IntRect backButtonRect(ScrollbarThemeClient*, ScrollbarPart, bool pa inting = false) override; 59 IntRect backButtonRect(ScrollbarThemeClient*, ScrollbarPart, bool painting = false) override;
60 virtual IntRect forwardButtonRect(ScrollbarThemeClient*, ScrollbarPart, bool painting = false) override; 60 IntRect forwardButtonRect(ScrollbarThemeClient*, ScrollbarPart, bool paintin g = false) override;
61 61
62 virtual bool hasButtons(ScrollbarThemeClient*) override { return false; } 62 bool hasButtons(ScrollbarThemeClient*) override { return false; }
63 virtual bool hasThumb(ScrollbarThemeClient*) override; 63 bool hasThumb(ScrollbarThemeClient*) override;
64 64
65 virtual int minimumThumbLength(ScrollbarThemeClient*) override; 65 int minimumThumbLength(ScrollbarThemeClient*) override;
66 }; 66 };
67 67
68 } 68 }
69 69
70 #endif 70 #endif
OLDNEW
« no previous file with comments | « Source/platform/scroll/ScrollbarThemeMacNonOverlayAPI.h ('k') | Source/platform/scroll/ScrollbarThemeMock.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698