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

Unified Diff: mojo/services/view_manager/type_converters.cc

Issue 296003003: First step at setroots (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: comment Created 6 years, 7 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
« no previous file with comments | « mojo/services/view_manager/type_converters.h ('k') | mojo/services/view_manager/view_manager_connection.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/services/view_manager/type_converters.cc
diff --git a/mojo/services/view_manager/type_converters.cc b/mojo/services/view_manager/type_converters.cc
deleted file mode 100644
index 8f4c98c21794d495dbf524463ba44192568fd759..0000000000000000000000000000000000000000
--- a/mojo/services/view_manager/type_converters.cc
+++ /dev/null
@@ -1,34 +0,0 @@
-// Copyright 2014 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 "mojo/services/view_manager/type_converters.h"
-
-#include "mojo/public/cpp/bindings/buffer.h"
-#include "mojo/services/public/interfaces/view_manager/view_manager.mojom.h"
-#include "mojo/services/view_manager/ids.h"
-#include "mojo/services/view_manager/node.h"
-#include "mojo/services/view_manager/view.h"
-
-using mojo::view_manager::INode;
-using mojo::view_manager::service::Node;
-using mojo::view_manager::service::NodeId;
-using mojo::view_manager::service::ViewId;
-
-namespace mojo {
-
-// static
-INode TypeConverter<INode, const Node*>::ConvertFrom(const Node* node,
- Buffer* buf) {
- DCHECK(node);
-
- INode::Builder builder(buf);
- const Node* parent = node->GetParent();
- builder.set_parent_id(NodeIdToTransportId(parent ? parent->id() : NodeId()));
- builder.set_node_id(NodeIdToTransportId(node->id()));
- builder.set_view_id(ViewIdToTransportId(
- node->view() ? node->view()->id() : ViewId()));
- return builder.Finish();
-}
-
-} // namespace mojo
« no previous file with comments | « mojo/services/view_manager/type_converters.h ('k') | mojo/services/view_manager/view_manager_connection.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698