| 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/engine/config.h" | 5 #include "sky/engine/config.h" |
| 6 #include "sky/viewer/internals.h" | 6 #include "sky/viewer/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/public/web/WebDocument.h" | 10 #include "sky/engine/public/web/WebDocument.h" |
| (...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 178 void Internals::ConnectToApplication( | 178 void Internals::ConnectToApplication( |
| 179 const mojo::String& application_url, | 179 const mojo::String& application_url, |
| 180 mojo::InterfaceRequest<mojo::ServiceProvider> services, | 180 mojo::InterfaceRequest<mojo::ServiceProvider> services, |
| 181 mojo::ServiceProviderPtr exposed_services) { | 181 mojo::ServiceProviderPtr exposed_services) { |
| 182 if (document_view_) { | 182 if (document_view_) { |
| 183 document_view_->shell()->ConnectToApplication( | 183 document_view_->shell()->ConnectToApplication( |
| 184 application_url, services.Pass(), exposed_services.Pass()); | 184 application_url, services.Pass(), exposed_services.Pass()); |
| 185 } | 185 } |
| 186 } | 186 } |
| 187 | 187 |
| 188 void Internals::pauseAnimations(double pauseTime) { | |
| 189 if (pauseTime < 0) | |
| 190 return; | |
| 191 | |
| 192 document_view_->web_view()->mainFrame()->document().pauseAnimationsForTestin
g(pauseTime); | |
| 193 } | |
| 194 | |
| 195 } // namespace sky | 188 } // namespace sky |
| OLD | NEW |