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

Side by Side Diff: third_party/WebKit/Source/platform/scroll/Scrollbar.h

Issue 1528613006: Oilpan: make ScrollableAreaTest.ScrollbarTrackAndThumbRepaint work. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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) 2004, 2006 Apple Computer, Inc. All rights reserved. 2 * Copyright (C) 2004, 2006 Apple Computer, 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 30 matching lines...) Expand all
41 class IntRect; 41 class IntRect;
42 class PlatformGestureEvent; 42 class PlatformGestureEvent;
43 class PlatformMouseEvent; 43 class PlatformMouseEvent;
44 class ScrollAnimatorBase; 44 class ScrollAnimatorBase;
45 class ScrollableArea; 45 class ScrollableArea;
46 class ScrollbarTheme; 46 class ScrollbarTheme;
47 47
48 class PLATFORM_EXPORT Scrollbar : public Widget, public ScrollbarThemeClient { 48 class PLATFORM_EXPORT Scrollbar : public Widget, public ScrollbarThemeClient {
49 public: 49 public:
50 static PassRefPtrWillBeRawPtr<Scrollbar> create(ScrollableArea*, ScrollbarOr ientation, ScrollbarControlSize); 50 static PassRefPtrWillBeRawPtr<Scrollbar> create(ScrollableArea*, ScrollbarOr ientation, ScrollbarControlSize);
51
52 // Theme object ownership remains with the caller and it must outlive the sc rollbar.
51 static PassRefPtrWillBeRawPtr<Scrollbar> createForTesting(ScrollableArea*, S crollbarOrientation, ScrollbarControlSize, ScrollbarTheme*); 53 static PassRefPtrWillBeRawPtr<Scrollbar> createForTesting(ScrollableArea*, S crollbarOrientation, ScrollbarControlSize, ScrollbarTheme*);
52 54
53 ~Scrollbar() override; 55 ~Scrollbar() override;
54 56
55 // ScrollbarThemeClient implementation. 57 // ScrollbarThemeClient implementation.
56 int x() const override { return Widget::x(); } 58 int x() const override { return Widget::x(); }
57 int y() const override { return Widget::y(); } 59 int y() const override { return Widget::y(); }
58 int width() const override { return Widget::width(); } 60 int width() const override { return Widget::width(); }
59 int height() const override { return Widget::height(); } 61 int height() const override { return Widget::height(); }
60 IntSize size() const override { return Widget::size(); } 62 IntSize size() const override { return Widget::size(); }
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 212
211 bool m_trackNeedsRepaint; 213 bool m_trackNeedsRepaint;
212 bool m_thumbNeedsRepaint; 214 bool m_thumbNeedsRepaint;
213 }; 215 };
214 216
215 DEFINE_TYPE_CASTS(Scrollbar, Widget, widget, widget->isScrollbar(), widget.isScr ollbar()); 217 DEFINE_TYPE_CASTS(Scrollbar, Widget, widget, widget->isScrollbar(), widget.isScr ollbar());
216 218
217 } // namespace blink 219 } // namespace blink
218 220
219 #endif // Scrollbar_h 221 #endif // Scrollbar_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698