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

Side by Side Diff: mojo/services/view_manager/cpp/lib/view_manager_context.cc

Issue 1391243003: Move //mojo/services/X/public/... to //mojo/services/X/... (part 4). (Closed) Base URL: https://github.com/domokit/mojo.git@no_public_3-x-no_public_2-x-no_public_1
Patch Set: copyright header Created 5 years, 2 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
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 "view_manager/public/cpp/view_manager_context.h" 5 #include "view_manager/cpp/view_manager_context.h"
6 6
7 #include "mojo/public/cpp/application/application_impl.h" 7 #include "mojo/public/cpp/application/application_impl.h"
8 #include "mojo/public/cpp/bindings/interface_request.h" 8 #include "mojo/public/cpp/bindings/interface_request.h"
9 #include "window_manager/public/interfaces/window_manager.mojom.h" 9 #include "window_manager/interfaces/window_manager.mojom.h"
10 10
11 namespace mojo { 11 namespace mojo {
12 class ApplicationImpl; 12 class ApplicationImpl;
13 13
14 class ViewManagerContext::InternalState { 14 class ViewManagerContext::InternalState {
15 public: 15 public:
16 explicit InternalState(ApplicationImpl* application_impl) { 16 explicit InternalState(ApplicationImpl* application_impl) {
17 application_impl->ConnectToService("mojo:window_manager", &wm_); 17 application_impl->ConnectToService("mojo:window_manager", &wm_);
18 } 18 }
19 ~InternalState() {} 19 ~InternalState() {}
(...skipping 16 matching lines...) Expand all
36 Embed(url, nullptr, nullptr); 36 Embed(url, nullptr, nullptr);
37 } 37 }
38 38
39 void ViewManagerContext::Embed(const String& url, 39 void ViewManagerContext::Embed(const String& url,
40 InterfaceRequest<ServiceProvider> services, 40 InterfaceRequest<ServiceProvider> services,
41 ServiceProviderPtr exposed_services) { 41 ServiceProviderPtr exposed_services) {
42 state_->wm()->Embed(url, services.Pass(), exposed_services.Pass()); 42 state_->wm()->Embed(url, services.Pass(), exposed_services.Pass());
43 } 43 }
44 44
45 } // namespace mojo 45 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/services/view_manager/cpp/lib/view_manager_client_impl.cc ('k') | mojo/services/view_manager/cpp/lib/view_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698