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

Issue 10831361: Draggable region support for frameless app window on CrOS. (Closed)

Created:
8 years, 4 months ago by jianli
Modified:
8 years, 4 months ago
CC:
chromium-reviews, mihaip-chromium-reviews_chromium.org, sadrul, yusukes+watch_chromium.org, ben+watch_chromium.org, tfarina, jeremya+watch_chromium.org, jam, penghuang+watch_chromium.org, joi+watch-content_chromium.org, Aaron Boodman, darin-cc_chromium.org, James Su
Visibility:
Public.

Description

Draggable region support for frameless app window on CrOS. BUG=134169 TEST=new unittest for aura Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=152683

Patch Set 1 #

Patch Set 2 : Fix build #

Total comments: 1

Patch Set 3 : Fix build #

Patch Set 4 : Fix build #

Patch Set 5 : Use ShouldDescendIntoChildForEventHandling #

Total comments: 5

Patch Set 6 : Fix per feedback #

Patch Set 7 : Remove event type filtering #

Unified diffs Side-by-side diffs Delta from patch set Stats (+63 lines, -0 lines) Patch
M chrome/browser/ui/views/extensions/shell_window_views.h View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/extensions/shell_window_views.cc View 1 2 3 4 5 6 1 chunk +14 lines, -0 lines 0 comments Download
M ui/aura/window_unittest.cc View 1 2 3 4 5 6 2 chunks +29 lines, -0 lines 0 comments Download
M ui/views/widget/native_widget_aura.cc View 1 2 3 4 5 6 1 chunk +5 lines, -0 lines 0 comments Download
M ui/views/widget/widget_delegate.h View 1 2 3 4 5 6 1 chunk +6 lines, -0 lines 0 comments Download
M ui/views/widget/widget_delegate.cc View 1 2 3 4 5 6 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
jianli
8 years, 4 months ago (2012-08-16 23:26:32 UTC) #1
Ben Goodger (Google)
http://codereview.chromium.org/10831361/diff/11002/ui/aura/window.h File ui/aura/window.h (right): http://codereview.chromium.org/10831361/diff/11002/ui/aura/window.h#newcode270 ui/aura/window.h:270: void SetDraggableRegion(SkRegion* region); Aura is agnostic of things that ...
8 years, 4 months ago (2012-08-17 17:10:24 UTC) #2
jianli
I tried to put the logic in ash::ToplevelWindowEventFilter::PreHandleMouseEvent, but it did not work well. When ...
8 years, 4 months ago (2012-08-17 23:26:45 UTC) #3
Ben Goodger (Google)
My understanding of how this stuff works: The browser process keeps a copy of a ...
8 years, 4 months ago (2012-08-20 20:34:17 UTC) #4
Ben Goodger (Google)
I guess it could be that the overlapping RWHVA is consuming the invents instead of ...
8 years, 4 months ago (2012-08-20 20:36:40 UTC) #5
jianli
On 2012/08/20 20:36:40, Ben Goodger (Google) wrote: > I guess it could be that the ...
8 years, 4 months ago (2012-08-20 23:17:26 UTC) #6
Ben Goodger (Google)
So, what we need then is a way to have GetWindowForPoint() return the frame in ...
8 years, 4 months ago (2012-08-20 23:35:25 UTC) #7
jianli
We also need to pass the event type to the delegate method because we only ...
8 years, 4 months ago (2012-08-20 23:47:31 UTC) #8
Ben Goodger (Google)
Does it really matter? On Mon, Aug 20, 2012 at 4:47 PM, Jian Li <jianli@chromium.org> ...
8 years, 4 months ago (2012-08-20 23:57:39 UTC) #9
jianli
Yes because we still want the RenderWidgetHostViewAura window to handle the mouse move events since ...
8 years, 4 months ago (2012-08-21 00:03:04 UTC) #10
jianli
Changed as suggested. Ben, can you review again? Thanks.
8 years, 4 months ago (2012-08-21 00:59:18 UTC) #11
Ben Goodger (Google)
http://codereview.chromium.org/10831361/diff/2008/chrome/browser/ui/views/extensions/shell_window_views.cc File chrome/browser/ui/views/extensions/shell_window_views.cc (right): http://codereview.chromium.org/10831361/diff/2008/chrome/browser/ui/views/extensions/shell_window_views.cc#newcode343 chrome/browser/ui/views/extensions/shell_window_views.cc:343: DCHECK_EQ(child, web_view_->web_contents()->GetView()->GetNativeView()); the body of this function needs to ...
8 years, 4 months ago (2012-08-21 02:17:39 UTC) #12
jianli
On Mon, Aug 20, 2012 at 7:17 PM, <ben@chromium.org> wrote: > > http://codereview.chromium.**org/10831361/diff/2008/chrome/** > browser/ui/views/extensions/**shell_window_views.cc<http://codereview.chromium.org/10831361/diff/2008/chrome/browser/ui/views/extensions/shell_window_views.cc> ...
8 years, 4 months ago (2012-08-21 05:33:15 UTC) #13
jianli
http://codereview.chromium.org/10831361/diff/2008/chrome/browser/ui/views/extensions/shell_window_views.cc File chrome/browser/ui/views/extensions/shell_window_views.cc (right): http://codereview.chromium.org/10831361/diff/2008/chrome/browser/ui/views/extensions/shell_window_views.cc#newcode343 chrome/browser/ui/views/extensions/shell_window_views.cc:343: DCHECK_EQ(child, web_view_->web_contents()->GetView()->GetNativeView()); On 2012/08/21 02:17:40, Ben Goodger (Google) wrote: ...
8 years, 4 months ago (2012-08-21 17:22:00 UTC) #14
Ben Goodger (Google)
On 2012/08/21 05:33:15, jianli wrote: > > The draggable region of the frameless app window ...
8 years, 4 months ago (2012-08-21 18:18:09 UTC) #15
jianli
On Tue, Aug 21, 2012 at 11:18 AM, <ben@chromium.org> wrote: > On 2012/08/21 05:33:15, jianli ...
8 years, 4 months ago (2012-08-21 18:24:45 UTC) #16
jianli
I've removed the event type filtering logic. Ben, can you take a look again? Thanks.
8 years, 4 months ago (2012-08-21 22:01:43 UTC) #17
Ben Goodger (Google)
lgtm
8 years, 4 months ago (2012-08-21 22:03:54 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jianli@chromium.org/10831361/15048
8 years, 4 months ago (2012-08-21 22:36:50 UTC) #19
commit-bot: I haz the power
8 years, 4 months ago (2012-08-22 00:14:08 UTC) #20
Change committed as 152683

Powered by Google App Engine
This is Rietveld 408576698