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

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

Issue 2871023: Revert 50726 "DevTools: Migrate to new WebView initialization (pass devtools client directly)." (Closed) Base URL: git://codf21.jail.google.com/chromium.git
Patch Set: Created 10 years, 6 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 | « chrome/renderer/render_view.cc ('k') | webkit/tools/test_shell/test_shell.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 /* 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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 TestShell(); 85 TestShell();
86 virtual ~TestShell(); 86 virtual ~TestShell();
87 87
88 // Initialization and clean up of logging. 88 // Initialization and clean up of logging.
89 static void InitLogging(bool suppress_error_dialogs, 89 static void InitLogging(bool suppress_error_dialogs,
90 bool running_layout_tests, 90 bool running_layout_tests,
91 bool enable_gp_fault_error_box); 91 bool enable_gp_fault_error_box);
92 static void CleanupLogging(); 92 static void CleanupLogging();
93 93
94 // Initialization and clean up of a static member variable. 94 // Initialization and clean up of a static member variable.
95 static void InitializeTestShell(bool layout_test_mode, 95 static void InitializeTestShell(bool layout_test_mode,
96 bool allow_external_pages); 96 bool allow_external_pages);
97 static void ShutdownTestShell(); 97 static void ShutdownTestShell();
98 98
99 static bool layout_test_mode() { return layout_test_mode_; } 99 static bool layout_test_mode() { return layout_test_mode_; }
100 static bool allow_external_pages() { return allow_external_pages_; } 100 static bool allow_external_pages() { return allow_external_pages_; }
101 101
102 // Called from the destructor to let each platform do any necessary 102 // Called from the destructor to let each platform do any necessary
103 // cleanup. 103 // cleanup.
104 void PlatformCleanUp(); 104 void PlatformCleanUp();
105 105
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
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; } 327 static void disable_html5_parser() { enable_html5_parser_ = false; }
328 328
329 protected: 329 protected:
330 void CreateDevToolsClient(TestShellDevToolsAgent* agent); 330 void CreateDevToolsClient(TestShellDevToolsAgent* agent);
331 bool Initialize(const GURL& starting_url); 331 bool Initialize(const GURL& starting_url);
332 void InitializeDevToolsAgent(WebKit::WebView* webView);
332 bool IsSVGTestURL(const GURL& url); 333 bool IsSVGTestURL(const GURL& url);
333 void SizeToSVG(); 334 void SizeToSVG();
334 void SizeToDefault(); 335 void SizeToDefault();
335 void SizeTo(int width, int height); 336 void SizeTo(int width, int height);
336 void ResizeSubViews(); 337 void ResizeSubViews();
337 338
338 // Set the focus in interactive mode (pass through to relevant system call). 339 // Set the focus in interactive mode (pass through to relevant system call).
339 void InteractiveSetFocus(WebWidgetHost* host, bool enable); 340 void InteractiveSetFocus(WebWidgetHost* host, bool enable);
340 341
341 enum UIControl { 342 enum UIControl {
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
378 #endif 379 #endif
379 380
380 // True if developer extras should be enabled. 381 // True if developer extras should be enabled.
381 static bool developer_extras_enabled_; 382 static bool developer_extras_enabled_;
382 383
383 // Whether DevTools should be open before loading the page. 384 // Whether DevTools should be open before loading the page.
384 static bool inspector_test_mode_; 385 static bool inspector_test_mode_;
385 386
386 // True when the app is being run using the --layout-tests switch. 387 // True when the app is being run using the --layout-tests switch.
387 static bool layout_test_mode_; 388 static bool layout_test_mode_;
388 389
389 // True when we wish to allow test shell to load external pages like 390 // True when we wish to allow test shell to load external pages like
390 // www.google.com even when in --layout-test mode (used for QA to 391 // www.google.com even when in --layout-test mode (used for QA to
391 // produce images of the rendered page) 392 // produce images of the rendered page)
392 static bool allow_external_pages_; 393 static bool allow_external_pages_;
393 394
394 // Whether to use the new HTML5 parsing code. 395 // Whether to use the new HTML5 parsing code.
395 static bool enable_html5_parser_; 396 static bool enable_html5_parser_;
396 397
397 // Default timeout in ms for file page loads when in layout test mode. 398 // Default timeout in ms for file page loads when in layout test mode.
398 static int file_test_timeout_ms_; 399 static int file_test_timeout_ms_;
399 400
400 scoped_ptr<AccessibilityController> accessibility_controller_; 401 scoped_ptr<AccessibilityController> accessibility_controller_;
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
436 #if defined(OS_WIN) 437 #if defined(OS_WIN)
437 // Used by the watchdog to know when it's finished. 438 // Used by the watchdog to know when it's finished.
438 HANDLE finished_event_; 439 HANDLE finished_event_;
439 #endif 440 #endif
440 441
441 // Dump the stats table counters on exit. 442 // Dump the stats table counters on exit.
442 bool dump_stats_table_on_exit_; 443 bool dump_stats_table_on_exit_;
443 }; 444 };
444 445
445 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_H_ 446 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_H_
OLDNEW
« no previous file with comments | « chrome/renderer/render_view.cc ('k') | webkit/tools/test_shell/test_shell.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698