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

Unified Diff: apps/app_window.cc

Issue 166443004: Add frame color option to packaged app windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 10 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 | « apps/app_window.h ('k') | apps/ui/native_app_window.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: apps/app_window.cc
diff --git a/apps/app_window.cc b/apps/app_window.cc
index 99198b0c248b3a519c9044d0ff7e5086f61f3d69..1f0c945edec5a6eb234ceefeb2d40c7c2a35fc0e 100644
--- a/apps/app_window.cc
+++ b/apps/app_window.cc
@@ -123,6 +123,7 @@ void AppWindow::SizeConstraints::set_maximum_size(const gfx::Size& max_size) {
AppWindow::CreateParams::CreateParams()
: window_type(AppWindow::WINDOW_TYPE_DEFAULT),
frame(AppWindow::FRAME_CHROME),
+ has_frame_color(false),
transparent_background(false),
bounds(INT_MIN, INT_MIN, 0, 0),
creator_process_id(0),
@@ -610,6 +611,8 @@ void AppWindow::GetSerializedState(base::DictionaryValue* properties) const {
boundsValue->SetInteger("width", bounds.width());
boundsValue->SetInteger("height", bounds.height());
properties->Set("bounds", boundsValue.release());
+ properties->SetBoolean("hasFrameColor", native_app_window_->HasFrameColor());
+ properties->SetInteger("frameColor", native_app_window_->FrameColor());
const SizeConstraints& constraints = size_constraints();
gfx::Size min_size = constraints.GetMinimumSize();
« no previous file with comments | « apps/app_window.h ('k') | apps/ui/native_app_window.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698