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

Side by Side Diff: sky/shell/ui/internals.cc

Issue 1118843003: Remove some InterfacePtr<> methods which directly deal with message pipe handles. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 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 unified diff | Download patch
« no previous file with comments | « sky/shell/ui/engine.cc ('k') | sky/viewer/document_view.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "sky/engine/config.h" 5 #include "sky/engine/config.h"
6 #include "sky/shell/ui/internals.h" 6 #include "sky/shell/ui/internals.h"
7 7
8 #include "mojo/public/cpp/application/connect.h" 8 #include "mojo/public/cpp/application/connect.h"
9 #include "mojo/public/cpp/bindings/array.h" 9 #include "mojo/public/cpp/bindings/array.h"
10 #include "sky/engine/tonic/dart_builtin.h" 10 #include "sky/engine/tonic/dart_builtin.h"
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 } 70 }
71 71
72 Internals::Internals(mojo::ServiceProviderPtr service_provider) 72 Internals::Internals(mojo::ServiceProviderPtr service_provider)
73 : service_provider_(service_provider.Pass()) { 73 : service_provider_(service_provider.Pass()) {
74 } 74 }
75 75
76 Internals::~Internals() { 76 Internals::~Internals() {
77 } 77 }
78 78
79 mojo::Handle Internals::TakeServicesProvidedByEmbedder() { 79 mojo::Handle Internals::TakeServicesProvidedByEmbedder() {
80 return service_provider_.PassMessagePipe().release(); 80 return service_provider_.PassInterface().PassHandle().release();
81 } 81 }
82 82
83 } // namespace shell 83 } // namespace shell
84 } // namespace sky 84 } // namespace sky
OLDNEW
« no previous file with comments | « sky/shell/ui/engine.cc ('k') | sky/viewer/document_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698