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

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

Issue 286973009: Revert 270925 "Tweaks to ViewManager:" (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: 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
Index: trunk/src/mojo/services/view_manager/type_converters.cc
===================================================================
--- trunk/src/mojo/services/view_manager/type_converters.cc (revision 270932)
+++ trunk/src/mojo/services/view_manager/type_converters.cc (working copy)
@@ -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, 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 | « trunk/src/mojo/services/view_manager/type_converters.h ('k') | trunk/src/mojo/services/view_manager/view_manager_connection.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698