OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CHROME_BROWSER_UI_EXTENSIONS_SHELL_WINDOW_H_ | 5 #ifndef CHROME_BROWSER_UI_EXTENSIONS_SHELL_WINDOW_H_ |
6 #define CHROME_BROWSER_UI_EXTENSIONS_SHELL_WINDOW_H_ | 6 #define CHROME_BROWSER_UI_EXTENSIONS_SHELL_WINDOW_H_ |
7 | 7 |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "chrome/browser/extensions/extension_function_dispatcher.h" | 9 #include "chrome/browser/extensions/extension_function_dispatcher.h" |
10 #include "chrome/browser/extensions/extension_keybinding_registry.h" | 10 #include "chrome/browser/extensions/extension_keybinding_registry.h" |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 FRAME_CHROME, // Chrome-style window frame. | 53 FRAME_CHROME, // Chrome-style window frame. |
54 FRAME_NONE, // Frameless window. | 54 FRAME_NONE, // Frameless window. |
55 }; | 55 }; |
56 | 56 |
57 struct CreateParams { | 57 struct CreateParams { |
58 CreateParams(); | 58 CreateParams(); |
59 ~CreateParams(); | 59 ~CreateParams(); |
60 | 60 |
61 WindowType window_type; | 61 WindowType window_type; |
62 Frame frame; | 62 Frame frame; |
| 63 bool transparent_background; // Only supported on ash. |
63 | 64 |
64 // Specify the initial content bounds of the window (excluding any window | 65 // Specify the initial content bounds of the window (excluding any window |
65 // decorations). INT_MIN designates 'unspecified' for the position | 66 // decorations). INT_MIN designates 'unspecified' for the position |
66 // components, and 0 for the size components. When unspecified, they should | 67 // components, and 0 for the size components. When unspecified, they should |
67 // be replaced with a default value. | 68 // be replaced with a default value. |
68 gfx::Rect bounds; | 69 gfx::Rect bounds; |
69 | 70 |
70 gfx::Size minimum_size; | 71 gfx::Size minimum_size; |
71 gfx::Size maximum_size; | 72 gfx::Size maximum_size; |
72 | 73 |
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
246 GURL app_icon_url_; | 247 GURL app_icon_url_; |
247 | 248 |
248 scoped_ptr<NativeAppWindow> native_app_window_; | 249 scoped_ptr<NativeAppWindow> native_app_window_; |
249 | 250 |
250 base::WeakPtrFactory<ShellWindow> weak_ptr_factory_; | 251 base::WeakPtrFactory<ShellWindow> weak_ptr_factory_; |
251 | 252 |
252 DISALLOW_COPY_AND_ASSIGN(ShellWindow); | 253 DISALLOW_COPY_AND_ASSIGN(ShellWindow); |
253 }; | 254 }; |
254 | 255 |
255 #endif // CHROME_BROWSER_UI_EXTENSIONS_SHELL_WINDOW_H_ | 256 #endif // CHROME_BROWSER_UI_EXTENSIONS_SHELL_WINDOW_H_ |
OLD | NEW |