OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006 Apple Computer, Inc. All rights reserved. | 2 * Copyright (C) 2006 Apple Computer, Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
317 // Show the "attach to me" dialog, for debugging test shell startup. | 317 // Show the "attach to me" dialog, for debugging test shell startup. |
318 static void ShowStartupDebuggingDialog(); | 318 static void ShowStartupDebuggingDialog(); |
319 | 319 |
320 // This is called indirectly by the network layer to access resources. | 320 // This is called indirectly by the network layer to access resources. |
321 static base::StringPiece NetResourceProvider(int key); | 321 static base::StringPiece NetResourceProvider(int key); |
322 | 322 |
323 TestShellDevToolsAgent* dev_tools_agent() { | 323 TestShellDevToolsAgent* dev_tools_agent() { |
324 return dev_tools_agent_.get(); | 324 return dev_tools_agent_.get(); |
325 } | 325 } |
326 | 326 |
327 static void disable_html5_parser() { enable_html5_parser_ = false; } | |
328 | |
329 protected: | 327 protected: |
330 void CreateDevToolsClient(TestShellDevToolsAgent* agent); | 328 void CreateDevToolsClient(TestShellDevToolsAgent* agent); |
331 bool Initialize(const GURL& starting_url); | 329 bool Initialize(const GURL& starting_url); |
332 bool IsSVGTestURL(const GURL& url); | 330 bool IsSVGTestURL(const GURL& url); |
333 void SizeToSVG(); | 331 void SizeToSVG(); |
334 void SizeToDefault(); | 332 void SizeToDefault(); |
335 void SizeTo(int width, int height); | 333 void SizeTo(int width, int height); |
336 void ResizeSubViews(); | 334 void ResizeSubViews(); |
337 | 335 |
338 // Set the focus in interactive mode (pass through to relevant system call). | 336 // Set the focus in interactive mode (pass through to relevant system call). |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
381 static bool developer_extras_enabled_; | 379 static bool developer_extras_enabled_; |
382 | 380 |
383 // True when the app is being run using the --layout-tests switch. | 381 // True when the app is being run using the --layout-tests switch. |
384 static bool layout_test_mode_; | 382 static bool layout_test_mode_; |
385 | 383 |
386 // True when we wish to allow test shell to load external pages like | 384 // True when we wish to allow test shell to load external pages like |
387 // www.google.com even when in --layout-test mode (used for QA to | 385 // www.google.com even when in --layout-test mode (used for QA to |
388 // produce images of the rendered page) | 386 // produce images of the rendered page) |
389 static bool allow_external_pages_; | 387 static bool allow_external_pages_; |
390 | 388 |
391 // Whether to use the new HTML5 parsing code. | |
392 static bool enable_html5_parser_; | |
393 | |
394 // Default timeout in ms for file page loads when in layout test mode. | 389 // Default timeout in ms for file page loads when in layout test mode. |
395 static int file_test_timeout_ms_; | 390 static int file_test_timeout_ms_; |
396 | 391 |
397 scoped_ptr<AccessibilityController> accessibility_controller_; | 392 scoped_ptr<AccessibilityController> accessibility_controller_; |
398 scoped_ptr<LayoutTestController> layout_test_controller_; | 393 scoped_ptr<LayoutTestController> layout_test_controller_; |
399 scoped_ptr<EventSendingController> event_sending_controller_; | 394 scoped_ptr<EventSendingController> event_sending_controller_; |
400 scoped_ptr<PlainTextController> plain_text_controller_; | 395 scoped_ptr<PlainTextController> plain_text_controller_; |
401 scoped_ptr<TextInputController> text_input_controller_; | 396 scoped_ptr<TextInputController> text_input_controller_; |
402 scoped_ptr<TestNavigationController> navigation_controller_; | 397 scoped_ptr<TestNavigationController> navigation_controller_; |
403 scoped_ptr<TestNotificationPresenter> notification_presenter_; | 398 scoped_ptr<TestNotificationPresenter> notification_presenter_; |
(...skipping 29 matching lines...) Expand all Loading... |
433 #if defined(OS_WIN) | 428 #if defined(OS_WIN) |
434 // Used by the watchdog to know when it's finished. | 429 // Used by the watchdog to know when it's finished. |
435 HANDLE finished_event_; | 430 HANDLE finished_event_; |
436 #endif | 431 #endif |
437 | 432 |
438 // Dump the stats table counters on exit. | 433 // Dump the stats table counters on exit. |
439 bool dump_stats_table_on_exit_; | 434 bool dump_stats_table_on_exit_; |
440 }; | 435 }; |
441 | 436 |
442 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_H_ | 437 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_H_ |
OLD | NEW |