blob: 3c9e728f959bf5a1c0b22e2ffc0608ffed118259 [file] [log] [blame]
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CONTENT_PUBLIC_COMMON_WINDOW_CONTAINER_TYPE_H_
#define CONTENT_PUBLIC_COMMON_WINDOW_CONTAINER_TYPE_H_
namespace blink {
struct WebWindowFeatures;
}
// "Container" types which can be requested via the window.open feature
// string.
enum WindowContainerType {
// A window shown in popup or tab.
WINDOW_CONTAINER_TYPE_NORMAL = 0,
// A window run as a hidden "background" page.
WINDOW_CONTAINER_TYPE_BACKGROUND,
// A window run as a hidden "background" page that wishes to be started
// upon browser launch and run beyond the lifetime of the pages that
// reference it.
WINDOW_CONTAINER_TYPE_PERSISTENT,
WINDOW_CONTAINER_TYPE_MAX_VALUE = WINDOW_CONTAINER_TYPE_PERSISTENT,
};
// Conversion function:
WindowContainerType WindowFeaturesToContainerType(
const blink::WebWindowFeatures& window_features);
#endif // CONTENT_PUBLIC_COMMON_WINDOW_CONTAINER_TYPE_H_