OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 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 #include "third_party/WebKit/public/web/WindowFeaturesStructTraits.h" |
| 6 |
| 7 namespace mojo { |
| 8 |
| 9 // static |
| 10 bool |
| 11 StructTraits<::blink::mojom::WindowFeaturesDataView, ::blink::WebWindowFeatures>
::Read( |
| 12 ::blink::mojom::WindowFeaturesDataView data, |
| 13 ::blink::WebWindowFeatures* out) |
| 14 { |
| 15 out->x = data.x(); |
| 16 out->xSet = data.has_x(); |
| 17 out->y = data.y(); |
| 18 out->ySet = data.has_y(); |
| 19 out->width = data.width(); |
| 20 out->widthSet = data.has_width(); |
| 21 out->height = data.height(); |
| 22 out->heightSet = data.has_height(); |
| 23 out->menuBarVisible = data.menu_bar_visible(); |
| 24 out->statusBarVisible = data.status_bar_visible(); |
| 25 out->toolBarVisible = data.tool_bar_visible(); |
| 26 out->locationBarVisible = data.location_bar_visible(); |
| 27 out->scrollbarsVisible = data.scrollbars_visible(); |
| 28 out->resizable = data.resizable(); |
| 29 out->fullscreen = data.fullscreen(); |
| 30 out->dialog = data.dialog(); |
| 31 return true; |
| 32 } |
| 33 |
| 34 } // namespace mojo |
OLD | NEW |