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

Issue 7693019: Enable smooth scrolling on mac (Closed)

Created:
9 years, 4 months ago by Nico
Modified:
9 years, 3 months ago
CC:
chromium-reviews, hashimoto+watch_chromium.org, aboxhall+watch_chromium.org, jam, brettw-cc_chromium.org, yoshiki+watch_chromium.org, yuzo+watch_chromium.org, davidbarr+watch_chromium.org, joi+watch-content_chromium.org, darin-cc_chromium.org, dmazzoni+watch_chromium.org, dtseng+watch_chromium.org, Paweł Hajdan Jr., ctguil+watch_chromium.org, zork+watch_chromium.org, Scott Byer
Visibility:
Public.

Description

Enable smooth scrolling on mac This confuses a few unit tests, so add some machinery to disable the feature in tests and do so in the tests that need it. BUG=61140, 575 TEST=Go to en.wikipedia.org, hit space. Scroll should be animated. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=99186

Patch Set 1 #

Patch Set 2 : disable #

Patch Set 3 : noax #

Patch Set 4 : . #

Patch Set 5 : ppapi test #

Total comments: 4

Patch Set 6 : test #

Patch Set 7 : different approach #

Patch Set 8 : . #

Patch Set 9 : . #

Total comments: 2

Patch Set 10 : brett #

Total comments: 1

Patch Set 11 : align #

Patch Set 12 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+31 lines, -7 lines) Patch
M base/test/mock_time_provider.h View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -3 lines 0 comments Download
M build/common.gypi View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/tab_contents/render_view_host_delegate_helper.cc View 1 2 3 4 5 6 7 8 9 1 chunk +12 lines, -2 lines 0 comments Download
M chrome/test/ui/ppapi_uitest.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +4 lines, -0 lines 0 comments Download
M content/common/content_switches.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M content/common/content_switches.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +3 lines, -0 lines 0 comments Download
M content/renderer/render_view.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/render_view_browsertest_mac.mm View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
Nico
Mark: base/mac, gyp change Brett: content, ppapi test change Scott: FYI
9 years, 3 months ago (2011-08-30 23:39:20 UTC) #1
Mark Mentovai
http://codereview.chromium.org/7693019/diff/6001/base/mac/scoped_smooth_scrolling_disabler_mac.mm File base/mac/scoped_smooth_scrolling_disabler_mac.mm (right): http://codereview.chromium.org/7693019/diff/6001/base/mac/scoped_smooth_scrolling_disabler_mac.mm#newcode17 base/mac/scoped_smooth_scrolling_disabler_mac.mm:17: setBool:NO forKey:@"AppleScrollAnimationEnabled"]; These suck because they leave bad prefs ...
9 years, 3 months ago (2011-08-31 02:59:57 UTC) #2
Nico
http://codereview.chromium.org/7693019/diff/6001/base/mac/scoped_smooth_scrolling_disabler_mac.mm File base/mac/scoped_smooth_scrolling_disabler_mac.mm (right): http://codereview.chromium.org/7693019/diff/6001/base/mac/scoped_smooth_scrolling_disabler_mac.mm#newcode17 base/mac/scoped_smooth_scrolling_disabler_mac.mm:17: setBool:NO forKey:@"AppleScrollAnimationEnabled"]; On 2011/08/31 02:59:57, Mark Mentovai wrote: > ...
9 years, 3 months ago (2011-08-31 03:30:51 UTC) #3
Mark Mentovai
http://codereview.chromium.org/7693019/diff/6001/base/mac/scoped_smooth_scrolling_disabler_mac.mm File base/mac/scoped_smooth_scrolling_disabler_mac.mm (right): http://codereview.chromium.org/7693019/diff/6001/base/mac/scoped_smooth_scrolling_disabler_mac.mm#newcode17 base/mac/scoped_smooth_scrolling_disabler_mac.mm:17: setBool:NO forKey:@"AppleScrollAnimationEnabled"]; My concern is actually the confluence of ...
9 years, 3 months ago (2011-08-31 03:39:00 UTC) #4
Nico
Trybots say that doesn't work. I'll try to add a method to disable smooth scrolling ...
9 years, 3 months ago (2011-08-31 15:13:21 UTC) #5
Mark Mentovai
If it's a search order thing interacting with this key being present in some other ...
9 years, 3 months ago (2011-08-31 15:43:51 UTC) #6
Nico
That didn't work either. I changed how I disable the tests, ptal. This CL does ...
9 years, 3 months ago (2011-08-31 16:55:01 UTC) #7
brettw
Why does the flag need to be on Mac only? It seems as people convert ...
9 years, 3 months ago (2011-08-31 17:10:14 UTC) #8
Mark Mentovai
LGTM in base and the .gyp file. http://codereview.chromium.org/7693019/diff/13001/base/test/mock_time_provider.h File base/test/mock_time_provider.h (right): http://codereview.chromium.org/7693019/diff/13001/base/test/mock_time_provider.h#newcode43 base/test/mock_time_provider.h:43: #define BASE_TEST_MOCK_TIME_PROVIDER_H_ ...
9 years, 3 months ago (2011-08-31 18:02:51 UTC) #9
Mark Mentovai
LGTM in the .mm file too.
9 years, 3 months ago (2011-08-31 18:04:37 UTC) #10
Nico
On 2011/08/31 17:10:14, brettw wrote: > Why does the flag need to be on Mac ...
9 years, 3 months ago (2011-08-31 18:09:28 UTC) #11
Nico
http://codereview.chromium.org/7693019/diff/13001/base/test/mock_time_provider.h File base/test/mock_time_provider.h (right): http://codereview.chromium.org/7693019/diff/13001/base/test/mock_time_provider.h#newcode43 base/test/mock_time_provider.h:43: #define BASE_TEST_MOCK_TIME_PROVIDER_H_ On 2011/08/31 18:02:51, Mark Mentovai wrote: > ...
9 years, 3 months ago (2011-08-31 18:09:53 UTC) #12
brettw
LGTM http://codereview.chromium.org/7693019/diff/13004/content/common/content_switches.cc File content/common/content_switches.cc (right): http://codereview.chromium.org/7693019/diff/13004/content/common/content_switches.cc#newcode121 content/common/content_switches.cc:121: const char kDisableSmoothScrolling[] = "disable-smooth-scrolling"; Can you make ...
9 years, 3 months ago (2011-08-31 18:12:51 UTC) #13
commit-bot: I haz the power
9 years, 3 months ago (2011-09-01 15:24:03 UTC) #14
Change committed as 99186

Powered by Google App Engine
This is Rietveld 408576698