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

Unified Diff: chrome/browser/ui/views/apps/chrome_native_app_window_views_aura.cc

Issue 1429793002: Make panel window's header color customizable in Ash. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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 | « ash/wm/panels/panel_frame_view.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/apps/chrome_native_app_window_views_aura.cc
diff --git a/chrome/browser/ui/views/apps/chrome_native_app_window_views_aura.cc b/chrome/browser/ui/views/apps/chrome_native_app_window_views_aura.cc
index 2adfb24ed68646ce6501c379c1d03ecd05eb41cb..5c6dad702665aba5a379da81f76f4301eb7c09d9 100644
--- a/chrome/browser/ui/views/apps/chrome_native_app_window_views_aura.cc
+++ b/chrome/browser/ui/views/apps/chrome_native_app_window_views_aura.cc
@@ -325,9 +325,11 @@ ChromeNativeAppWindowViewsAura::CreateNonClientFrameView(
return CreateNonStandardAppFrame();
if (app_window()->window_type_is_panel()) {
- views::NonClientFrameView* frame_view =
+ ash::PanelFrameView* frame_view =
new ash::PanelFrameView(widget, ash::PanelFrameView::FRAME_ASH);
frame_view->set_context_menu_controller(this);
+ if (HasFrameColor())
+ frame_view->SetFrameColors(ActiveFrameColor(), InactiveFrameColor());
return frame_view;
}
« no previous file with comments | « ash/wm/panels/panel_frame_view.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698