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

Issue 10834205: Draggable region support for frameless app window on GTK. (Closed)

Created:
8 years, 4 months ago by Junmin Zhu
Modified:
8 years, 4 months ago
Reviewers:
jeremya, jennb, Evan Stade
CC:
chromium-reviews, jeremya+watch_chromium.org, Aaron Boodman, mihaip-chromium-reviews_chromium.org
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Draggable region support for frameless app window on GTK. BUG=134169 TEST=manually Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=152524

Patch Set 1 #

Total comments: 6

Patch Set 2 : #

Total comments: 6

Patch Set 3 : add backport from BrowserWindow. #

Patch Set 4 : refactor the patch. #

Total comments: 3

Patch Set 5 : refactor patch according to estade's comment #11 #

Total comments: 4

Patch Set 6 : refine the patch according to commet #15 #

Patch Set 7 : rebase patch to trunk. #

Total comments: 1

Patch Set 8 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+194 lines, -90 lines) Patch
M chrome/browser/ui/gtk/browser_window_gtk.h View 1 2 3 4 4 chunks +2 lines, -13 lines 0 comments Download
M chrome/browser/ui/gtk/browser_window_gtk.cc View 1 2 3 4 5 6 6 chunks +4 lines, -67 lines 0 comments Download
M chrome/browser/ui/gtk/extensions/shell_window_gtk.h View 1 2 3 4 5 6 7 5 chunks +17 lines, -0 lines 0 comments Download
M chrome/browser/ui/gtk/extensions/shell_window_gtk.cc View 1 2 3 4 5 6 7 chunks +75 lines, -2 lines 0 comments Download
M chrome/browser/ui/gtk/gtk_window_util.h View 1 2 3 4 5 2 chunks +14 lines, -0 lines 0 comments Download
M chrome/browser/ui/gtk/gtk_window_util.cc View 1 2 3 4 5 2 chunks +79 lines, -0 lines 0 comments Download
M chrome/browser/ui/panels/panel_browser_window_gtk.h View 1 2 3 4 1 chunk +1 line, -3 lines 0 comments Download
M chrome/browser/ui/panels/panel_browser_window_gtk.cc View 1 2 3 4 2 chunks +2 lines, -5 lines 0 comments Download

Messages

