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

Side by Side Diff: apps/app_window.h

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 unified diff | Download patch
« no previous file with comments | « no previous file | apps/app_window.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef APPS_APP_WINDOW_H_ 5 #ifndef APPS_APP_WINDOW_H_
6 #define APPS_APP_WINDOW_H_ 6 #define APPS_APP_WINDOW_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "chrome/browser/extensions/extension_icon_image.h" 10 #include "chrome/browser/extensions/extension_icon_image.h"
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 gfx::Size minimum_size_; 150 gfx::Size minimum_size_;
151 gfx::Size maximum_size_; 151 gfx::Size maximum_size_;
152 }; 152 };
153 153
154 struct CreateParams { 154 struct CreateParams {
155 CreateParams(); 155 CreateParams();
156 ~CreateParams(); 156 ~CreateParams();
157 157
158 WindowType window_type; 158 WindowType window_type;
159 Frame frame; 159 Frame frame;
160
161 bool has_frame_color;
162 SkColor frame_color;
160 bool transparent_background; // Only supported on ash. 163 bool transparent_background; // Only supported on ash.
161 164
162 // Specify the initial content bounds of the window (excluding any window 165 // Specify the initial content bounds of the window (excluding any window
163 // decorations). INT_MIN designates 'unspecified' for the position 166 // decorations). INT_MIN designates 'unspecified' for the position
164 // components, and 0 for the size components. When unspecified, they should 167 // components, and 0 for the size components. When unspecified, they should
165 // be replaced with a default value. 168 // be replaced with a default value.
166 gfx::Rect bounds; 169 gfx::Rect bounds;
167 170
168 gfx::Size minimum_size; 171 gfx::Size minimum_size;
169 gfx::Size maximum_size; 172 gfx::Size maximum_size;
(...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after
545 // reinstated when the window exits fullscreen and moves away from the 548 // reinstated when the window exits fullscreen and moves away from the
546 // taskbar. 549 // taskbar.
547 bool cached_always_on_top_; 550 bool cached_always_on_top_;
548 551
549 DISALLOW_COPY_AND_ASSIGN(AppWindow); 552 DISALLOW_COPY_AND_ASSIGN(AppWindow);
550 }; 553 };
551 554
552 } // namespace apps 555 } // namespace apps
553 556
554 #endif // APPS_APP_WINDOW_H_ 557 #endif // APPS_APP_WINDOW_H_
OLDNEW
« no previous file with comments | « no previous file | apps/app_window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698