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

Issue 15894025: Fix Views new dialog style hit-testing. (Closed)

Created:
7 years, 6 months ago by msw
Modified:
7 years, 6 months ago
Reviewers:
sky
CC:
chromium-reviews, tfarina, alicet1, msw+watch_chromium.org
Visibility:
Public.

Description

Fix Views new dialog style hit-testing. This CL is a continuation of a reverted CL: https://codereview.chromium.org/16084008/ This CL fixes test failures/crashes that caused revert. It also refines the behavior and improves testing. Allow non-resizable dialog dragging (and system menu). (revise NonClientHitTest to return HTCAPTION as needed) This was a regression from my http://crrev.com/202000 Allow the top-left to show the system menu on left-click. Allow dragging dialogs from the frame view side/bottom. This is new behavior that I think is good :) Expand BubbleFrameViewTest.NonClientHitTest and support. Add dialog_delegate_unittest.cc and DialogTest.HitTest. BUG=244676, 166075 TEST=all non-constrained dialogs can be dragged, and their Windows system menus are shown on title-bar right-click, and top-left area left-click. R=sky@chromium.org ABANDONED DUE TO INTENDED BEHAVIOR CHANGE.

Patch Set 1 : Original reverted CL from https://codereview.chromium.org/16084008/. #

Patch Set 2 : Pass |bubble| ownership to the widget. #

Patch Set 3 : Fix hit-testing logic; fix bubble test; add dialog test. #

Patch Set 4 : Cleanup. #

Patch Set 5 : Add Aura context, simplify and make test more flexible. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+136 lines, -56 lines) Patch
M ui/views/bubble/bubble_frame_view.cc View 1 2 1 chunk +18 lines, -8 lines 0 comments Download
M ui/views/bubble/bubble_frame_view_unittest.cc View 1 2 3 chunks +42 lines, -48 lines 0 comments Download
M ui/views/views.gyp View 1 2 1 chunk +1 line, -0 lines 0 comments Download
A ui/views/window/dialog_delegate_unittest.cc View 1 2 3 4 1 chunk +75 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
msw
Hey Scott, please take a look at this updated CL; thanks!
7 years, 6 months ago (2013-06-04 01:19:59 UTC) #1
sky
LGTM
7 years, 6 months ago (2013-06-04 14:51:09 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/msw@chromium.org/15894025/9003
7 years, 6 months ago (2013-06-04 16:47:31 UTC) #3
msw
I was just notified of a change to the intended behavior by Glen. 1) New-style ...
7 years, 6 months ago (2013-06-04 18:09:04 UTC) #4
sky
You likely also need to make it so that if the parent is dragged the ...
7 years, 6 months ago (2013-06-04 21:06:47 UTC) #5
msw
On 2013/06/04 21:06:47, sky wrote: > You likely also need to make it so that ...
7 years, 6 months ago (2013-06-04 21:23:20 UTC) #6
sky
What about things like calendar alerts? Those doesn't change the parent. On Tue, Jun 4, ...
7 years, 6 months ago (2013-06-04 22:58:05 UTC) #7
msw
On 2013/06/04 22:58:05, sky wrote: > What about things like calendar alerts? Those doesn't change ...
7 years, 6 months ago (2013-06-04 23:05:23 UTC) #8
sky
Good point. On Tue, Jun 4, 2013 at 4:05 PM, <msw@chromium.org> wrote: > On 2013/06/04 ...
7 years, 6 months ago (2013-06-04 23:20:34 UTC) #9
mtomasz
On 2013/06/04 23:20:34, sky wrote: > Good point. > > On Tue, Jun 4, 2013 ...
7 years, 6 months ago (2013-06-19 06:49:18 UTC) #10
msw
7 years, 6 months ago (2013-06-19 07:41:13 UTC) #11
Message was sent while issue was closed.
On 2013/06/19 06:49:18, mtomasz wrote:
> On 2013/06/04 23:20:34, sky wrote:
> > Good point.
> > 
> > On Tue, Jun 4, 2013 at 4:05 PM,  <mailto:msw@chromium.org> wrote:
> > > On 2013/06/04 22:58:05, sky wrote:
> > >>
> > >> What about things like calendar alerts? Those doesn't change the parent.
> > >
> > >
> > > JavaScript alerts make their parent non-interactive regradless of style.
> > > There is no behavior change there, but eventually we should re-evaluate.
> > > Modality should be somewhat disjoint from parenting.
> > >
> > > https://codereview.chromium.org/15894025/
> 
> I'm very surprised that resizing got disabled. I think we want the save-as and
> open dialog to be resizeable.
> There is a lot of content inside.

It was a PM/UX/leads decision; see http://crrev.com/204190 and its bugs.
You can talk with Ben, Glen, Andrew, and others; I was also confused.

Powered by Google App Engine
This is Rietveld 408576698