| 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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 } | 103 } |
| 104 WebViewHost* webViewHost() { return m_webViewHost.get(); } | 104 WebViewHost* webViewHost() { return m_webViewHost.get(); } |
| 105 WebKit::WebWidget* popup() { | 105 WebKit::WebWidget* popup() { |
| 106 return m_popupHost ? m_popupHost->webwidget() : NULL; | 106 return m_popupHost ? m_popupHost->webwidget() : NULL; |
| 107 } | 107 } |
| 108 WebWidgetHost* popupHost() { return m_popupHost; } | 108 WebWidgetHost* popupHost() { return m_popupHost; } |
| 109 | 109 |
| 110 bool is_loading() const { return is_loading_; } | 110 bool is_loading() const { return is_loading_; } |
| 111 void set_is_loading(bool is_loading) { is_loading_ = is_loading; } | 111 void set_is_loading(bool is_loading) { is_loading_ = is_loading; } |
| 112 | 112 |
| 113 bool allow_images() const { return allow_images_; } |
| 114 void set_allow_images(bool allow) { allow_images_ = allow; } |
| 115 |
| 116 bool allow_plugins() const { return allow_plugins_; } |
| 117 void set_allow_plugins(bool allow) { allow_plugins_ = allow; } |
| 118 |
| 119 bool allow_scripts() const { return allow_scripts_; } |
| 120 void set_allow_scripts(bool allow) { allow_scripts_ = allow; } |
| 121 |
| 113 void UpdateNavigationControls(); | 122 void UpdateNavigationControls(); |
| 114 | 123 |
| 115 // A new TestShell window will be opened with devtools url. | 124 // A new TestShell window will be opened with devtools url. |
| 116 // DevTools window can be opened manually via menu or automatically when | 125 // DevTools window can be opened manually via menu or automatically when |
| 117 // inspector's layout test url is passed from command line or console. | 126 // inspector's layout test url is passed from command line or console. |
| 118 void ShowDevTools(); | 127 void ShowDevTools(); |
| 119 void CloseDevTools(); | 128 void CloseDevTools(); |
| 120 | 129 |
| 121 // Called by the LayoutTestController to signal test completion. | 130 // Called by the LayoutTestController to signal test completion. |
| 122 void TestFinished(); | 131 void TestFinished(); |
| (...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 384 | 393 |
| 385 // True while a test is running | 394 // True while a test is running |
| 386 static bool test_is_pending_; | 395 static bool test_is_pending_; |
| 387 | 396 |
| 388 // True if driven from a nested message loop. | 397 // True if driven from a nested message loop. |
| 389 bool is_modal_; | 398 bool is_modal_; |
| 390 | 399 |
| 391 // True if the page is loading. | 400 // True if the page is loading. |
| 392 bool is_loading_; | 401 bool is_loading_; |
| 393 | 402 |
| 403 bool allow_images_; |
| 404 bool allow_plugins_; |
| 405 bool allow_scripts_; |
| 406 |
| 394 // The preferences for the test shell. | 407 // The preferences for the test shell. |
| 395 static WebPreferences* web_prefs_; | 408 static WebPreferences* web_prefs_; |
| 396 | 409 |
| 397 #if defined(OS_WIN) | 410 #if defined(OS_WIN) |
| 398 // Used by the watchdog to know when it's finished. | 411 // Used by the watchdog to know when it's finished. |
| 399 HANDLE finished_event_; | 412 HANDLE finished_event_; |
| 400 #endif | 413 #endif |
| 401 | 414 |
| 402 // Dump the stats table counters on exit. | 415 // Dump the stats table counters on exit. |
| 403 bool dump_stats_table_on_exit_; | 416 bool dump_stats_table_on_exit_; |
| 404 }; | 417 }; |
| 405 | 418 |
| 406 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_H_ | 419 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_H_ |
| 407 | 420 |
| OLD | NEW |