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

Issue 397293005: Fix positioning of children of NativeViewHostAura (Closed)

Created:
6 years, 5 months ago by Evan Stade
Modified:
6 years, 5 months ago
Reviewers:
calamity, sky
CC:
chromium-reviews, benquan, tfarina, Dane Wallinga, dyu1, estade+watch_chromium.org, Ilya Sherman, rouslan+autofillwatch_chromium.org
Project:
chromium
Visibility:
Public.

Description

Fix positioning of children of NativeViewHostAura regressed in r279316 BUG=391316 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=285168

Patch Set 1 #

Patch Set 2 : . #

Total comments: 2

Patch Set 3 : fix code, add test #

Total comments: 5

Patch Set 4 : another test #

Total comments: 3

Patch Set 5 : sky comes up with a one line fix #

Total comments: 4

Patch Set 6 : delete test #

Total comments: 4

Patch Set 7 : add comment, revert errant change #

Patch Set 8 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -7 lines) Patch
M chrome/browser/ui/views/autofill/autofill_popup_base_view_browsertest.cc View 1 2 3 chunks +21 lines, -5 lines 0 comments Download
M ui/views/controls/native/native_view_host_aura.cc View 1 2 3 4 5 6 7 1 chunk +3 lines, -0 lines 0 comments Download
M ui/views/controls/native/native_view_host_aura_unittest.cc View 1 2 3 4 5 1 chunk +1 line, -2 lines 0 comments Download

Messages

