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

Unified Diff: third_party/WebKit/public/web/WindowFeaturesStructTraits.cpp

Issue 2363573002: Move ViewHostMsg_CreateWindow to mojom (Closed)
Patch Set: . Created 4 years, 3 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 side-by-side diff with in-line comments
Download patch
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
« 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