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

Issue 13947045: Magnifier: Move the cursor directly to the root window host. (Closed)

Created:
7 years, 8 months ago by yoshiki
Modified:
7 years, 8 months ago
Reviewers:
oshima, sky
CC:
chromium-reviews, sadrul, ben+watch_chromium.org
Visibility:
Public.

Description

Magnifier: Move the cursor directly to the root window host. - Add RootWindow::MoveCursorToInHost() to move the cursor to the specified location in the host. - Use it in MagnificationController to move the cursor instead of MoveCursorTo(). BUG=223983, 230979 TEST=ash_unittests passes. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=196683

Patch Set 1 #

Total comments: 6

Patch Set 2 : addressed comments #

Patch Set 3 : addressed comments #

Total comments: 8

Patch Set 4 : addressed comments #

Total comments: 11

Patch Set 5 : refactor #

Patch Set 6 : move synthesize_mouse_move_ to MoveCursorToInternal #

Patch Set 7 : fix a misspelling and add a comment #

Total comments: 2

Patch Set 8 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+333 lines, -36 lines) Patch
M ash/accelerators/accelerator_controller.cc View 1 2 3 4 5 6 7 2 chunks +4 lines, -10 lines 0 comments Download
M ash/magnifier/magnification_controller.h View 1 2 3 4 5 6 1 chunk +5 lines, -0 lines 0 comments Download
M ash/magnifier/magnification_controller.cc View 1 2 3 4 5 6 7 3 chunks +6 lines, -1 line 0 comments Download
M ash/magnifier/magnification_controller_unittest.cc View 1 2 3 4 5 6 7 4 chunks +289 lines, -3 lines 0 comments Download
M ash/magnifier/magnifier_constants.h View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M ui/aura/root_window.h View 1 2 3 4 5 6 7 2 chunks +6 lines, -1 line 0 comments Download
M ui/aura/root_window.cc View 1 2 3 4 5 6 7 2 chunks +18 lines, -21 lines 0 comments Download

Messages

