Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(375)

Side by Side Diff: third_party/WebKit/public/web/WindowFeaturesStructTraits.cpp

Issue 2363573002: Move ViewHostMsg_CreateWindow to mojom (Closed)
Patch Set: . Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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
OLDNEW
« no previous file with comments | « third_party/WebKit/public/web/WindowFeaturesStructTraits.h ('k') | third_party/WebKit/public/web/window_features.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698