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

Issue 686513004: Creating default implementation for aura::client::ScreenPositionClient (Closed)

Created:
6 years, 1 month ago by mfomitchev
Modified:
6 years, 1 month ago
Reviewers:
sadrul, oshima
CC:
chromium-reviews, tdanderson+views_chromium.org, yusukes+watch_chromium.org, yukishiino+watch_chromium.org, tfarina, jam, penghuang+watch_chromium.org, sievers+watch_chromium.org, jbauman+watch_chromium.org, nona+watch_chromium.org, darin-cc_chromium.org, kalyank, piman+watch_chromium.org, danakj+watch_chromium.org, James Su
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Creating default implementation for aura::client::ScreenPositionClient Making all implementations except for ash's use the new default base class. I left the ash's implementation as is, since I am not sure if the display origin is always the same as the root window origin. My suspicion is that it's not.. BUG=NONE Committed: https://crrev.com/235ca91afbcc146c1d188b5de0f1c6070d745a8f Cr-Commit-Position: refs/heads/master@{#302502}

Patch Set 1 #

Patch Set 2 : Removing unwanted change. #

Total comments: 6

Patch Set 3 : Addressing feedback. #

Patch Set 4 : Removing PositionWindowInScreenCoordinates from .h #

Patch Set 5 : Fixing a typo #

Patch Set 6 : Turning GetOrigin() into an object method. #

Total comments: 3

Patch Set 7 : Implementing review feedback #

Total comments: 4

Patch Set 8 : Addressing feedback #

Patch Set 9 : Missed a spot when renaming. #

Total comments: 1

Patch Set 10 : 1 -> 1.0f #

