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

Unified Diff: base/mac/scoped_smooth_scrolling_disabler_mac.h

Issue 7693019: Enable smooth scrolling on mac (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ppapi test Created 9 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
Index: base/mac/scoped_smooth_scrolling_disabler_mac.h
diff --git a/base/mac/scoped_smooth_scrolling_disabler_mac.h b/base/mac/scoped_smooth_scrolling_disabler_mac.h
new file mode 100644
index 0000000000000000000000000000000000000000..1ca105783e3cf0fe682266a8580358dc7b268a10
--- /dev/null
+++ b/base/mac/scoped_smooth_scrolling_disabler_mac.h
@@ -0,0 +1,21 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef BASE_MAC_SCOPED_SMOOTH_SCROLLING_DISABLER_MAC
+#define BASE_MAC_SCOPED_SMOOTH_SCROLLING_DISABLER_MAC
+#pragma once
+
+namespace base {
+
+// A RAII class that disables smooth scrolling. This only has an effect if
+// it's done in the same process as the renderer, i.e. in-process tests.
+class ScopedSmoothScrollingDisabler {
+ public:
+ ScopedSmoothScrollingDisabler(bool actually_disable = true);
+ ~ScopedSmoothScrollingDisabler();
+};
+
+} // namespace base
+
+#endif // BASE_MAC_SCOPED_SMOOTH_SCROLLING_DISABLER_MAC

Powered by Google App Engine
This is Rietveld 408576698