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

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

Issue 13219005: Replace string16 with base::string16 in src/webkit (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_H_ 5 #ifndef WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_H_
6 #define WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_H_ 6 #define WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_H_
7 7
8 8
9 #include <list> 9 #include <list>
10 #include <map> 10 #include <map>
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 // page has finished dumping its text and therefore end up in the next 145 // page has finished dumping its text and therefore end up in the next
146 // test's results if the messages are still enabled. 146 // test's results if the messages are still enabled.
147 void ResetTestController(); 147 void ResetTestController();
148 148
149 bool AcceptsEditing() { 149 bool AcceptsEditing() {
150 return true; 150 return true;
151 } 151 }
152 152
153 void LoadFile(const base::FilePath& file); 153 void LoadFile(const base::FilePath& file);
154 void LoadURL(const GURL& url); 154 void LoadURL(const GURL& url);
155 void LoadURLForFrame(const GURL& url, const string16& frame_name); 155 void LoadURLForFrame(const GURL& url, const base::string16& frame_name);
156 void GoBackOrForward(int offset); 156 void GoBackOrForward(int offset);
157 void Reload(); 157 void Reload();
158 bool Navigate(const TestNavigationEntry& entry, bool reload); 158 bool Navigate(const TestNavigationEntry& entry, bool reload);
159 159
160 bool PromptForSaveFile(const wchar_t* prompt_title, base::FilePath* result); 160 bool PromptForSaveFile(const wchar_t* prompt_title, base::FilePath* result);
161 string16 GetDocumentText(); 161 base::string16 GetDocumentText();
162 void DumpDocumentText(); 162 void DumpDocumentText();
163 void DumpRenderTree(); 163 void DumpRenderTree();
164 164
165 gfx::NativeWindow mainWnd() const { return m_mainWnd; } 165 gfx::NativeWindow mainWnd() const { return m_mainWnd; }
166 gfx::NativeView webViewWnd() const { return m_webViewHost->view_handle(); } 166 gfx::NativeView webViewWnd() const { return m_webViewHost->view_handle(); }
167 gfx::NativeEditView editWnd() const { return m_editWnd; } 167 gfx::NativeEditView editWnd() const { return m_editWnd; }
168 gfx::NativeView popupWnd() const { return m_popupHost->view_handle(); } 168 gfx::NativeView popupWnd() const { return m_popupHost->view_handle(); }
169 169
170 static WindowList* windowList() { return window_list_; } 170 static WindowList* windowList() { return window_list_; }
171 171
(...skipping 12 matching lines...) Expand all
184 WebKit::WebView* CreateWebView(); 184 WebKit::WebView* CreateWebView();
185 WebKit::WebWidget* CreatePopupWidget(); 185 WebKit::WebWidget* CreatePopupWidget();
186 void ClosePopup(); 186 void ClosePopup();
187 187
188 #if defined(OS_WIN) 188 #if defined(OS_WIN)
189 static ATOM RegisterWindowClass(); 189 static ATOM RegisterWindowClass();
190 #endif 190 #endif
191 191
192 // Writes the back-forward list data for every open window into result. 192 // Writes the back-forward list data for every open window into result.
193 // Should call DumpBackForwardListOfWindow on each TestShell window. 193 // Should call DumpBackForwardListOfWindow on each TestShell window.
194 static void DumpAllBackForwardLists(string16* result); 194 static void DumpAllBackForwardLists(base::string16* result);
195 195
196 // Writes the single back-forward entry into result. 196 // Writes the single back-forward entry into result.
197 void DumpBackForwardEntry(int index, string16* result); 197 void DumpBackForwardEntry(int index, base::string16* result);
198 198
199 // Writes the back-forward list data for this test shell into result. 199 // Writes the back-forward list data for this test shell into result.
200 void DumpBackForwardList(string16* result); 200 void DumpBackForwardList(base::string16* result);
201 201
202 static void ResetWebPreferences(); 202 static void ResetWebPreferences();
203 203
204 static void SetAllowScriptsToCloseWindows(); 204 static void SetAllowScriptsToCloseWindows();
205 205
206 static void SetAccelerated2dCanvasEnabled(bool enabled); 206 static void SetAccelerated2dCanvasEnabled(bool enabled);
207 static void SetAcceleratedCompositingEnabled(bool enabled); 207 static void SetAcceleratedCompositingEnabled(bool enabled);
208 208
209 static webkit_glue::WebPreferences* GetWebPreferences(); 209 static webkit_glue::WebPreferences* GetWebPreferences();
210 210
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
402 #if defined(OS_WIN) 402 #if defined(OS_WIN)
403 // Used by the watchdog to know when it's finished. 403 // Used by the watchdog to know when it's finished.
404 HANDLE finished_event_; 404 HANDLE finished_event_;
405 #endif 405 #endif
406 406
407 // Dump the stats table counters on exit. 407 // Dump the stats table counters on exit.
408 bool dump_stats_table_on_exit_; 408 bool dump_stats_table_on_exit_;
409 }; 409 };
410 410
411 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_H_ 411 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698