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

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

Issue 243032: First implementation of PlainTextController. (Closed)
Patch Set: '' Created 11 years, 1 month 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 | « webkit/tools/test_shell/plain_text_controller.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 21 matching lines...) Expand all
32 #include <list> 32 #include <list>
33 33
34 #include "app/gfx/native_widget_types.h" 34 #include "app/gfx/native_widget_types.h"
35 #include "base/basictypes.h" 35 #include "base/basictypes.h"
36 #if defined(OS_MACOSX) 36 #if defined(OS_MACOSX)
37 #include "base/lazy_instance.h" 37 #include "base/lazy_instance.h"
38 #endif 38 #endif
39 #include "base/ref_counted.h" 39 #include "base/ref_counted.h"
40 #include "webkit/tools/test_shell/event_sending_controller.h" 40 #include "webkit/tools/test_shell/event_sending_controller.h"
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/plain_text_controller.h"
42 #include "webkit/tools/test_shell/text_input_controller.h" 43 #include "webkit/tools/test_shell/text_input_controller.h"
43 #include "webkit/tools/test_shell/test_webview_delegate.h" 44 #include "webkit/tools/test_shell/test_webview_delegate.h"
44 #include "webkit/tools/test_shell/webview_host.h" 45 #include "webkit/tools/test_shell/webview_host.h"
45 #include "webkit/tools/test_shell/webwidget_host.h" 46 #include "webkit/tools/test_shell/webwidget_host.h"
46 47
47 typedef std::list<gfx::NativeWindow> WindowList; 48 typedef std::list<gfx::NativeWindow> WindowList;
48 49
49 struct WebPreferences; 50 struct WebPreferences;
50 class AccessibilityController; 51 class AccessibilityController;
51 class FilePath; 52 class FilePath;
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after
328 #endif 329 #endif
329 330
330 // True when the app is being run using the --layout-tests switch. 331 // True when the app is being run using the --layout-tests switch.
331 static bool layout_test_mode_; 332 static bool layout_test_mode_;
332 333
333 // Default timeout in ms for file page loads when in layout test mode. 334 // Default timeout in ms for file page loads when in layout test mode.
334 static int file_test_timeout_ms_; 335 static int file_test_timeout_ms_;
335 336
336 scoped_ptr<AccessibilityController> accessibility_controller_; 337 scoped_ptr<AccessibilityController> accessibility_controller_;
337 scoped_ptr<LayoutTestController> layout_test_controller_; 338 scoped_ptr<LayoutTestController> layout_test_controller_;
338
339 scoped_ptr<EventSendingController> event_sending_controller_; 339 scoped_ptr<EventSendingController> event_sending_controller_;
340 340 scoped_ptr<PlainTextController> plain_text_controller_;
341 scoped_ptr<TextInputController> text_input_controller_; 341 scoped_ptr<TextInputController> text_input_controller_;
342
343 scoped_ptr<TestNavigationController> navigation_controller_; 342 scoped_ptr<TestNavigationController> navigation_controller_;
344 343
345 scoped_ptr<TestWebViewDelegate> delegate_; 344 scoped_ptr<TestWebViewDelegate> delegate_;
346 scoped_ptr<TestWebViewDelegate> popup_delegate_; 345 scoped_ptr<TestWebViewDelegate> popup_delegate_;
347 346
348 const TestParams* test_params_; 347 const TestParams* test_params_;
349 348
350 // True while a test is preparing to run 349 // True while a test is preparing to run
351 static bool test_is_preparing_; 350 static bool test_is_preparing_;
352 351
353 // True while a test is running 352 // True while a test is running
354 static bool test_is_pending_; 353 static bool test_is_pending_;
355 354
356 // True if driven from a nested message loop. 355 // True if driven from a nested message loop.
357 bool is_modal_; 356 bool is_modal_;
358 357
359 // The preferences for the test shell. 358 // The preferences for the test shell.
360 static WebPreferences* web_prefs_; 359 static WebPreferences* web_prefs_;
361 360
362 #if defined(OS_WIN) 361 #if defined(OS_WIN)
363 // Used by the watchdog to know when it's finished. 362 // Used by the watchdog to know when it's finished.
364 HANDLE finished_event_; 363 HANDLE finished_event_;
365 #endif 364 #endif
366 365
367 // Dump the stats table counters on exit. 366 // Dump the stats table counters on exit.
368 bool dump_stats_table_on_exit_; 367 bool dump_stats_table_on_exit_;
369 }; 368 };
370 369
371 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_H_ 370 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_H_
371
OLDNEW
« no previous file with comments | « webkit/tools/test_shell/plain_text_controller.cc ('k') | webkit/tools/test_shell/test_shell.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698