| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 #undef LOG | 5 #undef LOG |
| 6 | 6 |
| 7 #include "webkit/tools/test_shell/test_shell.h" | 7 #include "webkit/tools/test_shell/test_shell.h" |
| 8 | 8 |
| 9 #include "base/base_paths.h" | 9 #include "base/base_paths.h" |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 virtual ~URLRequestTestShellFileJob() { } | 96 virtual ~URLRequestTestShellFileJob() { } |
| 97 | 97 |
| 98 DISALLOW_COPY_AND_ASSIGN(URLRequestTestShellFileJob); | 98 DISALLOW_COPY_AND_ASSIGN(URLRequestTestShellFileJob); |
| 99 }; | 99 }; |
| 100 | 100 |
| 101 } // namespace | 101 } // namespace |
| 102 | 102 |
| 103 // Initialize static member variable | 103 // Initialize static member variable |
| 104 WindowList* TestShell::window_list_; | 104 WindowList* TestShell::window_list_; |
| 105 WebPreferences* TestShell::web_prefs_ = NULL; | 105 WebPreferences* TestShell::web_prefs_ = NULL; |
| 106 bool TestShell::developer_extras_enabled_ = false; |
| 106 bool TestShell::inspector_test_mode_ = false; | 107 bool TestShell::inspector_test_mode_ = false; |
| 107 bool TestShell::layout_test_mode_ = false; | 108 bool TestShell::layout_test_mode_ = false; |
| 108 int TestShell::file_test_timeout_ms_ = kDefaultFileTestTimeoutMillisecs; | 109 int TestShell::file_test_timeout_ms_ = kDefaultFileTestTimeoutMillisecs; |
| 109 bool TestShell::test_is_preparing_ = false; | 110 bool TestShell::test_is_preparing_ = false; |
| 110 bool TestShell::test_is_pending_ = false; | 111 bool TestShell::test_is_pending_ = false; |
| 111 | 112 |
| 112 TestShell::TestShell() | 113 TestShell::TestShell() |
| 113 : m_mainWnd(NULL), | 114 : m_mainWnd(NULL), |
| 114 m_editWnd(NULL), | 115 m_editWnd(NULL), |
| 115 m_webViewHost(NULL), | 116 m_webViewHost(NULL), |
| (...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 463 web_prefs_->sans_serif_font_family = L"Helvetica"; | 464 web_prefs_->sans_serif_font_family = L"Helvetica"; |
| 464 | 465 |
| 465 web_prefs_->default_encoding = "ISO-8859-1"; | 466 web_prefs_->default_encoding = "ISO-8859-1"; |
| 466 web_prefs_->default_font_size = 16; | 467 web_prefs_->default_font_size = 16; |
| 467 web_prefs_->default_fixed_font_size = 13; | 468 web_prefs_->default_fixed_font_size = 13; |
| 468 web_prefs_->minimum_font_size = 1; | 469 web_prefs_->minimum_font_size = 1; |
| 469 web_prefs_->minimum_logical_font_size = 9; | 470 web_prefs_->minimum_logical_font_size = 9; |
| 470 web_prefs_->javascript_can_open_windows_automatically = true; | 471 web_prefs_->javascript_can_open_windows_automatically = true; |
| 471 web_prefs_->dom_paste_enabled = true; | 472 web_prefs_->dom_paste_enabled = true; |
| 472 web_prefs_->developer_extras_enabled = !layout_test_mode_ || | 473 web_prefs_->developer_extras_enabled = !layout_test_mode_ || |
| 473 inspector_test_mode_; | 474 developer_extras_enabled_; |
| 474 web_prefs_->site_specific_quirks_enabled = true; | 475 web_prefs_->site_specific_quirks_enabled = true; |
| 475 web_prefs_->shrinks_standalone_images_to_fit = false; | 476 web_prefs_->shrinks_standalone_images_to_fit = false; |
| 476 web_prefs_->uses_universal_detector = false; | 477 web_prefs_->uses_universal_detector = false; |
| 477 web_prefs_->text_areas_are_resizable = false; | 478 web_prefs_->text_areas_are_resizable = false; |
| 478 web_prefs_->java_enabled = false; | 479 web_prefs_->java_enabled = false; |
| 479 web_prefs_->allow_scripts_to_close_windows = false; | 480 web_prefs_->allow_scripts_to_close_windows = false; |
| 480 web_prefs_->xss_auditor_enabled = false; | 481 web_prefs_->xss_auditor_enabled = false; |
| 481 // It's off by default for Chrome, but we don't want to | 482 // It's off by default for Chrome, but we don't want to |
| 482 // lose the coverage of dynamic font tests in webkit test. | 483 // lose the coverage of dynamic font tests in webkit test. |
| 483 web_prefs_->remote_fonts_enabled = true; | 484 web_prefs_->remote_fonts_enabled = true; |
| (...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 790 | 791 |
| 791 void CloseCurrentConnections() { | 792 void CloseCurrentConnections() { |
| 792 // Used in benchmarking, Ignored for test_shell. | 793 // Used in benchmarking, Ignored for test_shell. |
| 793 } | 794 } |
| 794 | 795 |
| 795 void SetCacheMode(bool enabled) { | 796 void SetCacheMode(bool enabled) { |
| 796 // Used in benchmarking, Ignored for test_shell. | 797 // Used in benchmarking, Ignored for test_shell. |
| 797 } | 798 } |
| 798 | 799 |
| 799 } // namespace webkit_glue | 800 } // namespace webkit_glue |
| OLD | NEW |