| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_FOR_SPECIFIC_VIEW_H_ | 5 #ifndef COMPONENTS_TEST_RUNNER_TEST_RUNNER_FOR_SPECIFIC_VIEW_H_ |
| 6 #define COMPONENTS_TEST_RUNNER_TEST_RUNNER_FOR_SPECIFIC_VIEW_H_ | 6 #define COMPONENTS_TEST_RUNNER_TEST_RUNNER_FOR_SPECIFIC_VIEW_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 | 164 |
| 165 // Switch the visibility of the page. | 165 // Switch the visibility of the page. |
| 166 void SetPageVisibility(const std::string& new_visibility); | 166 void SetPageVisibility(const std::string& new_visibility); |
| 167 | 167 |
| 168 // Changes the direction of the focused element. | 168 // Changes the direction of the focused element. |
| 169 void SetTextDirection(const std::string& direction_name); | 169 void SetTextDirection(const std::string& direction_name); |
| 170 | 170 |
| 171 // Dump current PageImportanceSignals for the page. | 171 // Dump current PageImportanceSignals for the page. |
| 172 void DumpPageImportanceSignals(); | 172 void DumpPageImportanceSignals(); |
| 173 | 173 |
| 174 // WebPageOverlay related functions. Permits the adding and removing of only | 174 // Permits the adding and removing of only one opaque overlay. |
| 175 // one opaque overlay. | |
| 176 void AddWebPageOverlay(); | 175 void AddWebPageOverlay(); |
| 177 void RemoveWebPageOverlay(); | 176 void RemoveWebPageOverlay(); |
| 178 | 177 |
| 179 // Sets a flag causing the next call to WebGLRenderingContext::create to fail. | 178 // Sets a flag causing the next call to WebGLRenderingContext::create to fail. |
| 180 void ForceNextWebGLContextCreationToFail(); | 179 void ForceNextWebGLContextCreationToFail(); |
| 181 | 180 |
| 182 // Sets a flag causing the next call to DrawingBuffer::create to fail. | 181 // Sets a flag causing the next call to DrawingBuffer::create to fail. |
| 183 void ForceNextDrawingBufferCreationToFail(); | 182 void ForceNextDrawingBufferCreationToFail(); |
| 184 | 183 |
| 185 // Gives focus to the view associated with TestRunnerForSpecificView. | 184 // Gives focus to the view associated with TestRunnerForSpecificView. |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 223 WebTestProxyBase* web_test_proxy_base_; | 222 WebTestProxyBase* web_test_proxy_base_; |
| 224 | 223 |
| 225 base::WeakPtrFactory<TestRunnerForSpecificView> weak_factory_; | 224 base::WeakPtrFactory<TestRunnerForSpecificView> weak_factory_; |
| 226 | 225 |
| 227 DISALLOW_COPY_AND_ASSIGN(TestRunnerForSpecificView); | 226 DISALLOW_COPY_AND_ASSIGN(TestRunnerForSpecificView); |
| 228 }; | 227 }; |
| 229 | 228 |
| 230 } // namespace test_runner | 229 } // namespace test_runner |
| 231 | 230 |
| 232 #endif // COMPONENTS_TEST_RUNNER_TEST_RUNNER_FOR_SPECIFIC_VIEW_H_ | 231 #endif // COMPONENTS_TEST_RUNNER_TEST_RUNNER_FOR_SPECIFIC_VIEW_H_ |
| OLD | NEW |