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 "gin/handle.h" | 9 #include "gin/handle.h" |
10 #include "gin/object_template_builder.h" | 10 #include "gin/object_template_builder.h" |
(...skipping 11 matching lines...) Expand all Loading... |
22 virtual ~Internals(); | 22 virtual ~Internals(); |
23 | 23 |
24 virtual gin::ObjectTemplateBuilder GetObjectTemplateBuilder( | 24 virtual gin::ObjectTemplateBuilder GetObjectTemplateBuilder( |
25 v8::Isolate* isolate) override; | 25 v8::Isolate* isolate) override; |
26 | 26 |
27 private: | 27 private: |
28 explicit Internals(DocumentView* document_view); | 28 explicit Internals(DocumentView* document_view); |
29 | 29 |
30 std::string RenderTreeAsText(); | 30 std::string RenderTreeAsText(); |
31 std::string ContentAsText(); | 31 std::string ContentAsText(); |
32 std::string ContentAsMarkup(); | |
33 void NotifyTestComplete(const std::string& test_result); | 32 void NotifyTestComplete(const std::string& test_result); |
34 | 33 |
35 mojo::Handle ConnectToService( | 34 mojo::Handle ConnectToService( |
36 const std::string& application_url, const std::string& interface_name); | 35 const std::string& application_url, const std::string& interface_name); |
37 | 36 |
38 base::WeakPtr<DocumentView> document_view_; | 37 base::WeakPtr<DocumentView> document_view_; |
39 TestHarnessPtr test_harness_; | 38 TestHarnessPtr test_harness_; |
40 | 39 |
41 MOJO_DISALLOW_COPY_AND_ASSIGN(Internals); | 40 MOJO_DISALLOW_COPY_AND_ASSIGN(Internals); |
42 }; | 41 }; |
43 | 42 |
44 } // namespace sky | 43 } // namespace sky |
45 | 44 |
46 #endif // SKY_VIEWER_INTERNALS_H_ | 45 #endif // SKY_VIEWER_INTERNALS_H_ |
OLD | NEW |