Chromium Code Reviews| 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 "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
| 10 #include "chrome/browser/extensions/extension_keybinding_registry.h" | 10 #include "chrome/browser/extensions/extension_keybinding_registry.h" |
| 11 #include "chrome/browser/sessions/session_id.h" | 11 #include "chrome/browser/sessions/session_id.h" |
| 12 #include "chrome/browser/ui/base_window.h" | 12 #include "chrome/browser/ui/base_window.h" |
| 13 #include "chrome/browser/ui/web_contents_modal_dialog_manager_delegate.h" | 13 #include "chrome/browser/ui/web_contents_modal_dialog_manager_delegate.h" |
| 14 #include "content/public/browser/notification_observer.h" | 14 #include "content/public/browser/notification_observer.h" |
| 15 #include "content/public/browser/notification_registrar.h" | 15 #include "content/public/browser/notification_registrar.h" |
| 16 #include "content/public/browser/web_contents_delegate.h" | 16 #include "content/public/browser/web_contents_delegate.h" |
| 17 #include "content/public/common/console_message_level.h" | 17 #include "content/public/common/console_message_level.h" |
| 18 #include "ui/base/ui_base_types.h" // WindowShowState | |
|
flackr
2013/04/26 03:44:38
However helpful, commenting what you use from the
stevenjb
2013/04/26 16:12:17
We don't do this a huge amount, but there is some
| |
| 18 #include "ui/gfx/image/image.h" | 19 #include "ui/gfx/image/image.h" |
| 19 #include "ui/gfx/rect.h" | 20 #include "ui/gfx/rect.h" |
| 20 | 21 |
| 21 class GURL; | 22 class GURL; |
| 22 class Profile; | 23 class Profile; |
| 23 class NativeAppWindow; | 24 class NativeAppWindow; |
| 24 | 25 |
| 25 namespace content { | 26 namespace content { |
| 26 class WebContents; | 27 class WebContents; |
| 27 } | 28 } |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 95 gfx::Rect bounds; | 96 gfx::Rect bounds; |
| 96 | 97 |
| 97 gfx::Size minimum_size; | 98 gfx::Size minimum_size; |
| 98 gfx::Size maximum_size; | 99 gfx::Size maximum_size; |
| 99 | 100 |
| 100 std::string window_key; | 101 std::string window_key; |
| 101 | 102 |
| 102 // The process ID of the process that requested the create. | 103 // The process ID of the process that requested the create. |
| 103 int32 creator_process_id; | 104 int32 creator_process_id; |
| 104 | 105 |
| 105 enum State { | |
| 106 STATE_NORMAL, | |
| 107 STATE_FULLSCREEN, | |
| 108 STATE_MAXIMIZED, | |
| 109 STATE_MINIMIZED | |
| 110 }; | |
| 111 | |
| 112 // Initial state of the window. | 106 // Initial state of the window. |
| 113 State state; | 107 ui::WindowShowState state; |
| 114 | 108 |
| 115 // If true, don't show the window after creation. | 109 // If true, don't show the window after creation. |
| 116 bool hidden; | 110 bool hidden; |
| 117 | 111 |
| 118 // If true, the window will be resizable by the user. Defaults to true. | 112 // If true, the window will be resizable by the user. Defaults to true. |
| 119 bool resizable; | 113 bool resizable; |
| 120 | 114 |
| 121 // If true, the window will be focused on creation. Defaults to true. | 115 // If true, the window will be focused on creation. Defaults to true. |
| 122 bool focused; | 116 bool focused; |
| 123 }; | 117 }; |
| (...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 304 | 298 |
| 305 // Fullscreen entered by app.window api. | 299 // Fullscreen entered by app.window api. |
| 306 bool fullscreen_for_window_api_; | 300 bool fullscreen_for_window_api_; |
| 307 // Fullscreen entered by HTML requestFullscreen. | 301 // Fullscreen entered by HTML requestFullscreen. |
| 308 bool fullscreen_for_tab_; | 302 bool fullscreen_for_tab_; |
| 309 | 303 |
| 310 DISALLOW_COPY_AND_ASSIGN(ShellWindow); | 304 DISALLOW_COPY_AND_ASSIGN(ShellWindow); |
| 311 }; | 305 }; |
| 312 | 306 |
| 313 #endif // CHROME_BROWSER_UI_EXTENSIONS_SHELL_WINDOW_H_ | 307 #endif // CHROME_BROWSER_UI_EXTENSIONS_SHELL_WINDOW_H_ |
| OLD | NEW |