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

Side by Side Diff: webkit/tools/test_shell/layout_test_controller.h

Issue 554004: GTK: Use GTK+ theme selection colors and plumb them into webkit. (Closed)
Patch Set: Move layout tests to correct paths Created 10 years, 11 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
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 /* 5 /*
6 LayoutTestController class: 6 LayoutTestController class:
7 Bound to a JavaScript window.layoutTestController object using the 7 Bound to a JavaScript window.layoutTestController object using the
8 CppBoundClass::BindToJavascript(), this allows layout tests that are run in 8 CppBoundClass::BindToJavascript(), this allows layout tests that are run in
9 the test_shell (or, in principle, any web page loaded into a client app built 9 the test_shell (or, in principle, any web page loaded into a client app built
10 with this class) to control various aspects of how the tests are run and what 10 with this class) to control various aspects of how the tests are run and what
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 void counterValueForElementById( 210 void counterValueForElementById(
211 const CppArgumentList& args, CppVariant* result); 211 const CppArgumentList& args, CppVariant* result);
212 212
213 // Allows layout tests to start Timeline profiling. 213 // Allows layout tests to start Timeline profiling.
214 void setTimelineProfilingEnabled(const CppArgumentList& args, 214 void setTimelineProfilingEnabled(const CppArgumentList& args,
215 CppVariant* result); 215 CppVariant* result);
216 216
217 // Allows layout tests to exec scripts at WebInspector side. 217 // Allows layout tests to exec scripts at WebInspector side.
218 void evaluateInWebInspector(const CppArgumentList& args, CppVariant* result); 218 void evaluateInWebInspector(const CppArgumentList& args, CppVariant* result);
219 219
220 // Forces the selection colors for testing under Linux.
221 void forceRedSelectionColors(const CppArgumentList& args,
222 CppVariant* result);
223
220 public: 224 public:
221 // The following methods are not exposed to JavaScript. 225 // The following methods are not exposed to JavaScript.
222 void SetWorkQueueFrozen(bool frozen) { work_queue_.set_frozen(frozen); } 226 void SetWorkQueueFrozen(bool frozen) { work_queue_.set_frozen(frozen); }
223 227
224 bool ShouldDumpAsText() { return dump_as_text_; } 228 bool ShouldDumpAsText() { return dump_as_text_; }
225 bool ShouldDumpEditingCallbacks() { return dump_editing_callbacks_; } 229 bool ShouldDumpEditingCallbacks() { return dump_editing_callbacks_; }
226 bool ShouldDumpFrameLoadCallbacks() { return dump_frame_load_callbacks_; } 230 bool ShouldDumpFrameLoadCallbacks() { return dump_frame_load_callbacks_; }
227 void SetShouldDumpFrameLoadCallbacks(bool value) { 231 void SetShouldDumpFrameLoadCallbacks(bool value) {
228 dump_frame_load_callbacks_ = value; 232 dump_frame_load_callbacks_ = value;
229 } 233 }
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
388 392
389 static WorkQueue work_queue_; 393 static WorkQueue work_queue_;
390 394
391 static CppVariant globalFlag_; 395 static CppVariant globalFlag_;
392 396
393 // Bound variable counting the number of top URLs visited. 397 // Bound variable counting the number of top URLs visited.
394 static CppVariant webHistoryItemCount_; 398 static CppVariant webHistoryItemCount_;
395 }; 399 };
396 400
397 #endif // WEBKIT_TOOLS_TEST_SHELL_LAYOUT_TEST_CONTROLLER_H_ 401 #endif // WEBKIT_TOOLS_TEST_SHELL_LAYOUT_TEST_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698