Unified diffs Side-by-side diffs Delta from patch set Stats (+94 lines, -138 lines) Patch
M athena/screen/screen_manager_impl.cc View 1 2 3 3 chunks +4 lines, -21 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura_unittest.cc View 1 2 3 chunks +2 lines, -29 lines 0 comments Download
M ui/views/corewm/tooltip_controller_unittest.cc View 3 chunks +2 lines, -25 lines 0 comments Download
M ui/views/widget/desktop_aura/desktop_screen_position_client.h View 1 2 3 1 chunk +3 lines, -9 lines 0 comments Download
M ui/views/widget/desktop_aura/desktop_screen_position_client.cc View 1 2 3 4 5 6 7 8 4 chunks +5 lines, -41 lines 0 comments Download
M ui/wm/BUILD.gn View 1 chunk +2 lines, -0 lines 0 comments Download
A + ui/wm/core/default_screen_position_client.h View 1 2 3 4 5 6 7 2 chunks +15 lines, -13 lines 0 comments Download
A ui/wm/core/default_screen_position_client.cc View 1 2 3 4 5 6 7 8 9 1 chunk +59 lines, -0 lines 0 comments Download
M ui/wm/wm.gyp View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (3 generated)
mfomitchev
6 years, 1 month ago (2014-10-28 20:58:30 UTC) #2
mfomitchev
Sadrul, can you please take a look?
6 years, 1 month ago (2014-10-30 15:27:43 UTC) #3
sadrul
https://codereview.chromium.org/686513004/diff/20001/ui/wm/core/default_screen_position_client.cc File ui/wm/core/default_screen_position_client.cc (right): https://codereview.chromium.org/686513004/diff/20001/ui/wm/core/default_screen_position_client.cc#newcode34 ui/wm/core/default_screen_position_client.cc:34: return window->type() == ui::wm::WINDOW_TYPE_POPUP; Why special case POPUP here? ...
6 years, 1 month ago (2014-10-30 16:09:11 UTC) #4
mfomitchev
https://codereview.chromium.org/686513004/diff/20001/ui/wm/core/default_screen_position_client.cc File ui/wm/core/default_screen_position_client.cc (right): https://codereview.chromium.org/686513004/diff/20001/ui/wm/core/default_screen_position_client.cc#newcode34 ui/wm/core/default_screen_position_client.cc:34: return window->type() == ui::wm::WINDOW_TYPE_POPUP; On 2014/10/30 16:09:11, sadrul wrote: ...
6 years, 1 month ago (2014-10-30 20:12:54 UTC) #5
sadrul
https://codereview.chromium.org/686513004/diff/20001/ui/wm/core/default_screen_position_client.cc File ui/wm/core/default_screen_position_client.cc (right): https://codereview.chromium.org/686513004/diff/20001/ui/wm/core/default_screen_position_client.cc#newcode34 ui/wm/core/default_screen_position_client.cc:34: return window->type() == ui::wm::WINDOW_TYPE_POPUP; On 2014/10/30 20:12:53, mfomitchev wrote: ...
6 years, 1 month ago (2014-10-30 20:20:07 UTC) #6
mfomitchev
https://codereview.chromium.org/686513004/diff/20001/ui/wm/core/default_screen_position_client.cc File ui/wm/core/default_screen_position_client.cc (right): https://codereview.chromium.org/686513004/diff/20001/ui/wm/core/default_screen_position_client.cc#newcode34 ui/wm/core/default_screen_position_client.cc:34: return window->type() == ui::wm::WINDOW_TYPE_POPUP; On 2014/10/30 20:20:07, sadrul wrote: ...
6 years, 1 month ago (2014-10-30 22:02:12 UTC) #7
mfomitchev
Sadrul, can you PTAL? I made GetOrigin() an object method since it's used by both ...
6 years, 1 month ago (2014-10-31 19:30:55 UTC) #8
sadrul
LGTM https://codereview.chromium.org/686513004/diff/100001/ui/wm/core/default_screen_position_client.h File ui/wm/core/default_screen_position_client.h (right): https://codereview.chromium.org/686513004/diff/100001/ui/wm/core/default_screen_position_client.h#newcode33 ui/wm/core/default_screen_position_client.h:33: virtual gfx::Point GetOrigin(const aura::Window* root_window); This doesn't need ...
6 years, 1 month ago (2014-11-03 16:57:22 UTC) #9
mfomitchev
https://codereview.chromium.org/686513004/diff/100001/ui/wm/core/default_screen_position_client.h File ui/wm/core/default_screen_position_client.h (right): https://codereview.chromium.org/686513004/diff/100001/ui/wm/core/default_screen_position_client.h#newcode33 ui/wm/core/default_screen_position_client.h:33: virtual gfx::Point GetOrigin(const aura::Window* root_window); Nope, it doesn't. I ...
6 years, 1 month ago (2014-11-03 18:25:08 UTC) #10
mfomitchev
oshima@chromium.org: Please review changes in athena/screen/screen_manager_impl.cc
6 years, 1 month ago (2014-11-03 18:25:53 UTC) #12
sadrul
https://codereview.chromium.org/686513004/diff/100001/ui/wm/core/default_screen_position_client.h File ui/wm/core/default_screen_position_client.h (right): https://codereview.chromium.org/686513004/diff/100001/ui/wm/core/default_screen_position_client.h#newcode33 ui/wm/core/default_screen_position_client.h:33: virtual gfx::Point GetOrigin(const aura::Window* root_window); On 2014/11/03 18:25:07, mfomitchev ...
6 years, 1 month ago (2014-11-03 18:48:44 UTC) #13
oshima
Is there a bug for this? or can you describe the issue this CL fixes? ...
6 years, 1 month ago (2014-11-03 18:54:11 UTC) #14
mfomitchev
There's no bug. The issue is that there's no default implementation of ScreenPositionClient, so it's ...
6 years, 1 month ago (2014-11-03 19:52:23 UTC) #15
oshima
thank you for clarification. lgtm. https://codereview.chromium.org/686513004/diff/160001/ui/wm/core/default_screen_position_client.cc File ui/wm/core/default_screen_position_client.cc (right): https://codereview.chromium.org/686513004/diff/160001/ui/wm/core/default_screen_position_client.cc#newcode26 ui/wm/core/default_screen_position_client.cc:26: return gfx::ToFlooredPoint(gfx::ScalePoint(origin_in_pixels, 1 / ...
6 years, 1 month ago (2014-11-03 21:40:25 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/686513004/180001
6 years, 1 month ago (2014-11-03 21:46:23 UTC) #18
commit-bot: I haz the power
Committed patchset #10 (id:180001)
6 years, 1 month ago (2014-11-03 22:36:39 UTC) #19
commit-bot: I haz the power
6 years, 1 month ago (2014-11-03 22:39:16 UTC) #20
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/235ca91afbcc146c1d188b5de0f1c6070d745a8f
Cr-Commit-Position: refs/heads/master@{#302502}

Powered by Google App Engine
This is Rietveld 408576698