| 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 CONTENT_SHELL_RENDERER_TEST_RUNNER_TEST_RUNNER_H_ | 5 #ifndef CONTENT_SHELL_RENDERER_TEST_RUNNER_TEST_RUNNER_H_ |
| 6 #define CONTENT_SHELL_RENDERER_TEST_RUNNER_TEST_RUNNER_H_ | 6 #define CONTENT_SHELL_RENDERER_TEST_RUNNER_TEST_RUNNER_H_ |
| 7 | 7 |
| 8 #include <deque> | 8 #include <deque> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 236 const std::string& destination_host, | 236 const std::string& destination_host, |
| 237 bool allow_destination_subdomains); | 237 bool allow_destination_subdomains); |
| 238 | 238 |
| 239 // Returns true if the current page box has custom page size style for | 239 // Returns true if the current page box has custom page size style for |
| 240 // printing. | 240 // printing. |
| 241 bool HasCustomPageSizeStyle(int page_index); | 241 bool HasCustomPageSizeStyle(int page_index); |
| 242 | 242 |
| 243 // Forces the selection colors for testing under Linux. | 243 // Forces the selection colors for testing under Linux. |
| 244 void ForceRedSelectionColors(); | 244 void ForceRedSelectionColors(); |
| 245 | 245 |
| 246 // Adds a style sheet to be injected into new documents. | |
| 247 // TODO(dcheng): This will be removed in a followup patch. | |
| 248 void InjectStyleSheet(const std::string& source_code, bool all_frames); | |
| 249 | |
| 250 // Add |source_code| as an injected stylesheet to the active document of the | 246 // Add |source_code| as an injected stylesheet to the active document of the |
| 251 // window of the current V8 context. | 247 // window of the current V8 context. |
| 252 void InsertStyleSheet(const std::string& source_code); | 248 void InsertStyleSheet(const std::string& source_code); |
| 253 | 249 |
| 254 bool FindString(const std::string& search_text, | 250 bool FindString(const std::string& search_text, |
| 255 const std::vector<std::string>& options_array); | 251 const std::vector<std::string>& options_array); |
| 256 | 252 |
| 257 std::string SelectionAsMarkup(); | 253 std::string SelectionAsMarkup(); |
| 258 | 254 |
| 259 // Enables or disables subpixel positioning (i.e. fractional X positions for | 255 // Enables or disables subpixel positioning (i.e. fractional X positions for |
| (...skipping 553 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 813 bool use_mock_theme_; | 809 bool use_mock_theme_; |
| 814 | 810 |
| 815 base::WeakPtrFactory<TestRunner> weak_factory_; | 811 base::WeakPtrFactory<TestRunner> weak_factory_; |
| 816 | 812 |
| 817 DISALLOW_COPY_AND_ASSIGN(TestRunner); | 813 DISALLOW_COPY_AND_ASSIGN(TestRunner); |
| 818 }; | 814 }; |
| 819 | 815 |
| 820 } // namespace content | 816 } // namespace content |
| 821 | 817 |
| 822 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_TEST_RUNNER_H_ | 818 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_TEST_RUNNER_H_ |
| OLD | NEW |