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