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

Unified Diff: services/surfaces/surfaces_service_impl.cc

Issue 882083003: Remove mojo.SurfacesService interface in favor of mojo.Surface directly (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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 | « services/surfaces/surfaces_service_impl.h ('k') | services/view_manager/display_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/surfaces/surfaces_service_impl.cc
diff --git a/services/surfaces/surfaces_service_impl.cc b/services/surfaces/surfaces_service_impl.cc
deleted file mode 100644
index a3ffd783395856f07b118d25e25ef5190ac8f42e..0000000000000000000000000000000000000000
--- a/services/surfaces/surfaces_service_impl.cc
+++ /dev/null
@@ -1,31 +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 "services/surfaces/surfaces_service_impl.h"
-
-namespace surfaces {
-
-SurfacesServiceImpl::SurfacesServiceImpl(
- cc::SurfaceManager* manager,
- uint32_t* next_id_namespace,
- SurfacesImpl::Client* client,
- mojo::InterfaceRequest<mojo::SurfacesService> request)
- : manager_(manager),
- next_id_namespace_(next_id_namespace),
- client_(client),
- binding_(this, request.Pass()) {
-}
-
-SurfacesServiceImpl::~SurfacesServiceImpl() {
-}
-
-void SurfacesServiceImpl::CreateSurfaceConnection(
- const mojo::Callback<void(mojo::SurfacePtr, uint32_t)>& callback) {
- uint32_t id_namespace = (*next_id_namespace_)++;
- mojo::SurfacePtr surface;
- new SurfacesImpl(manager_, id_namespace, client_, &surface);
- callback.Run(surface.Pass(), id_namespace);
-}
-
-} // namespace surfaces
« no previous file with comments | « services/surfaces/surfaces_service_impl.h ('k') | services/view_manager/display_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698