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

Unified Diff: ash/common/frame/header_view.cc

Issue 2724693002: mash: improves browser frame decorations (Closed)
Patch Set: merge Created 3 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 | « ash/common/frame/header_view.h ('k') | ash/mus/frame/custom_frame_view_mus.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/frame/header_view.cc
diff --git a/ash/common/frame/header_view.cc b/ash/common/frame/header_view.cc
index fbd326ad7227eddcda8211e292c0b060bcbc8aff..1b3094654247101e144b3c4c25093eb4650eeabf 100644
--- a/ash/common/frame/header_view.cc
+++ b/ash/common/frame/header_view.cc
@@ -15,9 +15,10 @@
namespace ash {
-HeaderView::HeaderView(views::Widget* target_widget)
+HeaderView::HeaderView(views::Widget* target_widget,
+ mojom::WindowStyle window_style)
: target_widget_(target_widget),
- header_painter_(new DefaultHeaderPainter),
+ header_painter_(base::MakeUnique<DefaultHeaderPainter>(window_style)),
avatar_icon_(nullptr),
caption_button_container_(nullptr),
fullscreen_visible_fraction_(0) {
« no previous file with comments | « ash/common/frame/header_view.h ('k') | ash/mus/frame/custom_frame_view_mus.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698