Total messages: 22 (0 generated)
Junmin Zhu
It depends on jianli's CL(http://codereview.chromium.org/10822004), Please kindly help review the patch, thanks.
8 years, 4 months ago (2012-08-07 14:48:14 UTC) #1
Evan Stade
http://codereview.chromium.org/10834205/diff/1/chrome/browser/ui/gtk/extensions/shell_window_gtk.cc File chrome/browser/ui/gtk/extensions/shell_window_gtk.cc (right): http://codereview.chromium.org/10834205/diff/1/chrome/browser/ui/gtk/extensions/shell_window_gtk.cc#newcode72 chrome/browser/ui/gtk/extensions/shell_window_gtk.cc:72: g_signal_connect(window_, "button-press-event", you only need to this if frameless. ...
8 years, 4 months ago (2012-08-07 23:20:58 UTC) #2
jeremya
http://codereview.chromium.org/10834205/diff/1/chrome/browser/ui/gtk/extensions/shell_window_gtk.cc File chrome/browser/ui/gtk/extensions/shell_window_gtk.cc (right): http://codereview.chromium.org/10834205/diff/1/chrome/browser/ui/gtk/extensions/shell_window_gtk.cc#newcode227 chrome/browser/ui/gtk/extensions/shell_window_gtk.cc:227: } Is this sufficient? Do we get behaviour like ...
8 years, 4 months ago (2012-08-08 04:38:37 UTC) #3
Junmin Zhu
Hi estade and jeremya, thanks for your review. jeremya, as I known, gtk and Xwindow ...
8 years, 4 months ago (2012-08-08 14:28:02 UTC) #4
Evan Stade
just nits http://codereview.chromium.org/10834205/diff/6001/chrome/browser/ui/gtk/extensions/shell_window_gtk.cc File chrome/browser/ui/gtk/extensions/shell_window_gtk.cc (right): http://codereview.chromium.org/10834205/diff/6001/chrome/browser/ui/gtk/extensions/shell_window_gtk.cc#newcode72 chrome/browser/ui/gtk/extensions/shell_window_gtk.cc:72: if (frameless_) curlies http://codereview.chromium.org/10834205/diff/6001/chrome/browser/ui/gtk/extensions/shell_window_gtk.cc#newcode218 chrome/browser/ui/gtk/extensions/shell_window_gtk.cc:218: if (frameless_ ...
8 years, 4 months ago (2012-08-08 21:01:42 UTC) #5
jeremya
lgtm (though i'm not an OWNER). You should consider maximizing the window on double-click in ...
8 years, 4 months ago (2012-08-09 00:22:44 UTC) #6
Evan Stade
On 2012/08/09 00:22:44, jeremya wrote: > lgtm (though i'm not an OWNER). You should consider ...
8 years, 4 months ago (2012-08-09 02:36:19 UTC) #7
Junmin Zhu
On 2012/08/09 02:36:19, Evan Stade wrote: > On 2012/08/09 00:22:44, jeremya wrote: > > lgtm ...
8 years, 4 months ago (2012-08-09 09:21:05 UTC) #8
Evan Stade
that code is pretty intricate, can we find a way to share it?
8 years, 4 months ago (2012-08-10 02:50:26 UTC) #9
Junmin Zhu
On 2012/08/10 02:50:26, Evan Stade wrote: > that code is pretty intricate, can we find ...
8 years, 4 months ago (2012-08-15 02:58:34 UTC) #10
Evan Stade
http://codereview.chromium.org/10834205/diff/13001/chrome/browser/ui/gtk/extensions/shell_window_gtk.cc File chrome/browser/ui/gtk/extensions/shell_window_gtk.cc (right): http://codereview.chromium.org/10834205/diff/13001/chrome/browser/ui/gtk/extensions/shell_window_gtk.cc#newcode234 chrome/browser/ui/gtk/extensions/shell_window_gtk.cc:234: last_click_position_ = gfx::Point(static_cast<int>(event->x), you could share more code if ...
8 years, 4 months ago (2012-08-15 21:20:35 UTC) #11
Junmin Zhu
1. refactor HandleTitleBarLeftMousePress function in browser_window_gtk, which would need to adjust panel_browser_window_gtk.cc too. 2. move ...
8 years, 4 months ago (2012-08-16 05:32:37 UTC) #12
Junmin Zhu
Please kindly review it, thanks.
8 years, 4 months ago (2012-08-16 05:33:08 UTC) #13
jennb
lgtm for Panels changes.
8 years, 4 months ago (2012-08-16 18:05:11 UTC) #14
Evan Stade
http://codereview.chromium.org/10834205/diff/10009/chrome/browser/ui/gtk/gtk_window_util.cc File chrome/browser/ui/gtk/gtk_window_util.cc (right): http://codereview.chromium.org/10834205/diff/10009/chrome/browser/ui/gtk/gtk_window_util.cc#newcode18 chrome/browser/ui/gtk/gtk_window_util.cc:18: static GdkEventButton last_click_event; non non-POD statics. http://codereview.chromium.org/10834205/diff/10009/chrome/browser/ui/gtk/gtk_window_util.cc#newcode114 chrome/browser/ui/gtk/gtk_window_util.cc:114: gfx::Rect ...
8 years, 4 months ago (2012-08-16 18:48:07 UTC) #15
Evan Stade
http://codereview.chromium.org/10834205/diff/10009/chrome/browser/ui/gtk/gtk_window_util.cc File chrome/browser/ui/gtk/gtk_window_util.cc (right): http://codereview.chromium.org/10834205/diff/10009/chrome/browser/ui/gtk/gtk_window_util.cc#newcode18 chrome/browser/ui/gtk/gtk_window_util.cc:18: static GdkEventButton last_click_event; On 2012/08/16 18:48:07, Evan Stade wrote: ...
8 years, 4 months ago (2012-08-16 19:04:21 UTC) #16
Junmin Zhu
Update the patch. Please kindly review it, thanks.
8 years, 4 months ago (2012-08-17 02:45:59 UTC) #17
Junmin Zhu
On 2012/08/17 02:45:59, Junmin Zhu wrote: > Update the patch. > Please kindly review it, ...
8 years, 4 months ago (2012-08-18 10:05:37 UTC) #18
Evan Stade
lgtm
8 years, 4 months ago (2012-08-20 19:44:00 UTC) #19
Evan Stade
http://codereview.chromium.org/10834205/diff/13014/chrome/browser/ui/gtk/extensions/shell_window_gtk.h File chrome/browser/ui/gtk/extensions/shell_window_gtk.h (right): http://codereview.chromium.org/10834205/diff/13014/chrome/browser/ui/gtk/extensions/shell_window_gtk.h#newcode16 chrome/browser/ui/gtk/extensions/shell_window_gtk.h:16: #include "third_party/skia/include/core/SkRegion.h" alphabetize
8 years, 4 months ago (2012-08-20 20:18:20 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/junmin.zhu@intel.com/10834205/14001
8 years, 4 months ago (2012-08-21 04:45:13 UTC) #21
commit-bot: I haz the power
8 years, 4 months ago (2012-08-21 07:04:46 UTC) #22
Change committed as 152524

Powered by Google App Engine
This is Rietveld 408576698