| 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 CONTENT_PUBLIC_COMMON_WINDOW_CONTAINER_TYPE_H_ | 5 #ifndef CONTENT_PUBLIC_COMMON_WINDOW_CONTAINER_TYPE_H_ |
| 6 #define CONTENT_PUBLIC_COMMON_WINDOW_CONTAINER_TYPE_H_ | 6 #define CONTENT_PUBLIC_COMMON_WINDOW_CONTAINER_TYPE_H_ |
| 7 | 7 |
| 8 namespace blink { | 8 namespace blink { |
| 9 | 9 |
| 10 struct WebWindowFeatures; | 10 struct WebWindowFeatures; |
| 11 | 11 |
| 12 } | 12 } |
| 13 | 13 |
| 14 // "Container" types which can be requested via the window.open feature | 14 // "Container" types which can be requested via the window.open feature |
| 15 // string. | 15 // string. |
| 16 enum WindowContainerType { | 16 enum WindowContainerType { |
| 17 // A window shown in popup or tab. | 17 // A window shown in popup or tab. |
| 18 WINDOW_CONTAINER_TYPE_NORMAL = 0, | 18 WINDOW_CONTAINER_TYPE_NORMAL = 0, |
| 19 | 19 |
| 20 // A window run as a hidden "background" page. | 20 // A window run as a hidden "background" page. |
| 21 WINDOW_CONTAINER_TYPE_BACKGROUND, | 21 WINDOW_CONTAINER_TYPE_BACKGROUND, |
| 22 | 22 |
| 23 // A window run as a hidden "background" page that wishes to be started | 23 // A window run as a hidden "background" page that wishes to be started |
| 24 // upon browser launch and run beyond the lifetime of the pages that | 24 // upon browser launch and run beyond the lifetime of the pages that |
| 25 // reference it. | 25 // reference it. |
| 26 WINDOW_CONTAINER_TYPE_PERSISTENT, | 26 WINDOW_CONTAINER_TYPE_PERSISTENT, |
| 27 | 27 |
| 28 WINDOW_CONTAINER_TYPE_MAX_VALUE | 28 WINDOW_CONTAINER_TYPE_MAX_VALUE = WINDOW_CONTAINER_TYPE_PERSISTENT, |
| 29 }; | 29 }; |
| 30 | 30 |
| 31 // Conversion function: | 31 // Conversion function: |
| 32 WindowContainerType WindowFeaturesToContainerType( | 32 WindowContainerType WindowFeaturesToContainerType( |
| 33 const blink::WebWindowFeatures& window_features); | 33 const blink::WebWindowFeatures& window_features); |
| 34 | 34 |
| 35 #endif // CONTENT_PUBLIC_COMMON_WINDOW_CONTAINER_TYPE_H_ | 35 #endif // CONTENT_PUBLIC_COMMON_WINDOW_CONTAINER_TYPE_H_ |
| OLD | NEW |