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

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

Issue 23480037: Fix RTL scroll bars being misrendered on Android. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: isLeftSideVerticalScrollbar Created 7 years, 3 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) 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 12 matching lines...) Expand all
23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24 */ 24 */
25 25
26 #ifndef Scrollbar_h 26 #ifndef Scrollbar_h
27 #define Scrollbar_h 27 #define Scrollbar_h
28 28
29 #include "core/platform/ScrollTypes.h" 29 #include "core/platform/ScrollTypes.h"
30 #include "core/platform/ScrollbarThemeClient.h" 30 #include "core/platform/ScrollbarThemeClient.h"
31 #include "core/platform/Timer.h" 31 #include "core/platform/Timer.h"
32 #include "core/platform/Widget.h" 32 #include "core/platform/Widget.h"
33 #include "core/platform/text/TextDirection.h"
34 #include "wtf/MathExtras.h" 33 #include "wtf/MathExtras.h"
35 #include "wtf/PassRefPtr.h" 34 #include "wtf/PassRefPtr.h"
36 35
37 namespace WebCore { 36 namespace WebCore {
38 37
39 class GraphicsContext; 38 class GraphicsContext;
40 class IntRect; 39 class IntRect;
41 class PlatformGestureEvent; 40 class PlatformGestureEvent;
42 class PlatformMouseEvent; 41 class PlatformMouseEvent;
43 class ScrollableArea; 42 class ScrollableArea;
(...skipping 26 matching lines...) Expand all
70 69
71 virtual ScrollbarOverlayStyle scrollbarOverlayStyle() const; 70 virtual ScrollbarOverlayStyle scrollbarOverlayStyle() const;
72 virtual void getTickmarks(Vector<IntRect>&) const; 71 virtual void getTickmarks(Vector<IntRect>&) const;
73 virtual bool isScrollableAreaActive() const; 72 virtual bool isScrollableAreaActive() const;
74 virtual bool isScrollViewScrollbar() const; 73 virtual bool isScrollViewScrollbar() const;
75 74
76 virtual IntPoint convertFromContainingWindow(const IntPoint& windowPoint) { return Widget::convertFromContainingWindow(windowPoint); } 75 virtual IntPoint convertFromContainingWindow(const IntPoint& windowPoint) { return Widget::convertFromContainingWindow(windowPoint); }
77 76
78 virtual bool isCustomScrollbar() const { return false; } 77 virtual bool isCustomScrollbar() const { return false; }
79 virtual ScrollbarOrientation orientation() const { return m_orientation; } 78 virtual ScrollbarOrientation orientation() const { return m_orientation; }
80 TextDirection textDirection() const; 79 virtual bool isLeftSideVerticalScrollbar() const;
81 80
82 virtual int value() const { return lroundf(m_currentPos); } 81 virtual int value() const { return lroundf(m_currentPos); }
83 virtual float currentPos() const { return m_currentPos; } 82 virtual float currentPos() const { return m_currentPos; }
84 virtual int visibleSize() const { return m_visibleSize; } 83 virtual int visibleSize() const { return m_visibleSize; }
85 virtual int totalSize() const { return m_totalSize; } 84 virtual int totalSize() const { return m_totalSize; }
86 virtual int maximum() const { return m_totalSize - m_visibleSize; } 85 virtual int maximum() const { return m_totalSize - m_visibleSize; }
87 virtual ScrollbarControlSize controlSize() const { return m_controlSize; } 86 virtual ScrollbarControlSize controlSize() const { return m_controlSize; }
88 87
89 virtual ScrollbarPart pressedPart() const { return m_pressedPart; } 88 virtual ScrollbarPart pressedPart() const { return m_pressedPart; }
90 virtual ScrollbarPart hoveredPart() const { return m_hoveredPart; } 89 virtual ScrollbarPart hoveredPart() const { return m_hoveredPart; }
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 private: 188 private:
190 virtual bool isScrollbar() const { return true; } 189 virtual bool isScrollbar() const { return true; }
191 virtual AXObjectCache* existingAXObjectCache() const; 190 virtual AXObjectCache* existingAXObjectCache() const;
192 191
193 float scrollableAreaCurrentPos() const; 192 float scrollableAreaCurrentPos() const;
194 }; 193 };
195 194
196 } // namespace WebCore 195 } // namespace WebCore
197 196
198 #endif // Scrollbar_h 197 #endif // Scrollbar_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698