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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 | 63 |
64 // Specify the initial content bounds of the window (excluding any window | 64 // Specify the initial content bounds of the window (excluding any window |
65 // decorations). INT_MIN designates 'unspecified' for any coordinate, and | 65 // decorations). INT_MIN designates 'unspecified' for the position |
66 // should be replaced with a default value. | 66 // components, and 0 for the size components. When unspecified, they should |
| 67 // be replaced with a default value. |
67 gfx::Rect bounds; | 68 gfx::Rect bounds; |
68 | 69 |
69 gfx::Size minimum_size; | 70 gfx::Size minimum_size; |
70 gfx::Size maximum_size; | 71 gfx::Size maximum_size; |
71 | 72 |
72 std::string window_key; | 73 std::string window_key; |
73 | 74 |
74 // The process ID of the process that requested the create. | 75 // The process ID of the process that requested the create. |
75 int32 creator_process_id; | 76 int32 creator_process_id; |
76 | 77 |
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
245 GURL app_icon_url_; | 246 GURL app_icon_url_; |
246 | 247 |
247 scoped_ptr<NativeAppWindow> native_app_window_; | 248 scoped_ptr<NativeAppWindow> native_app_window_; |
248 | 249 |
249 base::WeakPtrFactory<ShellWindow> weak_ptr_factory_; | 250 base::WeakPtrFactory<ShellWindow> weak_ptr_factory_; |
250 | 251 |
251 DISALLOW_COPY_AND_ASSIGN(ShellWindow); | 252 DISALLOW_COPY_AND_ASSIGN(ShellWindow); |
252 }; | 253 }; |
253 | 254 |
254 #endif // CHROME_BROWSER_UI_EXTENSIONS_SHELL_WINDOW_H_ | 255 #endif // CHROME_BROWSER_UI_EXTENSIONS_SHELL_WINDOW_H_ |
OLD | NEW |