Chromium Code Reviews| 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 COMPONENTS_TEST_RUNNER_TEST_RUNNER_H_ | 5 #ifndef COMPONENTS_TEST_RUNNER_TEST_RUNNER_H_ |
| 6 #define COMPONENTS_TEST_RUNNER_TEST_RUNNER_H_ | 6 #define COMPONENTS_TEST_RUNNER_TEST_RUNNER_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <deque> | 10 #include <deque> |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 79 void SetDelegate(WebTestDelegate*); | 79 void SetDelegate(WebTestDelegate*); |
| 80 void SetMainView(blink::WebView*); | 80 void SetMainView(blink::WebView*); |
| 81 | 81 |
| 82 void Reset(); | 82 void Reset(); |
| 83 | 83 |
| 84 void SetTestIsRunning(bool); | 84 void SetTestIsRunning(bool); |
| 85 bool TestIsRunning() const { return test_is_running_; } | 85 bool TestIsRunning() const { return test_is_running_; } |
| 86 | 86 |
| 87 bool UseMockTheme() const { return use_mock_theme_; } | 87 bool UseMockTheme() const { return use_mock_theme_; } |
| 88 | 88 |
| 89 blink::WebView* main_view() const { return main_view_; } | |
|
haraken
2016/12/20 02:46:21
Can you expose mainFrame() instead of main_view()?
Xiaocheng
2016/12/20 03:05:59
Will do.
Xiaocheng
2016/12/20 04:49:09
Done.
| |
| 90 | |
| 89 // WebTestRunner implementation. | 91 // WebTestRunner implementation. |
| 90 bool ShouldGeneratePixelResults() override; | 92 bool ShouldGeneratePixelResults() override; |
| 91 bool ShouldDumpAsAudio() const override; | 93 bool ShouldDumpAsAudio() const override; |
| 92 void GetAudioData(std::vector<unsigned char>* buffer_view) const override; | 94 void GetAudioData(std::vector<unsigned char>* buffer_view) const override; |
| 93 bool IsRecursiveLayoutDumpRequested() override; | 95 bool IsRecursiveLayoutDumpRequested() override; |
| 94 std::string DumpLayout(blink::WebLocalFrame* frame) override; | 96 std::string DumpLayout(blink::WebLocalFrame* frame) override; |
| 95 void DumpPixelsAsync( | 97 void DumpPixelsAsync( |
| 96 blink::WebView* web_view, | 98 blink::WebView* web_view, |
| 97 const base::Callback<void(const SkBitmap&)>& callback) override; | 99 const base::Callback<void(const SkBitmap&)>& callback) override; |
| 98 void ReplicateLayoutTestRuntimeFlagsChanges( | 100 void ReplicateLayoutTestRuntimeFlagsChanges( |
| (...skipping 559 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 658 blink::WebEffectiveConnectionType effective_connection_type_; | 660 blink::WebEffectiveConnectionType effective_connection_type_; |
| 659 | 661 |
| 660 base::WeakPtrFactory<TestRunner> weak_factory_; | 662 base::WeakPtrFactory<TestRunner> weak_factory_; |
| 661 | 663 |
| 662 DISALLOW_COPY_AND_ASSIGN(TestRunner); | 664 DISALLOW_COPY_AND_ASSIGN(TestRunner); |
| 663 }; | 665 }; |
| 664 | 666 |
| 665 } // namespace test_runner | 667 } // namespace test_runner |
| 666 | 668 |
| 667 #endif // COMPONENTS_TEST_RUNNER_TEST_RUNNER_H_ | 669 #endif // COMPONENTS_TEST_RUNNER_TEST_RUNNER_H_ |
| OLD | NEW |