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

Side by Side Diff: services/sky/internals.cc

Issue 1235093002: Move sky_viewer into services/sky (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: again Created 5 years, 5 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 | « services/sky/internals.h ('k') | services/sky/runtime_flags.h » ('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/viewer/internals.h" 5 #include "services/sky/internals.h"
6
7 #include <limits>
6 8
7 #include "mojo/public/cpp/application/connect.h" 9 #include "mojo/public/cpp/application/connect.h"
8 #include "mojo/public/cpp/bindings/array.h" 10 #include "mojo/public/cpp/bindings/array.h"
11 #include "services/sky/document_view.h"
12 #include "services/sky/runtime_flags.h"
9 #include "sky/engine/tonic/dart_builtin.h" 13 #include "sky/engine/tonic/dart_builtin.h"
10 #include "sky/engine/tonic/dart_converter.h" 14 #include "sky/engine/tonic/dart_converter.h"
11 #include "sky/engine/tonic/dart_error.h" 15 #include "sky/engine/tonic/dart_error.h"
12 #include "sky/viewer/document_view.h" 16
13 #include "sky/viewer/runtime_flags.h"
14 #include <limits>
15 17
16 using namespace blink; 18 using namespace blink;
17 19
18 namespace sky { 20 namespace sky {
19 namespace { 21 namespace {
20 22
21 int kInternalsKey = 0; 23 int kInternalsKey = 0;
22 24
23 Internals* GetInternals() { 25 Internals* GetInternals() {
24 DartState* state = DartState::Current(); 26 DartState* state = DartState::Current();
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 const mojo::String& application_url, 146 const mojo::String& application_url,
145 mojo::InterfaceRequest<mojo::ServiceProvider> services, 147 mojo::InterfaceRequest<mojo::ServiceProvider> services,
146 mojo::ServiceProviderPtr exposed_services) { 148 mojo::ServiceProviderPtr exposed_services) {
147 if (document_view_) { 149 if (document_view_) {
148 document_view_->shell()->ConnectToApplication( 150 document_view_->shell()->ConnectToApplication(
149 application_url, services.Pass(), exposed_services.Pass()); 151 application_url, services.Pass(), exposed_services.Pass());
150 } 152 }
151 } 153 }
152 154
153 } // namespace sky 155 } // namespace sky
OLDNEW
« no previous file with comments | « services/sky/internals.h ('k') | services/sky/runtime_flags.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698