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

Issue 7206036: Titlebar modifications for panels. (Closed)

Created:
9 years, 6 months ago by prasadt
Modified:
9 years, 6 months ago
CC:
chromium-reviews, jianli, dcheng
Visibility:
Public.

Description

Titlebar modifications for panels. - Do not show minimize and maximize buttons. - Add a wrench icon that only displays when panel window has focus or mouse is in the panel window. TEST=Manual. Bring up a panel and verify the above behavior. BUG=73936 modified: chrome/browser/ui/gtk/browser_titlebar.cc modified: chrome/browser/ui/gtk/browser_titlebar.h Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=90226

Patch Set 1 #

Total comments: 20

Patch Set 2 : Code review feedback. #

Total comments: 7

Patch Set 3 : Code review feedback. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+83 lines, -10 lines) Patch
M chrome/browser/ui/gtk/browser_titlebar.h View 1 2 5 chunks +17 lines, -1 line 0 comments Download
M chrome/browser/ui/gtk/browser_titlebar.cc View 1 10 chunks +66 lines, -9 lines 2 comments Download

Messages

Total messages: 8 (0 generated)
prasadt
9 years, 6 months ago (2011-06-21 02:18:21 UTC) #1
Evan Stade
http://codereview.chromium.org/7206036/diff/1/chrome/browser/ui/gtk/browser_titlebar.cc File chrome/browser/ui/gtk/browser_titlebar.cc (right): http://codereview.chromium.org/7206036/diff/1/chrome/browser/ui/gtk/browser_titlebar.cc#newcode298 chrome/browser/ui/gtk/browser_titlebar.cc:298: ? http://codereview.chromium.org/7206036/diff/1/chrome/browser/ui/gtk/browser_titlebar.cc#newcode340 chrome/browser/ui/gtk/browser_titlebar.cc:340: ? http://codereview.chromium.org/7206036/diff/1/chrome/browser/ui/gtk/browser_titlebar.cc#newcode450 chrome/browser/ui/gtk/browser_titlebar.cc:450: if (!is_type_panel()) { ...
9 years, 6 months ago (2011-06-21 02:58:08 UTC) #2
prasadt
Thanks for the feedback! http://codereview.chromium.org/7206036/diff/1/chrome/browser/ui/gtk/browser_titlebar.cc File chrome/browser/ui/gtk/browser_titlebar.cc (right): http://codereview.chromium.org/7206036/diff/1/chrome/browser/ui/gtk/browser_titlebar.cc#newcode298 chrome/browser/ui/gtk/browser_titlebar.cc:298: On 2011/06/21 02:58:08, Evan Stade ...
9 years, 6 months ago (2011-06-21 18:21:06 UTC) #3
Evan Stade
http://codereview.chromium.org/7206036/diff/1003/chrome/browser/ui/gtk/browser_titlebar.cc File chrome/browser/ui/gtk/browser_titlebar.cc (right): http://codereview.chromium.org/7206036/diff/1003/chrome/browser/ui/gtk/browser_titlebar.cc#newcode832 chrome/browser/ui/gtk/browser_titlebar.cc:832: gtk_widget_show(panel_wrench_button_->widget()); shouldn't this check for active? http://codereview.chromium.org/7206036/diff/1003/chrome/browser/ui/gtk/browser_titlebar.h File chrome/browser/ui/gtk/browser_titlebar.h ...
9 years, 6 months ago (2011-06-21 22:19:21 UTC) #4
prasadt
http://codereview.chromium.org/7206036/diff/1003/chrome/browser/ui/gtk/browser_titlebar.cc File chrome/browser/ui/gtk/browser_titlebar.cc (right): http://codereview.chromium.org/7206036/diff/1003/chrome/browser/ui/gtk/browser_titlebar.cc#newcode832 chrome/browser/ui/gtk/browser_titlebar.cc:832: gtk_widget_show(panel_wrench_button_->widget()); On 2011/06/21 22:19:21, Evan Stade wrote: > shouldn't ...
9 years, 6 months ago (2011-06-21 23:23:39 UTC) #5
Evan Stade
lgtm http://codereview.chromium.org/7206036/diff/1003/chrome/browser/ui/gtk/browser_titlebar.cc File chrome/browser/ui/gtk/browser_titlebar.cc (right): http://codereview.chromium.org/7206036/diff/1003/chrome/browser/ui/gtk/browser_titlebar.cc#newcode832 chrome/browser/ui/gtk/browser_titlebar.cc:832: gtk_widget_show(panel_wrench_button_->widget()); On 2011/06/21 23:23:39, prasadt wrote: > On ...
9 years, 6 months ago (2011-06-23 17:05:20 UTC) #6
jennb
http://codereview.chromium.org/7206036/diff/3005/chrome/browser/ui/gtk/browser_titlebar.cc File chrome/browser/ui/gtk/browser_titlebar.cc (right): http://codereview.chromium.org/7206036/diff/3005/chrome/browser/ui/gtk/browser_titlebar.cc#newcode971 chrome/browser/ui/gtk/browser_titlebar.cc:971: return CommandLine::ForCurrentProcess()->HasSwitch(switches::kEnablePanels) && browser.cc converts type to POPUP if ...
9 years, 6 months ago (2011-06-23 23:09:43 UTC) #7
prasadt
9 years, 6 months ago (2011-06-24 00:01:11 UTC) #8
http://codereview.chromium.org/7206036/diff/3005/chrome/browser/ui/gtk/browse...
File chrome/browser/ui/gtk/browser_titlebar.cc (right):

http://codereview.chromium.org/7206036/diff/3005/chrome/browser/ui/gtk/browse...
chrome/browser/ui/gtk/browser_titlebar.cc:971: return
CommandLine::ForCurrentProcess()->HasSwitch(switches::kEnablePanels) &&
On 2011/06/23 23:09:43, jennb wrote:
> browser.cc converts type to POPUP if --enable-panels is not defined so you
> shouldn't need this check here.

Chatted offline.
Looks like we convert TYPE_PANEL to TYPE_POPUP in the absence of the flag,
except for ChromeOS.  And this file is not compiled on ChromeOS.  Its not that
obvious from reading the code, so did it this way to be safe.  I can remove the
check on a later CL.

Powered by Google App Engine
This is Rietveld 408576698