Total messages: 22 (0 generated)
yoshiki
@oshima, I wrote the patch as we discussed at http://crrev.com/13877008. PTAL?
7 years, 8 months ago (2013-04-20 06:33:56 UTC) #1
oshima
Thanks. https://codereview.chromium.org/13947045/diff/1/ui/aura/root_window.cc File ui/aura/root_window.cc (right): https://codereview.chromium.org/13947045/diff/1/ui/aura/root_window.cc#newcode294 ui/aura/root_window.cc:294: host_->MoveCursorTo(gfx::ToFlooredPoint(point_3f.AsPointF())); can you change to use MoveCursorToHostLocation https://codereview.chromium.org/13947045/diff/1/ui/aura/root_window.cc#newcode304 ...
7 years, 8 months ago (2013-04-22 18:29:37 UTC) #2
yoshiki
@oshima: PTAL, Thanks, https://codereview.chromium.org/13947045/diff/1/ui/aura/root_window.cc File ui/aura/root_window.cc (right): https://codereview.chromium.org/13947045/diff/1/ui/aura/root_window.cc#newcode294 ui/aura/root_window.cc:294: host_->MoveCursorTo(gfx::ToFlooredPoint(point_3f.AsPointF())); On 2013/04/22 18:29:37, oshima wrote: ...
7 years, 8 months ago (2013-04-22 18:43:29 UTC) #3
oshima
I forgot to ask in the first comment. Can you add test for the issue ...
7 years, 8 months ago (2013-04-22 18:45:04 UTC) #4
yoshiki
@oshima: Added tests. PTAL. On 2013/04/22 18:45:04, oshima wrote: > I forgot to ask in ...
7 years, 8 months ago (2013-04-24 01:00:37 UTC) #5
oshima
lgtm if you addressed comments below https://codereview.chromium.org/13947045/diff/31001/ash/magnifier/magnification_controller_unittest.cc File ash/magnifier/magnification_controller_unittest.cc (right): https://codereview.chromium.org/13947045/diff/31001/ash/magnifier/magnification_controller_unittest.cc#newcode24 ash/magnifier/magnification_controller_unittest.cc:24: const float kMagnificationFactor ...
7 years, 8 months ago (2013-04-24 20:36:04 UTC) #6
yoshiki
@sky: Could you do an owner review? Thanks, https://codereview.chromium.org/13947045/diff/31001/ash/magnifier/magnification_controller_unittest.cc File ash/magnifier/magnification_controller_unittest.cc (right): https://codereview.chromium.org/13947045/diff/31001/ash/magnifier/magnification_controller_unittest.cc#newcode24 ash/magnifier/magnification_controller_unittest.cc:24: const ...
7 years, 8 months ago (2013-04-24 23:30:23 UTC) #7
sky
https://codereview.chromium.org/13947045/diff/38001/ash/magnifier/magnification_controller.h File ash/magnifier/magnification_controller.h (right): https://codereview.chromium.org/13947045/diff/38001/ash/magnifier/magnification_controller.h#newcode51 ash/magnifier/magnification_controller.h:51: virtual gfx::Point GetPointOfInterestForTesting() = 0; point of interest? What ...
7 years, 8 months ago (2013-04-25 14:41:35 UTC) #8
oshima
https://codereview.chromium.org/13947045/diff/38001/ui/aura/root_window.cc File ui/aura/root_window.cc (right): https://codereview.chromium.org/13947045/diff/38001/ui/aura/root_window.cc#newcode295 ui/aura/root_window.cc:295: SetLastMouseLocation(this, location_in_dip); Sorry if I wasn't clear. Can you ...
7 years, 8 months ago (2013-04-25 14:58:13 UTC) #9
yoshiki
https://codereview.chromium.org/13947045/diff/38001/ash/magnifier/magnification_controller.h File ash/magnifier/magnification_controller.h (right): https://codereview.chromium.org/13947045/diff/38001/ash/magnifier/magnification_controller.h#newcode51 ash/magnifier/magnification_controller.h:51: virtual gfx::Point GetPointOfInterestForTesting() = 0; On 2013/04/25 14:41:35, sky ...
7 years, 8 months ago (2013-04-25 16:05:19 UTC) #10
oshima
https://codereview.chromium.org/13947045/diff/38001/ui/aura/root_window.cc File ui/aura/root_window.cc (right): https://codereview.chromium.org/13947045/diff/38001/ui/aura/root_window.cc#newcode295 ui/aura/root_window.cc:295: SetLastMouseLocation(this, location_in_dip); On 2013/04/25 16:05:19, yoshiki wrote: > On ...
7 years, 8 months ago (2013-04-25 16:09:02 UTC) #11
yoshiki
https://codereview.chromium.org/13947045/diff/38001/ui/aura/root_window.cc File ui/aura/root_window.cc (right): https://codereview.chromium.org/13947045/diff/38001/ui/aura/root_window.cc#newcode295 ui/aura/root_window.cc:295: SetLastMouseLocation(this, location_in_dip); On 2013/04/25 16:09:02, oshima wrote: > On ...
7 years, 8 months ago (2013-04-25 16:23:27 UTC) #12
sky
https://codereview.chromium.org/13947045/diff/38001/ash/magnifier/magnification_controller.h File ash/magnifier/magnification_controller.h (right): https://codereview.chromium.org/13947045/diff/38001/ash/magnifier/magnification_controller.h#newcode51 ash/magnifier/magnification_controller.h:51: virtual gfx::Point GetPointOfInterestForTesting() = 0; On 2013/04/25 16:05:19, yoshiki ...
7 years, 8 months ago (2013-04-25 16:46:59 UTC) #13
yoshiki
On 2013/04/25 16:46:59, sky wrote: > https://codereview.chromium.org/13947045/diff/38001/ash/magnifier/magnification_controller.h > File ash/magnifier/magnification_controller.h (right): > > https://codereview.chromium.org/13947045/diff/38001/ash/magnifier/magnification_controller.h#newcode51 > ...
7 years, 8 months ago (2013-04-25 17:57:35 UTC) #14
sky
Agreed, they should all be consistent. Why do any of them need to be synchronous? ...
7 years, 8 months ago (2013-04-25 18:16:24 UTC) #15
yoshiki
On 2013/04/25 18:16:24, sky wrote: > Agreed, they should all be consistent. Why do any ...
7 years, 8 months ago (2013-04-25 18:46:39 UTC) #16
sky
Tests are easily updated. What is the compelling reason for assuming the cursor moved? It's ...
7 years, 8 months ago (2013-04-25 19:46:14 UTC) #17
oshima
On 2013/04/25 19:46:14, sky wrote: > Tests are easily updated. What is the compelling reason ...
7 years, 8 months ago (2013-04-25 20:37:56 UTC) #18
sky
Makes sense, LGTM
7 years, 8 months ago (2013-04-25 20:59:46 UTC) #19
yoshiki
@sky, @oshima, Thanks! > You added this actually :) > https://chromiumcodereview.appspot.com/10543174 Oh, I forgot it. ...
7 years, 8 months ago (2013-04-26 02:47:09 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yoshiki@chromium.org/13947045/70006
7 years, 8 months ago (2013-04-26 06:22:42 UTC) #21
commit-bot: I haz the power
7 years, 8 months ago (2013-04-26 09:02:10 UTC) #22
Message was sent while issue was closed.
Change committed as 196683

Powered by Google App Engine
This is Rietveld 408576698