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

Issue 1796773003: Implement NativeWidgetMac::ReorderNativeViews (Closed)

Created:
4 years, 9 months ago by kirr
Modified:
4 years, 9 months ago
Reviewers:
tapted, sky
CC:
chromium-reviews, tfarina
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Implement NativeWidgetMac::ReorderNativeViews. NativeWidgetMac doesn't currently take into account native view order when attaching NSViews in NativeViewHost and in view::View::ReorderChildView. It is important when showing DevTools. BUG=594567 Committed: https://crrev.com/852a2ec06f9aac8f1b048d241a5bb8f9c5559d13 Cr-Commit-Position: refs/heads/master@{#382259}

Patch Set 1 #

Patch Set 2 : Implement NativeWidgetMac::ReorderNativeViews #

Total comments: 13

Patch Set 3 : Using NativeViewHost*->NSView* map. #

Total comments: 18

Patch Set 4 : Added tests. Review fixes. Fixed sorting. #

Patch Set 5 : Added DISALLOW_COPY_AND_ASSIGN #

Total comments: 16

Patch Set 6 : Nits and xcode 7 compilation. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+236 lines, -19 lines) Patch
M ui/views/cocoa/bridged_native_widget.h View 1 2 3 4 5 3 chunks +11 lines, -0 lines 0 comments Download
M ui/views/cocoa/bridged_native_widget.mm View 1 2 3 4 5 3 chunks +71 lines, -0 lines 0 comments Download
M ui/views/controls/native/native_view_host_mac.mm View 1 2 3 4 5 4 chunks +19 lines, -18 lines 0 comments Download
M ui/views/widget/native_widget_mac.mm View 1 2 1 chunk +3 lines, -1 line 0 comments Download
M ui/views/widget/native_widget_mac_unittest.mm View 1 2 3 4 5 3 chunks +132 lines, -0 lines 0 comments Download

Messages

Total messages: 25 (8 generated)
kirr
Please see my CL. Seems like it's better to unify test with aura platform. But ...
4 years, 9 months ago (2016-03-14 16:03:26 UTC) #2
tapted
On 2016/03/14 16:03:26, kirr wrote: > Please see my CL. > Seems like it's better ...
4 years, 9 months ago (2016-03-15 04:28:24 UTC) #3
kirr
I've added ReorderNativeViews implementation. But it is not contains the View*->NSView* map and class like ...
4 years, 9 months ago (2016-03-15 16:42:29 UTC) #4
tapted
On 2016/03/15 16:42:29, kirr wrote: > I've added ReorderNativeViews implementation. > But it is not ...
4 years, 9 months ago (2016-03-15 22:54:54 UTC) #5
kirr
https://codereview.chromium.org/1796773003/diff/20001/ui/views/widget/widget_mac_utils.mm File ui/views/widget/widget_mac_utils.mm (right): https://codereview.chromium.org/1796773003/diff/20001/ui/views/widget/widget_mac_utils.mm#newcode70 ui/views/widget/widget_mac_utils.mm:70: auto left_it = std::find_if(hosts->begin(), hosts->end(), EqualToNSView(lhs)); I used vector ...
4 years, 9 months ago (2016-03-16 09:16:34 UTC) #6
kirr
https://codereview.chromium.org/1796773003/diff/20001/ui/views/widget/widget_mac_utils.mm File ui/views/widget/widget_mac_utils.mm (right): https://codereview.chromium.org/1796773003/diff/20001/ui/views/widget/widget_mac_utils.mm#newcode70 ui/views/widget/widget_mac_utils.mm:70: auto left_it = std::find_if(hosts->begin(), hosts->end(), EqualToNSView(lhs)); On 2016/03/15 22:54:53, ...
4 years, 9 months ago (2016-03-16 21:43:45 UTC) #7
tapted
Thanks! This looks pretty neat https://codereview.chromium.org/1796773003/diff/40001/ui/views/cocoa/bridged_native_widget.h File ui/views/cocoa/bridged_native_widget.h (right): https://codereview.chromium.org/1796773003/diff/40001/ui/views/cocoa/bridged_native_widget.h#newcode1 ui/views/cocoa/bridged_native_widget.h:1: // Copyright 2014 The ...
4 years, 9 months ago (2016-03-17 08:18:59 UTC) #8
kirr
On 2016/03/17 08:18:59, tapted wrote: > CL description: perhaps something like `Implement > NativeWidgetMac::ReorderNativeViews` Done ...
4 years, 9 months ago (2016-03-17 18:34:17 UTC) #10
tapted
looks good! After fixing the stuff below, it should be good to loop in an ...
4 years, 9 months ago (2016-03-17 23:04:15 UTC) #11
tapted
https://codereview.chromium.org/1796773003/diff/80001/ui/views/cocoa/bridged_native_widget.mm File ui/views/cocoa/bridged_native_widget.mm (right): https://codereview.chromium.org/1796773003/diff/80001/ui/views/cocoa/bridged_native_widget.mm#newcode278 ui/views/cocoa/bridged_native_widget.mm:278: NSComparisonResult SubviewSorter(id lhs, id rhs, void* rank_as_void) { Make ...
4 years, 9 months ago (2016-03-17 23:51:27 UTC) #12
kirr
Fixed nits. Use typedef for xcode 7 compilation.
4 years, 9 months ago (2016-03-18 12:20:23 UTC) #16
sky
I'm assuming Trent is doing a thorough review. Rubber stamp LGTM from me.
4 years, 9 months ago (2016-03-18 17:14:50 UTC) #17
tapted
lgtm - thanks! Don't forget to publish out the CL drafts marking the last round ...
4 years, 9 months ago (2016-03-20 23:40:21 UTC) #18
kirr
> CL description: git doesn't automatically put the summary field into the log, so > ...
4 years, 9 months ago (2016-03-21 07:45:20 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1796773003/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1796773003/100001
4 years, 9 months ago (2016-03-21 07:47:43 UTC) #21
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 9 months ago (2016-03-21 08:34:15 UTC) #23
commit-bot: I haz the power
4 years, 9 months ago (2016-03-21 08:35:17 UTC) #25
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/852a2ec06f9aac8f1b048d241a5bb8f9c5559d13
Cr-Commit-Position: refs/heads/master@{#382259}

Powered by Google App Engine
This is Rietveld 408576698