Total messages: 25 (0 generated)
Evan Stade
6 years, 5 months ago (2014-07-17 21:13:41 UTC) #1
sky
How about test coverage? https://codereview.chromium.org/397293005/diff/20001/ui/views/controls/native/native_view_host_aura.cc File ui/views/controls/native/native_view_host_aura.cc (right): https://codereview.chromium.org/397293005/diff/20001/ui/views/controls/native/native_view_host_aura.cc#newcode23 ui/views/controls/native/native_view_host_aura.cc:23: class OffsettingLayoutManager : public aura::LayoutManager ...
6 years, 5 months ago (2014-07-17 21:46:03 UTC) #2
Evan Stade
https://codereview.chromium.org/397293005/diff/20001/ui/views/controls/native/native_view_host_aura.cc File ui/views/controls/native/native_view_host_aura.cc (right): https://codereview.chromium.org/397293005/diff/20001/ui/views/controls/native/native_view_host_aura.cc#newcode23 ui/views/controls/native/native_view_host_aura.cc:23: class OffsettingLayoutManager : public aura::LayoutManager { On 2014/07/17 21:46:03, ...
6 years, 5 months ago (2014-07-17 22:50:35 UTC) #3
Evan Stade
I noticed the code didn't work quite right; I had to adjust it somewhat. Added ...
6 years, 5 months ago (2014-07-17 23:37:02 UTC) #4
sky
https://codereview.chromium.org/397293005/diff/40001/chrome/browser/ui/views/autofill/autofill_popup_base_view_browsertest.cc File chrome/browser/ui/views/autofill/autofill_popup_base_view_browsertest.cc (right): https://codereview.chromium.org/397293005/diff/40001/chrome/browser/ui/views/autofill/autofill_popup_base_view_browsertest.cc#newcode135 chrome/browser/ui/views/autofill/autofill_popup_base_view_browsertest.cc:135: IN_PROC_BROWSER_TEST_F(AutofillPopupBaseViewTest, CorrectBoundsTest) { Could you create a more localized ...
6 years, 5 months ago (2014-07-18 15:33:49 UTC) #5
Evan Stade
https://codereview.chromium.org/397293005/diff/40001/chrome/browser/ui/views/autofill/autofill_popup_base_view_browsertest.cc File chrome/browser/ui/views/autofill/autofill_popup_base_view_browsertest.cc (right): https://codereview.chromium.org/397293005/diff/40001/chrome/browser/ui/views/autofill/autofill_popup_base_view_browsertest.cc#newcode135 chrome/browser/ui/views/autofill/autofill_popup_base_view_browsertest.cc:135: IN_PROC_BROWSER_TEST_F(AutofillPopupBaseViewTest, CorrectBoundsTest) { On 2014/07/18 15:33:49, sky wrote: > ...
6 years, 5 months ago (2014-07-18 18:22:53 UTC) #6
sky
Incase my IM doesn't go through: "I'm still missing something. If the parent of the ...
6 years, 5 months ago (2014-07-18 19:27:37 UTC) #7
Evan Stade
clipping_window_.SetType() does the trick it seems.
6 years, 5 months ago (2014-07-18 21:25:06 UTC) #8
Evan Stade
ping
6 years, 5 months ago (2014-07-22 00:51:29 UTC) #9
sky
I was waiting for you to verify where the particular problem was. Was it RootWindowController? ...
6 years, 5 months ago (2014-07-22 04:13:42 UTC) #10
Evan Stade
On 2014/07/22 04:13:42, sky wrote: > I was waiting for you to verify where the ...
6 years, 5 months ago (2014-07-22 04:55:47 UTC) #11
sky
LGTM - thanks for verifying where the early out was happening. https://codereview.chromium.org/397293005/diff/50001/ui/views/controls/native/native_view_host_aura.cc File ui/views/controls/native/native_view_host_aura.cc (right): ...
6 years, 5 months ago (2014-07-22 13:12:27 UTC) #12
Evan Stade
https://codereview.chromium.org/397293005/diff/50001/ui/views/controls/native/native_view_host_aura.cc File ui/views/controls/native/native_view_host_aura.cc (right): https://codereview.chromium.org/397293005/diff/50001/ui/views/controls/native/native_view_host_aura.cc#newcode37 ui/views/controls/native/native_view_host_aura.cc:37: if (child->type() == ui::wm::WINDOW_TYPE_POPUP) On 2014/07/22 13:12:27, sky wrote: ...
6 years, 5 months ago (2014-07-22 21:45:30 UTC) #13
sky
https://codereview.chromium.org/397293005/diff/50001/ui/views/controls/native/native_view_host_aura.cc File ui/views/controls/native/native_view_host_aura.cc (right): https://codereview.chromium.org/397293005/diff/50001/ui/views/controls/native/native_view_host_aura.cc#newcode37 ui/views/controls/native/native_view_host_aura.cc:37: if (child->type() == ui::wm::WINDOW_TYPE_POPUP) On 2014/07/22 21:45:30, Evan Stade ...
6 years, 5 months ago (2014-07-22 21:52:33 UTC) #14
Evan Stade
https://codereview.chromium.org/397293005/diff/70001/ui/views/controls/native/native_view_host_aura_unittest.cc File ui/views/controls/native/native_view_host_aura_unittest.cc (right): https://codereview.chromium.org/397293005/diff/70001/ui/views/controls/native/native_view_host_aura_unittest.cc#newcode337 ui/views/controls/native/native_view_host_aura_unittest.cc:337: params.parent = clipping_window(); On 2014/07/22 21:52:33, sky wrote: > ...
6 years, 5 months ago (2014-07-22 22:33:22 UTC) #15
sky
Ok, no test in the views side then:( https://codereview.chromium.org/397293005/diff/90001/ui/views/controls/native/native_view_host_aura.cc File ui/views/controls/native/native_view_host_aura.cc (right): https://codereview.chromium.org/397293005/diff/90001/ui/views/controls/native/native_view_host_aura.cc#newcode21 ui/views/controls/native/native_view_host_aura.cc:21: clipping_window_.SetType(ui::wm::WINDOW_TYPE_CONTROL); ...
6 years, 5 months ago (2014-07-22 22:36:59 UTC) #16
Evan Stade
https://codereview.chromium.org/397293005/diff/90001/ui/views/controls/native/native_view_host_aura.cc File ui/views/controls/native/native_view_host_aura.cc (right): https://codereview.chromium.org/397293005/diff/90001/ui/views/controls/native/native_view_host_aura.cc#newcode21 ui/views/controls/native/native_view_host_aura.cc:21: clipping_window_.SetType(ui::wm::WINDOW_TYPE_CONTROL); On 2014/07/22 22:36:59, sky wrote: > As this ...
6 years, 5 months ago (2014-07-22 22:41:20 UTC) #17
Evan Stade
The CQ bit was checked by estade@chromium.org
6 years, 5 months ago (2014-07-23 00:06:02 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/estade@chromium.org/397293005/110001
6 years, 5 months ago (2014-07-23 00:07:26 UTC) #19
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_aosp on tryserver.chromium ...
6 years, 5 months ago (2014-07-23 01:44:15 UTC) #20
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 5 months ago (2014-07-23 01:45:51 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: mac_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/mac_gpu/builds/31864)
6 years, 5 months ago (2014-07-23 01:45:53 UTC) #22
Evan Stade
The CQ bit was checked by estade@chromium.org
6 years, 5 months ago (2014-07-23 23:22:54 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/estade@chromium.org/397293005/130001
6 years, 5 months ago (2014-07-23 23:26:05 UTC) #24
commit-bot: I haz the power
6 years, 5 months ago (2014-07-24 10:28:07 UTC) #25
Message was sent while issue was closed.
Change committed as 285168

Powered by Google App Engine
This is Rietveld 408576698