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

Issue 10483010: Change the visual appearance of panel on GTK per new UI design. (Closed)

Created:
8 years, 6 months ago by jianli
Modified:
8 years, 6 months ago
CC:
chromium-reviews, jennb, dcheng, Andrei
Visibility:
Public.

Description

Change the visual appearance of panel on GTK per new UI design. In order not to add more panel specific stuff to BrowserTitlebar, I decided to put all titlebar painting and handling logic in PanelBrowserTitlebarGtk. This is also needed for the ongoing effort to strip out the BrowserWindow dependency from panel implementation. I also moved throbber logic out of BrowserTitlebar into a separate class so that the code can be shared between BrowserTitlebar and PanelBrowserTitlebarGtk. BUG=none TEST=existing tests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=140636

Patch Set 1 : Patch #

Total comments: 20

Patch Set 2 : Fix per feedback #

Patch Set 3 : revert nine_box changes completely #

Total comments: 16

Patch Set 4 : Fix per feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+748 lines, -484 lines) Patch
M chrome/browser/ui/gtk/browser_titlebar.h View 1 5 chunks +30 lines, -90 lines 0 comments Download
M chrome/browser/ui/gtk/browser_titlebar.cc View 1 8 chunks +21 lines, -81 lines 0 comments Download
A chrome/browser/ui/gtk/browser_titlebar_base.h View 1 chunk +50 lines, -0 lines 0 comments Download
M chrome/browser/ui/gtk/browser_window_gtk.h View 1 2 3 9 chunks +25 lines, -24 lines 0 comments Download
M chrome/browser/ui/gtk/browser_window_gtk.cc View 3 chunks +5 lines, -3 lines 0 comments Download
A chrome/browser/ui/gtk/titlebar_throb_animation.h View 1 1 chunk +37 lines, -0 lines 0 comments Download
A chrome/browser/ui/gtk/titlebar_throb_animation.cc View 1 1 chunk +71 lines, -0 lines 0 comments Download
M chrome/browser/ui/panels/detached_panel_browsertest.cc View 1 chunk +3 lines, -5 lines 0 comments Download
M chrome/browser/ui/panels/native_panel.h View 2 chunks +1 line, -7 lines 0 comments Download
M chrome/browser/ui/panels/panel_browser_titlebar_gtk.h View 1 2 3 2 chunks +75 lines, -27 lines 0 comments Download
M chrome/browser/ui/panels/panel_browser_titlebar_gtk.cc View 1 2 3 4 chunks +244 lines, -109 lines 0 comments Download
M chrome/browser/ui/panels/panel_browser_view.cc View 2 chunks +6 lines, -5 lines 0 comments Download
M chrome/browser/ui/panels/panel_browser_window_cocoa.mm View 2 chunks +6 lines, -5 lines 0 comments Download
M chrome/browser/ui/panels/panel_browser_window_gtk.h View 6 chunks +12 lines, -11 lines 0 comments Download
M chrome/browser/ui/panels/panel_browser_window_gtk.cc View 1 2 3 10 chunks +139 lines, -95 lines 0 comments Download
M chrome/browser/ui/panels/panel_browsertest.cc View 1 chunk +11 lines, -20 lines 0 comments Download
M chrome/browser/ui/panels/panel_constants.h View 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 3 chunks +5 lines, -2 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
jianli
Evan, could you please review all changes related to browser/ui/GTK/*? Dmitry and Jenn, could you ...
8 years, 6 months ago (2012-06-04 19:54:09 UTC) #1
jennb
Some of these changes won't be necessary once we stop inheriting from browser_window_gtk, such as ...
8 years, 6 months ago (2012-06-04 22:17:52 UTC) #2
Dmitry Titov
It would be better to split the moving constants to panel_constant.h from the rest of ...
8 years, 6 months ago (2012-06-04 22:19:57 UTC) #3
Evan Stade
gtk wise looks ok to me http://codereview.chromium.org/10483010/diff/19/chrome/browser/ui/gtk/browser_titlebar_throbber.cc File chrome/browser/ui/gtk/browser_titlebar_throbber.cc (right): http://codereview.chromium.org/10483010/diff/19/chrome/browser/ui/gtk/browser_titlebar_throbber.cc#newcode5 chrome/browser/ui/gtk/browser_titlebar_throbber.cc:5: #include "chrome/browser/ui/gtk/browser_titlebar_throbber.h" aside: ...
8 years, 6 months ago (2012-06-04 22:58:19 UTC) #4
jianli
http://codereview.chromium.org/10483010/diff/19/chrome/browser/ui/gtk/browser_titlebar.h File chrome/browser/ui/gtk/browser_titlebar.h (right): http://codereview.chromium.org/10483010/diff/19/chrome/browser/ui/gtk/browser_titlebar.h#newcode96 chrome/browser/ui/gtk/browser_titlebar.h:96: void ShowFaviconMenu(GdkEventButton* event); On 2012/06/04 22:17:52, jennb wrote: > ...
8 years, 6 months ago (2012-06-05 18:48:30 UTC) #5
jianli
On 2012/06/04 22:19:57, Dmitry Titov wrote: > It would be better to split the moving ...
8 years, 6 months ago (2012-06-05 18:49:30 UTC) #6
jianli
On 2012/06/04 22:17:52, jennb wrote: > Some of these changes won't be necessary once we ...
8 years, 6 months ago (2012-06-05 18:50:35 UTC) #7
Dmitry Titov
On 2012/06/05 18:49:30, jianli wrote: > On 2012/06/04 22:19:57, Dmitry Titov wrote: > > It ...
8 years, 6 months ago (2012-06-05 19:02:16 UTC) #8
Dmitry Titov
LGTM (please restore the comment in nine_box.cc so this file is not in the CL ...
8 years, 6 months ago (2012-06-05 20:09:37 UTC) #9
jennb
LGTM http://codereview.chromium.org/10483010/diff/22001/chrome/browser/ui/gtk/browser_window_gtk.h File chrome/browser/ui/gtk/browser_window_gtk.h (right): http://codereview.chromium.org/10483010/diff/22001/chrome/browser/ui/gtk/browser_window_gtk.h#newcode279 chrome/browser/ui/gtk/browser_window_gtk.h:279: // Draws the frame. Comment just repeats method ...
8 years, 6 months ago (2012-06-05 20:40:35 UTC) #10
jianli
On 2012/06/04 22:58:19, Evan Stade wrote: > gtk wise looks ok to me > > ...
8 years, 6 months ago (2012-06-05 21:02:16 UTC) #11
jianli
Addressed all feedbacks and will land the patch. http://codereview.chromium.org/10483010/diff/22001/chrome/browser/ui/gtk/browser_window_gtk.h File chrome/browser/ui/gtk/browser_window_gtk.h (right): http://codereview.chromium.org/10483010/diff/22001/chrome/browser/ui/gtk/browser_window_gtk.h#newcode279 chrome/browser/ui/gtk/browser_window_gtk.h:279: // ...
8 years, 6 months ago (2012-06-05 21:03:40 UTC) #12
Evan Stade
lgtm
8 years, 6 months ago (2012-06-05 21:16:18 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jianli@chromium.org/10483010/26001
8 years, 6 months ago (2012-06-05 21:23:18 UTC) #14
commit-bot: I haz the power
8 years, 6 months ago (2012-06-05 22:27:32 UTC) #15
Change committed as 140636

Powered by Google App Engine
This is Rietveld 408576698