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

Unified Diff: public/web/mac/WebScrollbarTheme.h

Issue 57463002: Have Blink be told of scrollbar changes rather than paying attention itself (Blink side). (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: ensure cast Created 7 years, 1 month 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/web/web.gypi ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « Source/web/web.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698