OLD | NEW |
| (Empty) |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CHROME_COMMON_WINDOW_CONTAINER_TYPE_H_ | |
6 #define CHROME_COMMON_WINDOW_CONTAINER_TYPE_H_ | |
7 #pragma once | |
8 | |
9 namespace WebKit { | |
10 | |
11 struct WebWindowFeatures; | |
12 | |
13 } | |
14 | |
15 // "Container" types which can be requested via the window.open feature | |
16 // string. | |
17 enum WindowContainerType { | |
18 // A window shown in popup or tab. | |
19 WINDOW_CONTAINER_TYPE_NORMAL = 0, | |
20 | |
21 // A window run as a hidden "background" page. | |
22 WINDOW_CONTAINER_TYPE_BACKGROUND, | |
23 | |
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 | |
26 // reference it. | |
27 WINDOW_CONTAINER_TYPE_PERSISTENT, | |
28 | |
29 WINDOW_CONTAINER_TYPE_MAX_VALUE | |
30 }; | |
31 | |
32 // Conversion function: | |
33 WindowContainerType WindowFeaturesToContainerType( | |
34 const WebKit::WebWindowFeatures& window_features); | |
35 | |
36 #endif // CHROME_COMMON_WINDOW_CONTAINER_TYPE_H_ | |
OLD | NEW |