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

Issue 15114002: Reorder the NativeViews attached to a view via kViewHostKey according to the position of the view (Closed)

Created:
7 years, 7 months ago by pkotwicz
Modified:
7 years, 6 months ago
Reviewers:
sky
CC:
chromium-reviews, tfarina, sadrul, dcheng, ben+watch_chromium.org
Visibility:
Public.

Description

Reorder the NativeViews attached to a view via the kViewHostKey according to the position of the view in the view hierarchy. BUG=237650 Test=NativeWidgetAuraTest.* Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=202987

Patch Set 1 #

Total comments: 3

Patch Set 2 : Moved kViewHost to views #

Patch Set 3 : #

Patch Set 4 : #

Total comments: 3

Patch Set 5 : #

Total comments: 10

Patch Set 6 : #

Total comments: 3

Patch Set 7 : Changes as requested #

Total comments: 12

Patch Set 8 : #

Patch Set 9 : #

Total comments: 4

Patch Set 10 : Renamed NativeWidgetWindowReordererAura to WindowReorderer #

Patch Set 11 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+757 lines, -24 lines) Patch
M ui/aura/window.h View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download
M ui/aura/window.cc View 1 2 3 4 5 6 9 1 chunk +6 lines, -0 lines 0 comments Download
M ui/views/controls/native/native_view_host_aura.cc View 1 5 6 2 chunks +7 lines, -1 line 0 comments Download
M ui/views/controls/native/native_view_host_aura_unittest.cc View 1 2 3 4 5 6 3 chunks +22 lines, -0 lines 0 comments Download
M ui/views/view.h View 1 2 3 4 5 6 7 1 chunk +5 lines, -1 line 0 comments Download
M ui/views/view.cc View 1 2 3 4 5 6 7 8 9 3 chunks +18 lines, -10 lines 0 comments Download
A ui/views/view_constants_aura.h View 1 2 3 4 5 6 7 1 chunk +22 lines, -0 lines 0 comments Download
A ui/views/view_constants_aura.cc View 1 2 1 chunk +16 lines, -0 lines 0 comments Download
M ui/views/view_unittest.cc View 1 2 3 4 5 6 2 chunks +62 lines, -1 line 0 comments Download
M ui/views/views.gyp View 1 2 3 4 5 6 7 8 9 5 chunks +8 lines, -0 lines 0 comments Download
M ui/views/widget/desktop_aura/desktop_native_widget_aura.h View 1 2 3 4 5 6 7 8 9 10 3 chunks +6 lines, -0 lines 0 comments Download
M ui/views/widget/desktop_aura/desktop_native_widget_aura.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +8 lines, -0 lines 0 comments Download
M ui/views/widget/native_widget_aura.h View 1 2 3 4 5 6 7 8 9 3 chunks +6 lines, -0 lines 0 comments Download
M ui/views/widget/native_widget_aura.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +8 lines, -0 lines 0 comments Download
M ui/views/widget/native_widget_aura_unittest.cc View 1 2 3 4 5 6 3 chunks +11 lines, -11 lines 0 comments Download
M ui/views/widget/native_widget_private.h View 1 2 3 4 5 6 7 1 chunk +9 lines, -0 lines 0 comments Download
M ui/views/widget/native_widget_win.h View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M ui/views/widget/native_widget_win.cc View 1 2 3 4 5 6 7 1 chunk +3 lines, -0 lines 0 comments Download
M ui/views/widget/widget.h View 1 2 3 4 5 6 7 8 9 1 chunk +9 lines, -0 lines 0 comments Download
M ui/views/widget/widget.cc View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -0 lines 0 comments Download
A ui/views/widget/window_reorderer.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +59 lines, -0 lines 0 comments Download
A ui/views/widget/window_reorderer.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +201 lines, -0 lines 0 comments Download
A ui/views/widget/window_reorderer_unittest.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +263 lines, -0 lines 0 comments Download

Messages

