| Index: third_party/WebKit/public/web/WindowFeaturesStructTraits.cpp
|
| diff --git a/third_party/WebKit/public/web/WindowFeaturesStructTraits.cpp b/third_party/WebKit/public/web/WindowFeaturesStructTraits.cpp
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..64d9fab2569ae837d3cccef73dea71c9ddbb7103
|
| --- /dev/null
|
| +++ b/third_party/WebKit/public/web/WindowFeaturesStructTraits.cpp
|
| @@ -0,0 +1,34 @@
|
| +// Copyright 2016 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.
|
| +
|
| +#include "third_party/WebKit/public/web/WindowFeaturesStructTraits.h"
|
| +
|
| +namespace mojo {
|
| +
|
| +// static
|
| +bool
|
| +StructTraits<::blink::mojom::WindowFeaturesDataView, ::blink::WebWindowFeatures>::Read(
|
| + ::blink::mojom::WindowFeaturesDataView data,
|
| + ::blink::WebWindowFeatures* out)
|
| +{
|
| + out->x = data.x();
|
| + out->xSet = data.has_x();
|
| + out->y = data.y();
|
| + out->ySet = data.has_y();
|
| + out->width = data.width();
|
| + out->widthSet = data.has_width();
|
| + out->height = data.height();
|
| + out->heightSet = data.has_height();
|
| + out->menuBarVisible = data.menu_bar_visible();
|
| + out->statusBarVisible = data.status_bar_visible();
|
| + out->toolBarVisible = data.tool_bar_visible();
|
| + out->locationBarVisible = data.location_bar_visible();
|
| + out->scrollbarsVisible = data.scrollbars_visible();
|
| + out->resizable = data.resizable();
|
| + out->fullscreen = data.fullscreen();
|
| + out->dialog = data.dialog();
|
| + return true;
|
| +}
|
| +
|
| +} // namespace mojo
|
|
|