summaryrefslogtreecommitdiff
path: root/chromium/content/public/renderer/window_features_converter.h
blob: 45c620b1e3b925fcab4426e874e6670b4cbe4a87 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Copyright 2017 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_RENDERER_WINDOW_FEATURES_CONVERTER_H_
#define CONTENT_PUBLIC_RENDERER_WINDOW_FEATURES_CONVERTER_H_

#include "content/common/content_export.h"
#include "third_party/WebKit/public/web/WebWindowFeatures.h"
#include "third_party/WebKit/public/web/window_features.mojom.h"

namespace content {

CONTENT_EXPORT blink::mojom::WindowFeaturesPtr
ConvertWebWindowFeaturesToMojoWindowFeatures(
    const blink::WebWindowFeatures& web_window_features);

CONTENT_EXPORT blink::WebWindowFeatures
ConvertMojoWindowFeaturesToWebWindowFeatures(
    const blink::mojom::WindowFeatures& window_features);

}  // namespace content

#endif  // CONTENT_PUBLIC_RENDERER_WINDOW_FEATURES_CONVERTER_H_