Chromium Code Reviews| Index: public/web/mac/WebScrollbarTheme.h |
| diff --git a/public/platform/WebFilterKeyframe.h b/public/web/mac/WebScrollbarTheme.h |
| similarity index 69% |
| copy from public/platform/WebFilterKeyframe.h |
| copy to public/web/mac/WebScrollbarTheme.h |
| index 8f8fe83b067b55af8ecf5e6581fca741d77892d6..65f22798531f5902318a6ca567b9ddc016250207 100644 |
| --- a/public/platform/WebFilterKeyframe.h |
| +++ b/public/web/mac/WebScrollbarTheme.h |
| @@ -1,6 +1,5 @@ |
| /* |
| * Copyright (C) 2013 Google Inc. All rights reserved. |
| - * Copyright (C) 2013 Intel Corporation. All rights reserved. |
| * |
| * Redistribution and use in source and binary forms, with or without |
| * modification, are permitted provided that the following conditions are |
| @@ -29,35 +28,27 @@ |
| * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| */ |
| -#ifndef WebFilterKeyframe_h |
| -#define WebFilterKeyframe_h |
| +#ifndef WebScrollbarTheme_h |
| +#define WebScrollbarTheme_h |
| -#include "WebFilterOperations.h" |
| -#include "WebPrivateOwnPtr.h" |
| - |
| -#if INSIDE_BLINK |
| -namespace WTF { template <typename T> class PassOwnPtr; } |
| -#endif |
| +#include "public/platform/WebCommon.h" |
| namespace WebKit { |
| -class WebFilterKeyframe { |
| +class WebScrollbarTheme { |
| public: |
| -#if INSIDE_BLINK |
| - BLINK_PLATFORM_EXPORT WebFilterKeyframe(double time, PassOwnPtr<WebFilterOperations>); |
| +#if OS(MACOSX) |
|
abarth-chromium
2013/11/04 17:19:40
Does this work in this header? I don't think this
Avi (use Gerrit)
2013/11/04 17:20:50
Mmmm. Good point.
|
| + // Updates the scrollbar appearance and behavior. |
| + // |initialButtonDelay| is the current value of NSScrollerButtonDelay from NSUserDefaults. |
| + // |autoscrollButtonDelay| is the current value of NSScrollerButtonPeriod from NSUserDefaults. |
| + // |jumpOnTrackClick| is the current value of AppleScrollerPagingBehavior from NSUserDefaults. |
| + // |redraw| is true if the update requires a redraw to include the change. |
| + BLINK_EXPORT static void updateScrollbars( |
| + float initialButtonDelay, float autoscrollButtonDelay, |
| + bool jumpOnTrackClick, bool redraw); |
| #endif |
| - |
| - BLINK_PLATFORM_EXPORT ~WebFilterKeyframe(); |
| - |
| - double time() const { return m_time; } |
| - |
| - const WebFilterOperations& value() const { return *m_value.get(); } |
| - |
| -private: |
| - double m_time; |
| - WebPrivateOwnPtr<WebFilterOperations> m_value; |
| }; |
| } // namespace WebKit |
| -#endif // WebFilterKeyframe_h |
| +#endif |