| Index: third_party/WebKit/Source/WebKit/chromium/public/WebScrollbar.h
|
| ===================================================================
|
| --- third_party/WebKit/Source/WebKit/chromium/public/WebScrollbar.h (revision 92367)
|
| +++ third_party/WebKit/Source/WebKit/chromium/public/WebScrollbar.h (working copy)
|
| @@ -34,10 +34,14 @@
|
| #include "WebCanvas.h"
|
| #include "WebCommon.h"
|
|
|
| +// TODO(jam): take this out once Chrome rolls this revision of WebKit.
|
| +#define WEBSCROLLBAR_SUPPORTS_OVERLAY
|
| +
|
| namespace WebKit {
|
|
|
| class WebInputEvent;
|
| class WebScrollbarClient;
|
| +class WebScrollbarGroup;
|
| struct WebRect;
|
|
|
| class WebScrollbar {
|
| @@ -59,14 +63,19 @@
|
| ScrollByPixel
|
| };
|
|
|
| - // Creates a WebScrollbar.
|
| - WEBKIT_EXPORT static WebScrollbar* create(WebScrollbarClient*, Orientation);
|
| + // Creates a WebScrollbar. The client and group are guaranteed to outlive this object.
|
| + WEBKIT_EXPORT static WebScrollbar* create(WebScrollbarClient*,
|
| + WebScrollbarGroup*,
|
| + Orientation);
|
|
|
| virtual ~WebScrollbar() {}
|
|
|
| // Gets the thickness of the scrollbar in pixels.
|
| WEBKIT_EXPORT static int defaultThickness();
|
|
|
| + // Return true if this is an overlay scrollbar.
|
| + virtual bool isOverlay() = 0;
|
| +
|
| // Sets the rectangle of the scrollbar.
|
| virtual void setLocation(const WebRect&) = 0;
|
|
|
|
|