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

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

Issue 293001: Delete glue/webview{_delegate}.h (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « webkit/tools/test_shell/plugin_tests.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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 // Initialization and clean up of a static member variable. 87 // Initialization and clean up of a static member variable.
88 static void InitializeTestShell(bool layout_test_mode); 88 static void InitializeTestShell(bool layout_test_mode);
89 static void ShutdownTestShell(); 89 static void ShutdownTestShell();
90 90
91 static bool layout_test_mode() { return layout_test_mode_; } 91 static bool layout_test_mode() { return layout_test_mode_; }
92 92
93 // Called from the destructor to let each platform do any necessary 93 // Called from the destructor to let each platform do any necessary
94 // cleanup. 94 // cleanup.
95 void PlatformCleanUp(); 95 void PlatformCleanUp();
96 96
97 WebView* webView() { 97 WebKit::WebView* webView() {
98 return m_webViewHost.get() ? m_webViewHost->webview() : NULL; 98 return m_webViewHost.get() ? m_webViewHost->webview() : NULL;
99 } 99 }
100 WebViewHost* webViewHost() { return m_webViewHost.get(); } 100 WebViewHost* webViewHost() { return m_webViewHost.get(); }
101 WebKit::WebWidget* popup() { 101 WebKit::WebWidget* popup() {
102 return m_popupHost ? m_popupHost->webwidget() : NULL; 102 return m_popupHost ? m_popupHost->webwidget() : NULL;
103 } 103 }
104 WebWidgetHost* popupHost() { return m_popupHost; } 104 WebWidgetHost* popupHost() { return m_popupHost; }
105 105
106 // Called by the LayoutTestController to signal test completion. 106 // Called by the LayoutTestController to signal test completion.
107 void TestFinished(); 107 void TestFinished();
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 TestShell** shell = NULL); 179 TestShell** shell = NULL);
180 180
181 static void DestroyWindow(gfx::NativeWindow windowHandle); 181 static void DestroyWindow(gfx::NativeWindow windowHandle);
182 182
183 // Remove the given window from window_list_, return true if it was in the 183 // Remove the given window from window_list_, return true if it was in the
184 // list and was removed and false otherwise. 184 // list and was removed and false otherwise.
185 static bool RemoveWindowFromList(gfx::NativeWindow window); 185 static bool RemoveWindowFromList(gfx::NativeWindow window);
186 186
187 // Implements CreateWebView for TestWebViewDelegate, which in turn 187 // Implements CreateWebView for TestWebViewDelegate, which in turn
188 // is called as a WebViewDelegate. 188 // is called as a WebViewDelegate.
189 WebView* CreateWebView(); 189 WebKit::WebView* CreateWebView();
190 WebKit::WebWidget* CreatePopupWidget(); 190 WebKit::WebWidget* CreatePopupWidget();
191 void ClosePopup(); 191 void ClosePopup();
192 192
193 #if defined(OS_WIN) 193 #if defined(OS_WIN)
194 static ATOM RegisterWindowClass(); 194 static ATOM RegisterWindowClass();
195 #endif 195 #endif
196 196
197 // Called by the WebView delegate WindowObjectCleared() method, this 197 // Called by the WebView delegate WindowObjectCleared() method, this
198 // binds the layout_test_controller_ and other C++ controller classes to 198 // binds the layout_test_controller_ and other C++ controller classes to
199 // window JavaScript objects so they can be accessed by layout tests. 199 // window JavaScript objects so they can be accessed by layout tests.
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
357 #if defined(OS_WIN) 357 #if defined(OS_WIN)
358 // Used by the watchdog to know when it's finished. 358 // Used by the watchdog to know when it's finished.
359 HANDLE finished_event_; 359 HANDLE finished_event_;
360 #endif 360 #endif
361 361
362 // Dump the stats table counters on exit. 362 // Dump the stats table counters on exit.
363 bool dump_stats_table_on_exit_; 363 bool dump_stats_table_on_exit_;
364 }; 364 };
365 365
366 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_H_ 366 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_H_
OLDNEW
« no previous file with comments | « webkit/tools/test_shell/plugin_tests.cc ('k') | webkit/tools/test_shell/test_shell.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698