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

Side by Side Diff: Source/platform/exported/WebScrollbarThemeClientImpl.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) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 22 matching lines...) Expand all
33 33
34 namespace blink { 34 namespace blink {
35 35
36 // Adapts a WebScrollbar to the ScrollbarThemeClient interface 36 // Adapts a WebScrollbar to the ScrollbarThemeClient interface
37 class PLATFORM_EXPORT WebScrollbarThemeClientImpl : public ScrollbarThemeClient { 37 class PLATFORM_EXPORT WebScrollbarThemeClientImpl : public ScrollbarThemeClient {
38 WTF_MAKE_NONCOPYABLE(WebScrollbarThemeClientImpl); 38 WTF_MAKE_NONCOPYABLE(WebScrollbarThemeClientImpl);
39 public: 39 public:
40 // Caller must retain ownership of this pointer and ensure that its lifetime 40 // Caller must retain ownership of this pointer and ensure that its lifetime
41 // exceeds this instance. 41 // exceeds this instance.
42 WebScrollbarThemeClientImpl(WebScrollbar*); 42 WebScrollbarThemeClientImpl(WebScrollbar*);
43 virtual ~WebScrollbarThemeClientImpl(); 43 ~WebScrollbarThemeClientImpl() override;
44 44
45 // Implement ScrollbarThemeClient interface 45 // Implement ScrollbarThemeClient interface
46 virtual int x() const override; 46 int x() const override;
47 virtual int y() const override; 47 int y() const override;
48 virtual int width() const override; 48 int width() const override;
49 virtual int height() const override; 49 int height() const override;
50 virtual IntSize size() const override; 50 IntSize size() const override;
51 virtual IntPoint location() const override; 51 IntPoint location() const override;
52 virtual Widget* parent() const override; 52 Widget* parent() const override;
53 virtual Widget* root() const override; 53 Widget* root() const override;
54 virtual void setFrameRect(const IntRect&) override; 54 void setFrameRect(const IntRect&) override;
55 virtual IntRect frameRect() const override; 55 IntRect frameRect() const override;
56 virtual void invalidate() override; 56 void invalidate() override;
57 virtual void invalidateRect(const IntRect&) override; 57 void invalidateRect(const IntRect&) override;
58 virtual ScrollbarOverlayStyle scrollbarOverlayStyle() const override; 58 ScrollbarOverlayStyle scrollbarOverlayStyle() const override;
59 virtual void getTickmarks(Vector<IntRect>&) const override; 59 void getTickmarks(Vector<IntRect>&) const override;
60 virtual bool isScrollableAreaActive() const override; 60 bool isScrollableAreaActive() const override;
61 virtual IntPoint convertFromContainingWindow(const IntPoint&) override; 61 IntPoint convertFromContainingWindow(const IntPoint&) override;
62 virtual bool isCustomScrollbar() const override; 62 bool isCustomScrollbar() const override;
63 virtual ScrollbarOrientation orientation() const override; 63 ScrollbarOrientation orientation() const override;
64 virtual bool isLeftSideVerticalScrollbar() const override; 64 bool isLeftSideVerticalScrollbar() const override;
65 virtual int value() const override; 65 int value() const override;
66 virtual float currentPos() const override; 66 float currentPos() const override;
67 virtual int visibleSize() const override; 67 int visibleSize() const override;
68 virtual int totalSize() const override; 68 int totalSize() const override;
69 virtual int maximum() const override; 69 int maximum() const override;
70 virtual ScrollbarControlSize controlSize() const override; 70 ScrollbarControlSize controlSize() const override;
71 virtual ScrollbarPart pressedPart() const override; 71 ScrollbarPart pressedPart() const override;
72 virtual ScrollbarPart hoveredPart() const override; 72 ScrollbarPart hoveredPart() const override;
73 virtual void styleChanged() override; 73 void styleChanged() override;
74 virtual bool enabled() const override; 74 bool enabled() const override;
75 virtual void setEnabled(bool) override; 75 void setEnabled(bool) override;
76 virtual bool isOverlayScrollbar() const override; 76 bool isOverlayScrollbar() const override;
77 virtual bool isAlphaLocked() const override; 77 bool isAlphaLocked() const override;
78 virtual void setIsAlphaLocked(bool) override; 78 void setIsAlphaLocked(bool) override;
79 virtual float elasticOverscroll() const override; 79 float elasticOverscroll() const override;
80 virtual void setElasticOverscroll(float) override; 80 void setElasticOverscroll(float) override;
81 virtual DisplayItemClient displayItemClient() const override; 81 DisplayItemClient displayItemClient() const override;
82 virtual String debugName() const override; 82 String debugName() const override;
83 83
84 private: 84 private:
85 WebScrollbar* m_scrollbar; 85 WebScrollbar* m_scrollbar;
86 }; 86 };
87 87
88 } // namespace blink 88 } // namespace blink
89 89
90 #endif // WebScrollbarThemeClientImpl_h 90 #endif // WebScrollbarThemeClientImpl_h
OLDNEW
« no previous file with comments | « Source/platform/exported/WebScrollbarImpl.h ('k') | Source/platform/exported/WebScrollbarThemeGeometryNative.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698