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

Issue 2362063002: cros: Laser pointer fades out on release, do not cover palette. (Closed)

Created:
4 years, 3 months ago by sammiequon
Modified:
4 years, 2 months ago
Reviewers:
jdufault, James Cook
CC:
chromium-reviews, kalyank, sadrul
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

cros: Laser pointer fades out on release, do not cover palette. The laser pointer fades out quickly now on release instead of disappearing. It gets hidden before the palette now. I check if the event is over the palette first now. Also modified the laser points to be able to move forward in time (and thus delete points) without adding a new point. BUG=647795, 649517 TEST=ash_unittests --gtest_filter="LaserPointer*" Committed: https://crrev.com/4034b4e474bb881411690569ce59e298676ab20f Cr-Commit-Position: refs/heads/master@{#425827}

Patch Set 1 #

Total comments: 26

Patch Set 2 : Fixed patch set 1 errors. #

Patch Set 3 : Moved age logic to laser pointer points class. #

Total comments: 30

Patch Set 4 : Rebased. #

Patch Set 5 : Fixed patch set 3 errors. #

Total comments: 19

Patch Set 6 : Fixed patch set 5 errors. #

Total comments: 20

Patch Set 7 : Fixed patch set 6 errors. #

Total comments: 10

Patch Set 8 : Rebased. #

Patch Set 9 : Fixed patch set 7 errors. #

Total comments: 6

Patch Set 10 : Fixed patch set 9 errors. #

Total comments: 4

Patch Set 11 : Fixed patch set 10 errors. #

Total comments: 2

Patch Set 12 : Nit. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+189 lines, -86 lines) Patch
M ash/laser/laser_pointer_controller.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +18 lines, -0 lines 0 comments Download
M ash/laser/laser_pointer_controller.cc View 1 2 3 4 5 6 7 8 9 3 chunks +65 lines, -32 lines 0 comments Download
M ash/laser/laser_pointer_controller_test_api.h View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M ash/laser/laser_pointer_controller_test_api.cc View 1 2 3 4 5 6 1 chunk +8 lines, -0 lines 0 comments Download
M ash/laser/laser_pointer_controller_unittest.cc View 1 2 3 4 5 6 4 chunks +23 lines, -6 lines 0 comments Download
M ash/laser/laser_pointer_points.h View 1 2 3 4 5 6 7 8 9 10 4 chunks +10 lines, -3 lines 0 comments Download
M ash/laser/laser_pointer_points.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +22 lines, -12 lines 0 comments Download
M ash/laser/laser_pointer_points_test_api.h View 1 2 3 4 2 chunks +2 lines, -4 lines 0 comments Download
M ash/laser/laser_pointer_points_test_api.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +10 lines, -7 lines 0 comments Download
M ash/laser/laser_pointer_view.h View 1 2 3 4 5 2 chunks +4 lines, -0 lines 0 comments Download
M ash/laser/laser_pointer_view.cc View 1 2 3 4 5 6 3 chunks +25 lines, -22 lines 0 comments Download

Messages

