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

Issue 630003003: Change GestureConfiguration types to be consistent with each other and with the (Closed)

Created:
6 years, 2 months ago by Peter Kasting
Modified:
6 years, 2 months ago
Reviewers:
rjkroege, sky, lanwei, tdresser
CC:
chromium-reviews, sadrul, nkostylev+watch_chromium.org, tdresser+watch_chromium.org, jdduke+watch_chromium.org, ben+aura_chromium.org, jam, darin-cc_chromium.org, arv+watch_chromium.org, oshima+watch_chromium.org, kalyank, stevenjb+watch_chromium.org, ben+ash_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Change GestureConfiguration types to be consistent with each other and with the types in GestureDetector::Config and other usage points. Basically: * Times should always be ints representing milliseconds * Distances and velocities should always be floats This eliminates a number of implicit type conversions, some of which trigger a (currently disabled) MSVC warning due to possible value truncation. BUG=81439 TEST=none Committed: https://crrev.com/53aebab88d0b3304a5ba13ff08467fb2e39b674e Cr-Commit-Position: refs/heads/master@{#299007}

Patch Set 1 #

Total comments: 2

Patch Set 2 : More type fixes #

Patch Set 3 : Rebase #

Patch Set 4 : Try to fix compile #

Patch Set 5 : Really fix compile #

Unified diffs Side-by-side diffs Delta from patch set Stats (+164 lines, -169 lines) Patch
M ash/frame/caption_buttons/frame_size_button_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M ash/wm/gestures/long_press_affordance_handler.cc View 2 chunks +8 lines, -9 lines 0 comments Download
M chrome/browser/resources/gesture_config.js View 1 chunk +2 lines, -3 lines 0 comments Download
M chrome/browser/ui/gesture_prefs_observer_factory_aura.cc View 4 chunks +12 lines, -10 lines 0 comments Download
M chrome/browser/ui/webui/chromeos/salsa_ui.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/common/pref_names.h View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/common/pref_names.cc View 1 chunk +3 lines, -5 lines 0 comments Download
M content/browser/renderer_host/input/input_router_config_helper.cc View 2 chunks +4 lines, -4 lines 0 comments Download
M content/browser/renderer_host/input/touch_event_queue_unittest.cc View 1 2 3 4 9 chunks +16 lines, -16 lines 0 comments Download
M ui/aura/gestures/gesture_recognizer_unittest.cc View 1 2 9 chunks +35 lines, -32 lines 0 comments Download
M ui/aura/test/aura_test_base.cc View 1 chunk +5 lines, -6 lines 0 comments Download
M ui/aura/window_unittest.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M ui/events/gesture_detection/gesture_config_helper_aura.cc View 2 chunks +7 lines, -11 lines 0 comments Download
M ui/events/gestures/gesture_configuration.h View 6 chunks +49 lines, -47 lines 0 comments Download
M ui/events/gestures/gesture_configuration.cc View 1 chunk +13 lines, -15 lines 0 comments Download
M ui/events/gestures/gesture_provider_aura.cc View 1 chunk +2 lines, -3 lines 0 comments Download
M ui/events/gestures/gesture_recognizer_impl.cc View 1 2 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 20 (5 generated)
Peter Kasting
6 years, 2 months ago (2014-10-08 01:54:51 UTC) #2
Peter Kasting
Note that this will result in us resetting the stored value of the semi-long press ...
6 years, 2 months ago (2014-10-08 01:57:00 UTC) #3
rjkroege
On 2014/10/08 01:57:00, Peter Kasting wrote: > Note that this will result in us resetting ...
6 years, 2 months ago (2014-10-08 17:44:42 UTC) #4
rjkroege
https://codereview.chromium.org/630003003/diff/1/ui/aura/gestures/gesture_recognizer_unittest.cc File ui/aura/gestures/gesture_recognizer_unittest.cc (right): https://codereview.chromium.org/630003003/diff/1/ui/aura/gestures/gesture_recognizer_unittest.cc#newcode1094 ui/aura/gestures/gesture_recognizer_unittest.cc:1094: const float kPositionX = 101; I vaguely recall that ...
6 years, 2 months ago (2014-10-08 17:45:22 UTC) #5
Peter Kasting
On 2014/10/08 17:44:42, rjkroege wrote: > On 2014/10/08 01:57:00, Peter Kasting wrote: > > Note ...
6 years, 2 months ago (2014-10-08 18:05:54 UTC) #7
rjkroege
On 2014/10/08 18:05:54, Peter Kasting wrote: > On 2014/10/08 17:44:42, rjkroege wrote: > > On ...
6 years, 2 months ago (2014-10-08 18:17:44 UTC) #8
Peter Kasting
On 2014/10/08 17:44:42, rjkroege wrote: > On 2014/10/08 01:57:00, Peter Kasting wrote: > > Note ...
6 years, 2 months ago (2014-10-08 18:58:06 UTC) #9
Peter Kasting
Patch set 2 just makes a few other minor type-correctness fixes discovered while checking to ...
6 years, 2 months ago (2014-10-08 21:01:35 UTC) #11
sky
LGTM
6 years, 2 months ago (2014-10-08 22:30:52 UTC) #12
tdresser
You should talk to lanwei@ about the order you'll land this and https://codereview.chromium.org/613373004/. Otherwise this ...
6 years, 2 months ago (2014-10-09 12:27:12 UTC) #14
Peter Kasting
lanwei, is it OK if I go ahead and land this? It's going to cause ...
6 years, 2 months ago (2014-10-09 18:12:33 UTC) #15
lanwei
On 2014/10/09 18:12:33, Peter Kasting wrote: > lanwei, is it OK if I go ahead ...
6 years, 2 months ago (2014-10-09 18:17:59 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/630003003/210001
6 years, 2 months ago (2014-10-09 22:05:49 UTC) #18
commit-bot: I haz the power
Committed patchset #5 (id:210001)
6 years, 2 months ago (2014-10-09 23:27:19 UTC) #19
commit-bot: I haz the power
6 years, 2 months ago (2014-10-09 23:28:01 UTC) #20
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/53aebab88d0b3304a5ba13ff08467fb2e39b674e
Cr-Commit-Position: refs/heads/master@{#299007}

Powered by Google App Engine
This is Rietveld 408576698