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 30 matching lines...) Expand all Loading... |
41 #include "webkit/tools/test_shell/layout_test_controller.h" | 41 #include "webkit/tools/test_shell/layout_test_controller.h" |
42 #include "webkit/tools/test_shell/resource.h" | 42 #include "webkit/tools/test_shell/resource.h" |
43 #include "webkit/tools/test_shell/text_input_controller.h" | 43 #include "webkit/tools/test_shell/text_input_controller.h" |
44 #include "webkit/tools/test_shell/test_webview_delegate.h" | 44 #include "webkit/tools/test_shell/test_webview_delegate.h" |
45 #include "webkit/tools/test_shell/webview_host.h" | 45 #include "webkit/tools/test_shell/webview_host.h" |
46 #include "webkit/tools/test_shell/webwidget_host.h" | 46 #include "webkit/tools/test_shell/webwidget_host.h" |
47 | 47 |
48 typedef std::list<gfx::NativeWindow> WindowList; | 48 typedef std::list<gfx::NativeWindow> WindowList; |
49 | 49 |
50 struct WebPreferences; | 50 struct WebPreferences; |
| 51 class StringPiece; |
51 class TestNavigationEntry; | 52 class TestNavigationEntry; |
52 class TestNavigationController; | 53 class TestNavigationController; |
53 | 54 |
54 class TestShell { | 55 class TestShell { |
55 public: | 56 public: |
56 struct TestParams { | 57 struct TestParams { |
57 // Load the test defaults. | 58 // Load the test defaults. |
58 TestParams() : dump_tree(true), dump_pixels(false) { | 59 TestParams() : dump_tree(true), dump_pixels(false) { |
59 } | 60 } |
60 | 61 |
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
245 bool is_modal() const { return is_modal_; } | 246 bool is_modal() const { return is_modal_; } |
246 | 247 |
247 #if defined(OS_MACOSX) | 248 #if defined(OS_MACOSX) |
248 // handle cleaning up a shell given the associated window | 249 // handle cleaning up a shell given the associated window |
249 static void DestroyAssociatedShell(gfx::NativeWindow handle); | 250 static void DestroyAssociatedShell(gfx::NativeWindow handle); |
250 #endif | 251 #endif |
251 | 252 |
252 // Show the "attach to me" dialog, for debugging test shell startup. | 253 // Show the "attach to me" dialog, for debugging test shell startup. |
253 static void ShowStartupDebuggingDialog(); | 254 static void ShowStartupDebuggingDialog(); |
254 | 255 |
| 256 // This is called indirectly by the network layer to access resources. |
| 257 static StringPiece NetResourceProvider(int key); |
| 258 |
255 protected: | 259 protected: |
256 bool Initialize(const std::wstring& startingURL); | 260 bool Initialize(const std::wstring& startingURL); |
257 void SizeToSVG(); | 261 void SizeToSVG(); |
258 void SizeToDefault(); | 262 void SizeToDefault(); |
259 void SizeTo(int width, int height); | 263 void SizeTo(int width, int height); |
260 void ResizeSubViews(); | 264 void ResizeSubViews(); |
261 | 265 |
262 // Set the focus in interactive mode (pass through to relevant system call). | 266 // Set the focus in interactive mode (pass through to relevant system call). |
263 void InteractiveSetFocus(WebWidgetHost* host, bool enable); | 267 void InteractiveSetFocus(WebWidgetHost* host, bool enable); |
264 | 268 |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
331 // Dump the stats table counters on exit. | 335 // Dump the stats table counters on exit. |
332 bool dump_stats_table_on_exit_; | 336 bool dump_stats_table_on_exit_; |
333 | 337 |
334 #if defined(OS_LINUX) | 338 #if defined(OS_LINUX) |
335 // The height of the non-rendering area of the main window, in pixels. | 339 // The height of the non-rendering area of the main window, in pixels. |
336 int top_chrome_height_; | 340 int top_chrome_height_; |
337 #endif | 341 #endif |
338 }; | 342 }; |
339 | 343 |
340 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_H_ | 344 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_H_ |
OLD | NEW |