Total messages: 22 (0 generated)
pkotwicz
Scott, can you please take a look? In this CL I added a really simple ...
7 years, 7 months ago (2013-05-13 02:24:01 UTC) #1
sky
https://codereview.chromium.org/15114002/diff/1/chrome/browser/ui/views/dropdown_bar_host_aura.cc File chrome/browser/ui/views/dropdown_bar_host_aura.cc (right): https://codereview.chromium.org/15114002/diff/1/chrome/browser/ui/views/dropdown_bar_host_aura.cc#newcode34 chrome/browser/ui/views/dropdown_bar_host_aura.cc:34: if (!host_view_.get()) { Could we instead always create a ...
7 years, 7 months ago (2013-05-13 15:53:14 UTC) #2
pkotwicz
Scott, can you please take another look? https://codereview.chromium.org/15114002/diff/1/chrome/browser/ui/views/dropdown_bar_host_aura.cc File chrome/browser/ui/views/dropdown_bar_host_aura.cc (right): https://codereview.chromium.org/15114002/diff/1/chrome/browser/ui/views/dropdown_bar_host_aura.cc#newcode34 chrome/browser/ui/views/dropdown_bar_host_aura.cc:34: if (!host_view_.get()) ...
7 years, 7 months ago (2013-05-13 20:20:44 UTC) #3
sky
https://codereview.chromium.org/15114002/diff/18002/ui/views/view_constants_aura.h File ui/views/view_constants_aura.h (right): https://codereview.chromium.org/15114002/diff/18002/ui/views/view_constants_aura.h#newcode14 ui/views/view_constants_aura.h:14: // A property key to indicate the window's host ...
7 years, 7 months ago (2013-05-13 22:43:05 UTC) #4
sky
I'm ok with the rest of it.
7 years, 7 months ago (2013-05-13 22:43:11 UTC) #5
sky
https://codereview.chromium.org/15114002/diff/18002/chrome/browser/ui/views/dropdown_bar_host_aura.cc File chrome/browser/ui/views/dropdown_bar_host_aura.cc (right): https://codereview.chromium.org/15114002/diff/18002/chrome/browser/ui/views/dropdown_bar_host_aura.cc#newcode40 chrome/browser/ui/views/dropdown_bar_host_aura.cc:40: browser_view_->AddChildView(host_view_.get()); One reason I like binding to an existing ...
7 years, 7 months ago (2013-05-13 22:54:17 UTC) #6
pkotwicz
Scott, can you please take a look? This is the views portion of the z-order ...
7 years, 7 months ago (2013-05-21 21:27:58 UTC) #7
sky
https://codereview.chromium.org/15114002/diff/30001/ui/views/widget/native_widget_aura.cc File ui/views/widget/native_widget_aura.cc (right): https://codereview.chromium.org/15114002/diff/30001/ui/views/widget/native_widget_aura.cc#newcode1069 ui/views/widget/native_widget_aura.cc:1069: void NativeWidgetPrivate::ReorderLayers(gfx::NativeView parent, I think all this code should ...
7 years, 7 months ago (2013-05-21 23:43:55 UTC) #8
pkotwicz
Scott, can you please take another look? Moved code for reordering layers and windows to ...
7 years, 7 months ago (2013-05-23 02:28:07 UTC) #9
sky
https://codereview.chromium.org/15114002/diff/30001/ui/views/widget/native_widget_aura.cc File ui/views/widget/native_widget_aura.cc (right): https://codereview.chromium.org/15114002/diff/30001/ui/views/widget/native_widget_aura.cc#newcode1093 ui/views/widget/native_widget_aura.cc:1093: On 2013/05/23 02:28:07, pkotwicz wrote: > We cannot early ...
7 years, 7 months ago (2013-05-23 15:36:48 UTC) #10
pkotwicz
https://codereview.chromium.org/15114002/diff/30001/ui/views/widget/native_widget_aura.cc File ui/views/widget/native_widget_aura.cc (right): https://codereview.chromium.org/15114002/diff/30001/ui/views/widget/native_widget_aura.cc#newcode1093 ui/views/widget/native_widget_aura.cc:1093: The change you are suggesting would result in changing ...
7 years, 7 months ago (2013-05-23 17:21:44 UTC) #11
sky
https://codereview.chromium.org/15114002/diff/30001/ui/views/widget/native_widget_aura.cc File ui/views/widget/native_widget_aura.cc (right): https://codereview.chromium.org/15114002/diff/30001/ui/views/widget/native_widget_aura.cc#newcode1093 ui/views/widget/native_widget_aura.cc:1093: On 2013/05/23 17:21:45, pkotwicz wrote: > The change you ...
7 years, 7 months ago (2013-05-23 17:33:35 UTC) #12
pkotwicz
sky@ can you take another look? I believe I implemented all of your suggestions. I ...
7 years, 7 months ago (2013-05-24 02:46:54 UTC) #13
pkotwicz
I do not pass in a view to Widget::ReorderLayersForAttachedNativeViews() or use Widget::ShouldReorderViewsWithLayers() because it does ...
7 years, 7 months ago (2013-05-24 02:49:33 UTC) #14
sky
https://codereview.chromium.org/15114002/diff/47001/ui/views/view.cc File ui/views/view.cc (right): https://codereview.chromium.org/15114002/diff/47001/ui/views/view.cc#newcode1476 ui/views/view.cc:1476: if (layer() && layer() != parent_layer) { It's subtle ...
7 years, 7 months ago (2013-05-24 15:57:26 UTC) #15
pkotwicz
Scott, can you please take another look? https://codereview.chromium.org/15114002/diff/47001/ui/views/view.cc File ui/views/view.cc (right): https://codereview.chromium.org/15114002/diff/47001/ui/views/view.cc#newcode1476 ui/views/view.cc:1476: if (layer() ...
7 years, 7 months ago (2013-05-26 04:12:15 UTC) #16
sky
https://codereview.chromium.org/15114002/diff/58024/ui/aura/window.cc File ui/aura/window.cc (right): https://codereview.chromium.org/15114002/diff/58024/ui/aura/window.cc#newcode166 ui/aura/window.cc:166: // Install new layer as a sibling of the ...
7 years, 6 months ago (2013-05-28 14:03:50 UTC) #17
pkotwicz
Scott, can you please take another look? https://codereview.chromium.org/15114002/diff/58024/ui/aura/window.cc File ui/aura/window.cc (right): https://codereview.chromium.org/15114002/diff/58024/ui/aura/window.cc#newcode166 ui/aura/window.cc:166: // Install ...
7 years, 6 months ago (2013-05-28 15:14:59 UTC) #18
sky
LGTM
7 years, 6 months ago (2013-05-28 15:41:49 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pkotwicz@chromium.org/15114002/84001
7 years, 6 months ago (2013-05-29 16:18:03 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pkotwicz@chromium.org/15114002/90002
7 years, 6 months ago (2013-05-29 16:25:57 UTC) #21
commit-bot: I haz the power
7 years, 6 months ago (2013-05-29 22:02:18 UTC) #22
Message was sent while issue was closed.
Change committed as 202987

Powered by Google App Engine
This is Rietveld 408576698