Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(212)

Side by Side Diff: content/shell/renderer/test_runner/test_runner.h

Issue 1052123002: Remove stylesheet injection bindings for test runner. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | content/shell/renderer/test_runner/test_runner.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | content/shell/renderer/test_runner/test_runner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698