OLD | NEW |
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 EXTENSIONS_BROWSER_APP_WINDOW_APP_WINDOW_H_ | 5 #ifndef EXTENSIONS_BROWSER_APP_WINDOW_APP_WINDOW_H_ |
6 #define EXTENSIONS_BROWSER_APP_WINDOW_APP_WINDOW_H_ | 6 #define EXTENSIONS_BROWSER_APP_WINDOW_APP_WINDOW_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
173 // If true, the window will be resizable by the user. Defaults to true. | 173 // If true, the window will be resizable by the user. Defaults to true. |
174 bool resizable; | 174 bool resizable; |
175 | 175 |
176 // If true, the window will be focused on creation. Defaults to true. | 176 // If true, the window will be focused on creation. Defaults to true. |
177 bool focused; | 177 bool focused; |
178 | 178 |
179 // If true, the window will stay on top of other windows that are not | 179 // If true, the window will stay on top of other windows that are not |
180 // configured to be always on top. Defaults to false. | 180 // configured to be always on top. Defaults to false. |
181 bool always_on_top; | 181 bool always_on_top; |
182 | 182 |
| 183 // If true, the window will be visible on all workspaces. Defaults to false. |
| 184 bool visible_on_all_workspaces; |
| 185 |
183 // The API enables developers to specify content or window bounds. This | 186 // The API enables developers to specify content or window bounds. This |
184 // function combines them into a single, constrained window size. | 187 // function combines them into a single, constrained window size. |
185 gfx::Rect GetInitialWindowBounds(const gfx::Insets& frame_insets) const; | 188 gfx::Rect GetInitialWindowBounds(const gfx::Insets& frame_insets) const; |
186 | 189 |
187 // The API enables developers to specify content or window size constraints. | 190 // The API enables developers to specify content or window size constraints. |
188 // These functions combine them so that we can work with one set of | 191 // These functions combine them so that we can work with one set of |
189 // constraints. | 192 // constraints. |
190 gfx::Size GetContentMinimumSize(const gfx::Insets& frame_insets) const; | 193 gfx::Size GetContentMinimumSize(const gfx::Insets& frame_insets) const; |
191 gfx::Size GetContentMaximumSize(const gfx::Insets& frame_insets) const; | 194 gfx::Size GetContentMaximumSize(const gfx::Insets& frame_insets) const; |
192 gfx::Size GetWindowMinimumSize(const gfx::Insets& frame_insets) const; | 195 gfx::Size GetWindowMinimumSize(const gfx::Insets& frame_insets) const; |
(...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
546 | 549 |
547 // Whether |alpha_enabled| was set in the CreateParams. | 550 // Whether |alpha_enabled| was set in the CreateParams. |
548 bool requested_alpha_enabled_; | 551 bool requested_alpha_enabled_; |
549 | 552 |
550 DISALLOW_COPY_AND_ASSIGN(AppWindow); | 553 DISALLOW_COPY_AND_ASSIGN(AppWindow); |
551 }; | 554 }; |
552 | 555 |
553 } // namespace extensions | 556 } // namespace extensions |
554 | 557 |
555 #endif // EXTENSIONS_BROWSER_APP_WINDOW_APP_WINDOW_H_ | 558 #endif // EXTENSIONS_BROWSER_APP_WINDOW_APP_WINDOW_H_ |
OLD | NEW |