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

Unified Diff: ash/frame/custom_frame_view_ash.cc

Issue 664443002: Support chrome app frame colors on ChromeOS. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update comment Created 6 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/frame/custom_frame_view_ash.h ('k') | ash/frame/default_header_painter.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/frame/custom_frame_view_ash.cc
diff --git a/ash/frame/custom_frame_view_ash.cc b/ash/frame/custom_frame_view_ash.cc
index e4211e6d50f49adae759156acb3db423a655420e..8f0781db4c4d129d647740eba75689e4717900b2 100644
--- a/ash/frame/custom_frame_view_ash.cc
+++ b/ash/frame/custom_frame_view_ash.cc
@@ -153,6 +153,8 @@ class CustomFrameViewAsh::HeaderView
void SizeConstraintsChanged();
+ void SetFrameColors(SkColor active_frame_color, SkColor inactive_frame_color);
+
// views::View:
virtual void Layout() override;
virtual void OnPaint(gfx::Canvas* canvas) override;
@@ -271,6 +273,11 @@ void CustomFrameViewAsh::HeaderView::SizeConstraintsChanged() {
Layout();
}
+void CustomFrameViewAsh::HeaderView::SetFrameColors(
+ SkColor active_frame_color, SkColor inactive_frame_color) {
+ header_painter_->SetFrameColors(active_frame_color, inactive_frame_color);
+}
+
///////////////////////////////////////////////////////////////////////////////
// CustomFrameViewAsh::HeaderView, views::View overrides:
@@ -453,6 +460,11 @@ void CustomFrameViewAsh::InitImmersiveFullscreenControllerForView(
immersive_fullscreen_controller->Init(header_view_, frame_, header_view_);
}
+void CustomFrameViewAsh::SetFrameColors(SkColor active_frame_color,
+ SkColor inactive_frame_color) {
+ header_view_->SetFrameColors(active_frame_color, inactive_frame_color);
+}
+
////////////////////////////////////////////////////////////////////////////////
// CustomFrameViewAsh, views::NonClientFrameView overrides:
« no previous file with comments | « ash/frame/custom_frame_view_ash.h ('k') | ash/frame/default_header_painter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698