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

Issue 10543174: Aura: Add Window::MoveCursorTo() taking relative location to the window. (Closed)

Created:
8 years, 6 months ago by yoshiki
Modified:
8 years, 6 months ago
CC:
chromium-reviews, sadrul, yusukes+watch_chromium.org, jochen+watch-content_chromium.org, ben+watch_chromium.org, jam, penghuang+watch_chromium.org, joi+watch-content_chromium.org, darin-cc_chromium.org, James Su
Visibility:
Public.

Description

Aura: Add Window::MoveCursorTo() taking relative location to the window. Previously, although RootWindow::MoveCursorTo() takes a ponit coordinate relative to Root, but OnMouseEvent/LockMouse in RWHVA are using coordinate relative to parent window (which may not be root). UnlockMouse is using global X/Y from webkit. This CL added Window::MoveCursorTo() taking relative location to the window, and made RWHVA use it. BUG=none TEST=manual Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=142888

Patch Set 1 #

Patch Set 2 : Add OVERRIDE suffix on root_window.h. #

Patch Set 3 : Added test. #

Total comments: 2

Patch Set 4 : Added tests with transform. #

Total comments: 6

Patch Set 5 : review fix #

Total comments: 2

Patch Set 6 : review fix #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+130 lines, -7 lines) Patch
M content/browser/renderer_host/render_widget_host_view_aura.cc View 4 chunks +5 lines, -5 lines 0 comments Download
M ui/aura/root_window.h View 1 2 3 4 5 2 chunks +4 lines, -1 line 1 comment Download
M ui/aura/root_window.cc View 1 2 3 4 5 2 chunks +11 lines, -1 line 1 comment Download
M ui/aura/window.h View 1 chunk +3 lines, -0 lines 0 comments Download
M ui/aura/window.cc View 1 chunk +8 lines, -0 lines 0 comments Download
M ui/aura/window_unittest.cc View 1 2 3 4 5 2 chunks +99 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
yoshiki
8 years, 6 months ago (2012-06-15 08:41:46 UTC) #1
oshima
thanks. can you add unit tests for MoveCursorTo?
8 years, 6 months ago (2012-06-15 08:53:23 UTC) #2
yoshiki
oshima: Added a test. PTAL.
8 years, 6 months ago (2012-06-15 13:49:52 UTC) #3
oshima
https://chromiumcodereview.appspot.com/10543174/diff/10001/ui/aura/window_unittest.cc File ui/aura/window_unittest.cc (right): https://chromiumcodereview.appspot.com/10543174/diff/10001/ui/aura/window_unittest.cc#newcode325 ui/aura/window_unittest.cc:325: EXPECT_EQ(gfx::Point(35, 35), root->last_mouse_location()); can you also add cases that ...
8 years, 6 months ago (2012-06-15 14:06:17 UTC) #4
yoshiki
Added tests of transform. And changed RootWindow::MoveCursorTo() to treat root_window's transform as http://codereview.chromium.org/10388141/. https://chromiumcodereview.appspot.com/10543174/diff/10001/ui/aura/window_unittest.cc File ...
8 years, 6 months ago (2012-06-15 15:10:39 UTC) #5
oshima
https://chromiumcodereview.appspot.com/10543174/diff/18001/ui/aura/window_unittest.cc File ui/aura/window_unittest.cc (right): https://chromiumcodereview.appspot.com/10543174/diff/18001/ui/aura/window_unittest.cc#newcode318 ui/aura/window_unittest.cc:318: EXPECT_EQ(gfx::Point(10, 10), root->last_mouse_location()); could you please use the style ...
8 years, 6 months ago (2012-06-15 16:57:01 UTC) #6
yoshiki
oshima: Thanks, PTAL http://codereview.chromium.org/10543174/diff/18001/ui/aura/window_unittest.cc File ui/aura/window_unittest.cc (right): http://codereview.chromium.org/10543174/diff/18001/ui/aura/window_unittest.cc#newcode318 ui/aura/window_unittest.cc:318: EXPECT_EQ(gfx::Point(10, 10), root->last_mouse_location()); On 2012/06/15 16:57:01, ...
8 years, 6 months ago (2012-06-18 06:55:36 UTC) #7
oshima
lgtm On Sun, Jun 17, 2012 at 11:55 PM, <yoshiki@chromium.org> wrote: > oshima: Thanks, PTAL ...
8 years, 6 months ago (2012-06-18 15:41:13 UTC) #8
yoshiki
ben: Could you take a look and approve of check-in?
8 years, 6 months ago (2012-06-18 15:49:06 UTC) #9
Ben Goodger (Google)
http://codereview.chromium.org/10543174/diff/25001/ui/aura/root_window.h File ui/aura/root_window.h (right): http://codereview.chromium.org/10543174/diff/25001/ui/aura/root_window.h#newcode104 ui/aura/root_window.h:104: RootWindowHost* host() { return host_.get(); } can we expose ...
8 years, 6 months ago (2012-06-18 16:50:21 UTC) #10
yoshiki
ben: PTAL http://codereview.chromium.org/10543174/diff/25001/ui/aura/root_window.h File ui/aura/root_window.h (right): http://codereview.chromium.org/10543174/diff/25001/ui/aura/root_window.h#newcode104 ui/aura/root_window.h:104: RootWindowHost* host() { return host_.get(); } On ...
8 years, 6 months ago (2012-06-18 18:49:39 UTC) #11
Ben Goodger (Google)
8 years, 6 months ago (2012-06-18 20:30:52 UTC) #12
LGTM

http://codereview.chromium.org/10543174/diff/17008/ui/aura/root_window.cc
File ui/aura/root_window.cc (right):

http://codereview.chromium.org/10543174/diff/17008/ui/aura/root_window.cc#new...
ui/aura/root_window.cc:657:
////////////////////////////////////////////////////////////////////////////////
delete these two lines

http://codereview.chromium.org/10543174/diff/17008/ui/aura/root_window.h
File ui/aura/root_window.h (right):

http://codereview.chromium.org/10543174/diff/17008/ui/aura/root_window.h#newc...
ui/aura/root_window.h:267: // Exposes RootWindowHost::QueryMouseLocation() for
test purpose.
purposes

Powered by Google App Engine
This is Rietveld 408576698