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

Unified Diff: Source/platform/scroll/ScrollbarThemeMock.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 side-by-side diff with in-line comments
Download patch
Index: Source/platform/scroll/ScrollbarThemeMock.h
diff --git a/Source/platform/scroll/ScrollbarThemeMock.h b/Source/platform/scroll/ScrollbarThemeMock.h
index 74396f2b118566c5a03f9d07411813abd4e99683..a54b3dc3afa779ca21bf9f35b0051902395765b7 100644
--- a/Source/platform/scroll/ScrollbarThemeMock.h
+++ b/Source/platform/scroll/ScrollbarThemeMock.h
@@ -33,22 +33,22 @@ namespace blink {
// Scrollbar theme used in image snapshots, to eliminate appearance differences between platforms.
class PLATFORM_EXPORT ScrollbarThemeMock : public ScrollbarTheme {
public:
- virtual int scrollbarThickness(ScrollbarControlSize = RegularScrollbar) override;
- virtual bool usesOverlayScrollbars() const override;
+ int scrollbarThickness(ScrollbarControlSize = RegularScrollbar) override;
+ bool usesOverlayScrollbars() const override;
protected:
- virtual bool hasButtons(ScrollbarThemeClient*) override { return false; }
- virtual bool hasThumb(ScrollbarThemeClient*) override { return true; }
+ bool hasButtons(ScrollbarThemeClient*) override { return false; }
+ bool hasThumb(ScrollbarThemeClient*) override { return true; }
- virtual IntRect backButtonRect(ScrollbarThemeClient*, ScrollbarPart, bool /*painting*/ = false) override { return IntRect(); }
- virtual IntRect forwardButtonRect(ScrollbarThemeClient*, ScrollbarPart, bool /*painting*/ = false) override { return IntRect(); }
- virtual IntRect trackRect(ScrollbarThemeClient*, bool painting = false) override;
+ IntRect backButtonRect(ScrollbarThemeClient*, ScrollbarPart, bool /*painting*/ = false) override { return IntRect(); }
+ IntRect forwardButtonRect(ScrollbarThemeClient*, ScrollbarPart, bool /*painting*/ = false) override { return IntRect(); }
+ IntRect trackRect(ScrollbarThemeClient*, bool painting = false) override;
- virtual void paintTrackBackground(GraphicsContext*, ScrollbarThemeClient*, const IntRect&) override;
- virtual void paintThumb(GraphicsContext*, ScrollbarThemeClient*, const IntRect&) override;
+ void paintTrackBackground(GraphicsContext*, ScrollbarThemeClient*, const IntRect&) override;
+ void paintThumb(GraphicsContext*, ScrollbarThemeClient*, const IntRect&) override;
private:
- virtual bool isMockTheme() const override final { return true; }
+ bool isMockTheme() const final { return true; }
};
}
« no previous file with comments | « Source/platform/scroll/ScrollbarThemeMacOverlayAPI.h ('k') | Source/platform/scroll/ScrollbarThemeNonMacCommon.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698