| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |