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

Unified Diff: Source/core/platform/Scrollbar.h

Issue 23734003: Add the text direction to the WebScrollbar interface. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: less memory Created 7 years, 4 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
« no previous file with comments | « Source/core/platform/ScrollableArea.cpp ('k') | Source/core/platform/Scrollbar.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/platform/Scrollbar.h
diff --git a/Source/core/platform/Scrollbar.h b/Source/core/platform/Scrollbar.h
index 0201a2dca76dc0e4dde62cb043b3088656bc8371..15b9e03959bead120c0eb90ab4d21e2468c5d137 100644
--- a/Source/core/platform/Scrollbar.h
+++ b/Source/core/platform/Scrollbar.h
@@ -30,6 +30,7 @@
#include "core/platform/ScrollbarThemeClient.h"
#include "core/platform/Timer.h"
#include "core/platform/Widget.h"
+#include "core/platform/text/TextDirection.h"
#include "wtf/MathExtras.h"
#include "wtf/PassRefPtr.h"
@@ -47,7 +48,7 @@ class Scrollbar : public Widget,
public:
// Must be implemented by platforms that can't simply use the Scrollbar base class. Right now the only platform that is not using the base class is GTK.
- static PassRefPtr<Scrollbar> createNativeScrollbar(ScrollableArea*, ScrollbarOrientation orientation, ScrollbarControlSize size);
+ static PassRefPtr<Scrollbar> createNativeScrollbar(ScrollableArea*, ScrollbarOrientation, ScrollbarControlSize);
virtual ~Scrollbar();
@@ -77,6 +78,7 @@ public:
virtual bool isCustomScrollbar() const { return false; }
virtual ScrollbarOrientation orientation() const { return m_orientation; }
+ TextDirection textDirection() const;
virtual int value() const { return lroundf(m_currentPos); }
virtual float currentPos() const { return m_currentPos; }
« no previous file with comments | « Source/core/platform/ScrollableArea.cpp ('k') | Source/core/platform/Scrollbar.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698