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

Unified Diff: chrome/browser/ui/views/frame/browser_non_client_frame_view_aura.cc

Issue 9835013: Ash: Don't show window icon or title for app windows (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/frame/browser_non_client_frame_view_aura.cc
diff --git a/chrome/browser/ui/views/frame/browser_non_client_frame_view_aura.cc b/chrome/browser/ui/views/frame/browser_non_client_frame_view_aura.cc
index e139586aedff37845943f712d21d087bde990032..cadf1319a40f3b7790dd3988052f2280477fac2b 100644
--- a/chrome/browser/ui/views/frame/browser_non_client_frame_view_aura.cc
+++ b/chrome/browser/ui/views/frame/browser_non_client_frame_view_aura.cc
@@ -79,8 +79,12 @@ void BrowserNonClientFrameViewAura::Init() {
l10n_util::GetStringUTF16(IDS_ACCNAME_CLOSE));
AddChildView(close_button_);
+ // For Ash only, app windows do not show an icon. crbug.com/119411
+ bool show_icon = !browser_view()->browser()->is_app() &&
+ browser_view()->ShouldShowWindowIcon();
+
// Initializing the TabIconView is expensive, so only do it if we need to.
- if (browser_view()->ShouldShowWindowIcon()) {
sky 2012/03/22 16:58:12 Wouldn't it be better to put this in ShouldShowWin
+ if (show_icon) {
window_icon_ = new TabIconView(this);
window_icon_->set_is_light(true);
AddChildView(window_icon_);
@@ -181,7 +185,10 @@ void BrowserNonClientFrameViewAura::OnPaint(gfx::Canvas* canvas) {
canvas,
GetThemeFrameBitmap(),
GetThemeFrameOverlayBitmap());
- frame_painter_->PaintTitleBar(this, canvas, BrowserFrame::GetTitleFont());
+ // For Ash only, app windows do not show title text. crbug.com/119411
+ if (!browser_view()->browser()->is_app() &&
+ browser_view()->ShouldShowWindowTitle())
+ frame_painter_->PaintTitleBar(this, canvas, BrowserFrame::GetTitleFont());
if (browser_view()->IsToolbarVisible())
PaintToolbarBackground(canvas);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698