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