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

Issue 19681003: Fix issue where window bounds were being passed with wrong coordinates. (Closed)

Created:
7 years, 5 months ago by zturner
Modified:
7 years, 4 months ago
Reviewers:
sky
CC:
chromium-reviews, yusukes+watch_chromium.org, jam, penghuang+watch_chromium.org, joi+watch-content_chromium.org, nona+watch_chromium.org, darin-cc_chromium.org, James Su
Visibility:
Public.

Description

Fix issue where window bounds were being passed with wrong coordinates. This was causing the date time chooser, and perhaps other controls as well, to display at the wrong location when popping up. The RenderWidgetHostView base class dictates that the coordinates to SetBounds() should be in screen coordinates. BUG=176221 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=214518

Patch Set 1 #

Total comments: 2

Patch Set 2 : Fix indentation issues. #

Patch Set 3 : Fix issue with SetSize() adjusting the origin. #

Total comments: 3

Patch Set 4 : Address review comments #

Patch Set 5 : Adds unit test to catch coordinate system related errors in the RWHVA. #

Total comments: 2

Patch Set 6 : Address review comments #

Patch Set 7 : Fix line endings once and for all (hopefully) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+144 lines, -57 lines) Patch
M content/browser/renderer_host/render_widget_host_impl.cc View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura.h View 1 2 3 4 5 6 1 chunk +5 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura.cc View 1 2 3 4 5 6 5 chunks +66 lines, -56 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura_unittest.cc View 1 2 3 4 5 3 chunks +73 lines, -0 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
zturner
jochen@ may be a better reviewer for this patch since he's owner on browser/renderer_host/, but ...
7 years, 5 months ago (2013-07-19 22:52:40 UTC) #1
sky
LGTM https://codereview.chromium.org/19681003/diff/1/content/browser/renderer_host/render_widget_host_view_aura.cc File content/browser/renderer_host/render_widget_host_view_aura.cc (right): https://codereview.chromium.org/19681003/diff/1/content/browser/renderer_host/render_widget_host_view_aura.cc#newcode762 content/browser/renderer_host/render_widget_host_view_aura.cc:762: aura::RootWindow* root_window = window_->GetRootWindow(); Please add a comment ...
7 years, 5 months ago (2013-07-22 14:48:28 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/zturner@chromium.org/19681003/5001
7 years, 5 months ago (2013-07-22 19:48:50 UTC) #3
commit-bot: I haz the power
Retried try job too often on linux_chromeos for step(s) content_browsertests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_chromeos&number=138083
7 years, 5 months ago (2013-07-22 21:25:45 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/zturner@chromium.org/19681003/5001
7 years, 5 months ago (2013-07-22 21:33:24 UTC) #5
commit-bot: I haz the power
Retried try job too often on linux_chromeos for step(s) content_browsertests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_chromeos&number=138137
7 years, 5 months ago (2013-07-22 22:36:18 UTC) #6
zturner
Hi sky@, would you mind reviewing one more time? In theory I have the go ...
7 years, 5 months ago (2013-07-25 01:03:00 UTC) #7
sky
Can you add test coverage of this? https://codereview.chromium.org/19681003/diff/51001/content/browser/renderer_host/render_widget_host_view_aura.cc File content/browser/renderer_host/render_widget_host_view_aura.cc (right): https://codereview.chromium.org/19681003/diff/51001/content/browser/renderer_host/render_widget_host_view_aura.cc#newcode768 content/browser/renderer_host/render_widget_host_view_aura.cc:768: aura::client::GetScreenPositionClient(root); nit: ...
7 years, 5 months ago (2013-07-25 14:55:31 UTC) #8
zturner
https://codereview.chromium.org/19681003/diff/51001/content/browser/renderer_host/render_widget_host_view_aura.cc File content/browser/renderer_host/render_widget_host_view_aura.cc (right): https://codereview.chromium.org/19681003/diff/51001/content/browser/renderer_host/render_widget_host_view_aura.cc#newcode778 content/browser/renderer_host/render_widget_host_view_aura.cc:778: void RenderWidgetHostViewAura::InternalSetBounds(const gfx::Rect& rect) { On 2013/07/25 14:55:31, sky ...
7 years, 5 months ago (2013-07-25 17:41:07 UTC) #9
zturner
Created patch sets 4 and 5 to address review comments and add test coverage.
7 years, 5 months ago (2013-07-25 22:25:37 UTC) #10
sky
LGTM https://codereview.chromium.org/19681003/diff/75001/content/browser/renderer_host/render_widget_host_view_aura_unittest.cc File content/browser/renderer_host/render_widget_host_view_aura_unittest.cc (right): https://codereview.chromium.org/19681003/diff/75001/content/browser/renderer_host/render_widget_host_view_aura_unittest.cc#newcode229 content/browser/renderer_host/render_widget_host_view_aura_unittest.cc:229: screen_position_client.reset(new TestScreenPositionClient()); Any reason to use a scoped_ptr ...
7 years, 5 months ago (2013-07-26 15:37:59 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/zturner@chromium.org/19681003/81001
7 years, 5 months ago (2013-07-26 17:47:02 UTC) #12
commit-bot: I haz the power
Retried try job too often on win7_aura for step(s) interactive_ui_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win7_aura&number=63819
7 years, 4 months ago (2013-07-27 23:49:22 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/zturner@chromium.org/19681003/81001
7 years, 4 months ago (2013-07-29 16:25:17 UTC) #14
commit-bot: I haz the power
Failed to apply patch for content/browser/renderer_host/render_widget_host_view_aura.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 4 months ago (2013-07-29 16:25:25 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/zturner@chromium.org/19681003/104001
7 years, 4 months ago (2013-07-29 19:31:38 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/zturner@chromium.org/19681003/104001
7 years, 4 months ago (2013-07-30 01:09:51 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/zturner@chromium.org/19681003/104001
7 years, 4 months ago (2013-07-30 11:32:53 UTC) #18
commit-bot: I haz the power
7 years, 4 months ago (2013-07-31 02:27:51 UTC) #19
Message was sent while issue was closed.
Change committed as 214518

Powered by Google App Engine
This is Rietveld 408576698