OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_SHELL_WINDOW_H_ | 5 #ifndef APPS_SHELL_WINDOW_H_ |
6 #define APPS_SHELL_WINDOW_H_ | 6 #define APPS_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_icon_image.h" | 10 #include "chrome/browser/extensions/extension_icon_image.h" |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 ui::WindowShowState state; | 116 ui::WindowShowState state; |
117 | 117 |
118 // If true, don't show the window after creation. | 118 // If true, don't show the window after creation. |
119 bool hidden; | 119 bool hidden; |
120 | 120 |
121 // If true, the window will be resizable by the user. Defaults to true. | 121 // If true, the window will be resizable by the user. Defaults to true. |
122 bool resizable; | 122 bool resizable; |
123 | 123 |
124 // If true, the window will be focused on creation. Defaults to true. | 124 // If true, the window will be focused on creation. Defaults to true. |
125 bool focused; | 125 bool focused; |
| 126 |
| 127 // If true, the window will stay on top of other windows that are not |
| 128 // configured to be always on top. Defaults to false. |
| 129 bool always_on_top; |
126 }; | 130 }; |
127 | 131 |
128 class Delegate { | 132 class Delegate { |
129 public: | 133 public: |
130 virtual ~Delegate(); | 134 virtual ~Delegate(); |
131 | 135 |
132 // General initialization. | 136 // General initialization. |
133 virtual void InitWebContents(content::WebContents* web_contents) = 0; | 137 virtual void InitWebContents(content::WebContents* web_contents) = 0; |
134 virtual NativeAppWindow* CreateNativeAppWindow( | 138 virtual NativeAppWindow* CreateNativeAppWindow( |
135 ShellWindow* window, | 139 ShellWindow* window, |
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
381 | 385 |
382 // The window content is visible. | 386 // The window content is visible. |
383 bool is_content_visible_; | 387 bool is_content_visible_; |
384 | 388 |
385 DISALLOW_COPY_AND_ASSIGN(ShellWindow); | 389 DISALLOW_COPY_AND_ASSIGN(ShellWindow); |
386 }; | 390 }; |
387 | 391 |
388 } // namespace apps | 392 } // namespace apps |
389 | 393 |
390 #endif // APPS_SHELL_WINDOW_H_ | 394 #endif // APPS_SHELL_WINDOW_H_ |
OLD | NEW |