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 #ifndef SKY_VIEWER_INTERNALS_H_ | 5 #ifndef SKY_VIEWER_INTERNALS_H_ |
6 #define SKY_VIEWER_INTERNALS_H_ | 6 #define SKY_VIEWER_INTERNALS_H_ |
7 | 7 |
8 #include "base/memory/weak_ptr.h" | 8 #include "base/memory/weak_ptr.h" |
9 #include "base/supports_user_data.h" | 9 #include "base/supports_user_data.h" |
10 #include "dart/runtime/include/dart_api.h" | 10 #include "dart/runtime/include/dart_api.h" |
(...skipping 17 matching lines...) Expand all Loading... |
28 mojo::ServiceProviderPtr exposed_services) override; | 28 mojo::ServiceProviderPtr exposed_services) override; |
29 | 29 |
30 std::string RenderTreeAsText(); | 30 std::string RenderTreeAsText(); |
31 std::string ContentAsText(); | 31 std::string ContentAsText(); |
32 void NotifyTestComplete(const std::string& test_result); | 32 void NotifyTestComplete(const std::string& test_result); |
33 | 33 |
34 mojo::Handle TakeShellProxyHandle(); | 34 mojo::Handle TakeShellProxyHandle(); |
35 mojo::Handle TakeServicesProvidedToEmbedder(); | 35 mojo::Handle TakeServicesProvidedToEmbedder(); |
36 mojo::Handle TakeServicesProvidedByEmbedder(); | 36 mojo::Handle TakeServicesProvidedByEmbedder(); |
37 | 37 |
38 mojo::Handle ConnectToService( | |
39 const std::string& application_url, const std::string& interface_name); | |
40 | |
41 void pauseAnimations(double pauseTime); | 38 void pauseAnimations(double pauseTime); |
42 | 39 |
43 private: | 40 private: |
44 explicit Internals(DocumentView* document_view); | 41 explicit Internals(DocumentView* document_view); |
45 | 42 |
46 base::WeakPtr<DocumentView> document_view_; | 43 base::WeakPtr<DocumentView> document_view_; |
47 mojo::Binding<mojo::Shell> shell_binding_; | 44 mojo::Binding<mojo::Shell> shell_binding_; |
48 TestHarnessPtr test_harness_; | 45 TestHarnessPtr test_harness_; |
49 | 46 |
50 MOJO_DISALLOW_COPY_AND_ASSIGN(Internals); | 47 MOJO_DISALLOW_COPY_AND_ASSIGN(Internals); |
51 }; | 48 }; |
52 | 49 |
53 } // namespace sky | 50 } // namespace sky |
54 | 51 |
55 #endif // SKY_VIEWER_INTERNALS_H_ | 52 #endif // SKY_VIEWER_INTERNALS_H_ |
OLD | NEW |