Total messages: 49 (26 generated)
sammiequon
On 2016/09/22 23:08:48, sammiequon wrote: > mailto:sammiequon@chromium.org changed reviewers: > + mailto:jdufault@chromium.org jdufault@ - Please ...
4 years, 3 months ago (2016-09-22 23:09:17 UTC) #3
jdufault
I added some comments, but I think that the fade away logic can be greatly ...
4 years, 3 months ago (2016-09-23 23:59:20 UTC) #4
sammiequon
I moved the fading logic to laser_pointer_points.h as requested. https://codereview.chromium.org/2362063002/diff/1/ash/laser/laser_pointer_controller.cc File ash/laser/laser_pointer_controller.cc (right): https://codereview.chromium.org/2362063002/diff/1/ash/laser/laser_pointer_controller.cc#newcode82 ash/laser/laser_pointer_controller.cc:82: ...
4 years, 2 months ago (2016-09-26 19:30:39 UTC) #5
jdufault
https://codereview.chromium.org/2362063002/diff/40001/ash/laser/laser_pointer_controller.cc File ash/laser/laser_pointer_controller.cc (right): https://codereview.chromium.org/2362063002/diff/40001/ash/laser/laser_pointer_controller.cc#newcode88 ash/laser/laser_pointer_controller.cc:88: // Remap point from where it was captured to ...
4 years, 2 months ago (2016-10-04 22:04:13 UTC) #6
sammiequon
https://codereview.chromium.org/2362063002/diff/40001/ash/laser/laser_pointer_controller.cc File ash/laser/laser_pointer_controller.cc (right): https://codereview.chromium.org/2362063002/diff/40001/ash/laser/laser_pointer_controller.cc#newcode88 ash/laser/laser_pointer_controller.cc:88: // Remap point from where it was captured to ...
4 years, 2 months ago (2016-10-05 17:42:23 UTC) #7
jdufault
https://codereview.chromium.org/2362063002/diff/80001/ash/laser/laser_pointer_controller.cc File ash/laser/laser_pointer_controller.cc (right): https://codereview.chromium.org/2362063002/diff/80001/ash/laser/laser_pointer_controller.cc#newcode93 ash/laser/laser_pointer_controller.cc:93: // If the stylus is over the palette icon ...
4 years, 2 months ago (2016-10-05 18:08:51 UTC) #8
sammiequon
https://codereview.chromium.org/2362063002/diff/80001/ash/laser/laser_pointer_controller.cc File ash/laser/laser_pointer_controller.cc (right): https://codereview.chromium.org/2362063002/diff/80001/ash/laser/laser_pointer_controller.cc#newcode93 ash/laser/laser_pointer_controller.cc:93: // If the stylus is over the palette icon ...
4 years, 2 months ago (2016-10-05 21:15:22 UTC) #9
jdufault
https://codereview.chromium.org/2362063002/diff/80001/ash/laser/laser_pointer_points.h File ash/laser/laser_pointer_points.h (right): https://codereview.chromium.org/2362063002/diff/80001/ash/laser/laser_pointer_points.h#newcode28 ash/laser/laser_pointer_points.h:28: double age; On 2016/10/05 21:15:22, sammiequon wrote: > On ...
4 years, 2 months ago (2016-10-05 21:36:06 UTC) #10
sammiequon
https://codereview.chromium.org/2362063002/diff/100001/ash/laser/laser_pointer_controller.cc File ash/laser/laser_pointer_controller.cc (right): https://codereview.chromium.org/2362063002/diff/100001/ash/laser/laser_pointer_controller.cc#newcode78 ash/laser/laser_pointer_controller.cc:78: // Check if the current window is valid. Destroy ...
4 years, 2 months ago (2016-10-06 00:19:16 UTC) #23
jdufault
https://codereview.chromium.org/2362063002/diff/140001/ash/laser/laser_pointer_controller.cc File ash/laser/laser_pointer_controller.cc (right): https://codereview.chromium.org/2362063002/diff/140001/ash/laser/laser_pointer_controller.cc#newcode94 ash/laser/laser_pointer_controller.cc:94: (is_fading_away_ || PaletteContainsPointInScreen(event_location))) { We should allow a new ...
4 years, 2 months ago (2016-10-13 00:12:30 UTC) #24
sammiequon
https://codereview.chromium.org/2362063002/diff/140001/ash/laser/laser_pointer_controller.cc File ash/laser/laser_pointer_controller.cc (right): https://codereview.chromium.org/2362063002/diff/140001/ash/laser/laser_pointer_controller.cc#newcode94 ash/laser/laser_pointer_controller.cc:94: (is_fading_away_ || PaletteContainsPointInScreen(event_location))) { On 2016/10/13 00:12:30, jdufault wrote: ...
4 years, 2 months ago (2016-10-14 18:48:50 UTC) #25
jdufault
https://codereview.chromium.org/2362063002/diff/180001/ash/laser/laser_pointer_controller.cc File ash/laser/laser_pointer_controller.cc (right): https://codereview.chromium.org/2362063002/diff/180001/ash/laser/laser_pointer_controller.cc#newcode135 ash/laser/laser_pointer_controller.cc:135: if (start_timer) { Instead of having a boolean why ...
4 years, 2 months ago (2016-10-14 19:13:09 UTC) #26
sammiequon
https://codereview.chromium.org/2362063002/diff/180001/ash/laser/laser_pointer_controller.cc File ash/laser/laser_pointer_controller.cc (right): https://codereview.chromium.org/2362063002/diff/180001/ash/laser/laser_pointer_controller.cc#newcode135 ash/laser/laser_pointer_controller.cc:135: if (start_timer) { On 2016/10/14 19:13:09, jdufault wrote: > ...
4 years, 2 months ago (2016-10-14 21:29:32 UTC) #27
jdufault
lgtm https://codereview.chromium.org/2362063002/diff/200001/ash/laser/laser_pointer_controller.h File ash/laser/laser_pointer_controller.h (right): https://codereview.chromium.org/2362063002/diff/200001/ash/laser/laser_pointer_controller.h#newcode60 ash/laser/laser_pointer_controller.h:60: void UpdateLaserPointerView(aura::Window* current_window, Update comment (no more timer ...
4 years, 2 months ago (2016-10-14 21:59:47 UTC) #28
sammiequon
https://codereview.chromium.org/2362063002/diff/200001/ash/laser/laser_pointer_controller.h File ash/laser/laser_pointer_controller.h (right): https://codereview.chromium.org/2362063002/diff/200001/ash/laser/laser_pointer_controller.h#newcode60 ash/laser/laser_pointer_controller.h:60: void UpdateLaserPointerView(aura::Window* current_window, On 2016/10/14 21:59:47, jdufault wrote: > ...
4 years, 2 months ago (2016-10-17 19:12:24 UTC) #29
sammiequon
On 2016/10/17 19:12:24, sammiequon wrote: > https://codereview.chromium.org/2362063002/diff/200001/ash/laser/laser_pointer_controller.h > File ash/laser/laser_pointer_controller.h (right): > > https://codereview.chromium.org/2362063002/diff/200001/ash/laser/laser_pointer_controller.h#newcode60 > ...
4 years, 2 months ago (2016-10-17 19:13:08 UTC) #31
jdufault
https://codereview.chromium.org/2362063002/diff/220001/ash/laser/laser_pointer_points.cc File ash/laser/laser_pointer_points.cc (right): https://codereview.chromium.org/2362063002/diff/220001/ash/laser/laser_pointer_points.cc#newcode22 ash/laser/laser_pointer_points.cc:22: new_point.age = 0.0; Remove since the default age is ...
4 years, 2 months ago (2016-10-17 19:14:13 UTC) #32
James Cook
lgtm
4 years, 2 months ago (2016-10-17 20:30:20 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2362063002/220001
4 years, 2 months ago (2016-10-17 21:39:47 UTC) #36
sammiequon
https://codereview.chromium.org/2362063002/diff/220001/ash/laser/laser_pointer_points.cc File ash/laser/laser_pointer_points.cc (right): https://codereview.chromium.org/2362063002/diff/220001/ash/laser/laser_pointer_points.cc#newcode22 ash/laser/laser_pointer_points.cc:22: new_point.age = 0.0; On 2016/10/17 19:14:13, jdufault wrote: > ...
4 years, 2 months ago (2016-10-17 23:39:49 UTC) #42
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2362063002/240001
4 years, 2 months ago (2016-10-17 23:40:24 UTC) #45
commit-bot: I haz the power
Committed patchset #12 (id:240001)
4 years, 2 months ago (2016-10-18 00:14:41 UTC) #47
commit-bot: I haz the power
4 years, 2 months ago (2016-10-18 00:17:47 UTC) #49
Message was sent while issue was closed.
Patchset 12 (id:??) landed as
https://crrev.com/4034b4e474bb881411690569ce59e298676ab20f
Cr-Commit-Position: refs/heads/master@{#425827}

Powered by Google App Engine
This is Rietveld 408576698