OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 #include "webkit/tools/test_shell/test_shell.h" | 5 #include "webkit/tools/test_shell/test_shell.h" |
6 | 6 |
7 #include <windows.h> | 7 #include <windows.h> |
8 #include <commdlg.h> | 8 #include <commdlg.h> |
9 #include <objbase.h> | 9 #include <objbase.h> |
10 #include <process.h> | 10 #include <process.h> |
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
220 LoadIcon(instance_handle_, MAKEINTRESOURCE(IDI_TESTSHELL)), | 220 LoadIcon(instance_handle_, MAKEINTRESOURCE(IDI_TESTSHELL)), |
221 LoadCursor(NULL, IDC_ARROW), | 221 LoadCursor(NULL, IDC_ARROW), |
222 0, | 222 0, |
223 MAKEINTRESOURCE(IDC_TESTSHELL), | 223 MAKEINTRESOURCE(IDC_TESTSHELL), |
224 g_windowClass, | 224 g_windowClass, |
225 LoadIcon(instance_handle_, MAKEINTRESOURCE(IDI_SMALL)), | 225 LoadIcon(instance_handle_, MAKEINTRESOURCE(IDI_SMALL)), |
226 }; | 226 }; |
227 return RegisterClassEx(&wcex); | 227 return RegisterClassEx(&wcex); |
228 } | 228 } |
229 | 229 |
230 void TestShell::DumpAllBackForwardLists(std::wstring* result) { | 230 void TestShell::DumpAllBackForwardLists(string16* result) { |
231 result->clear(); | 231 result->clear(); |
232 for (WindowList::iterator iter = TestShell::windowList()->begin(); | 232 for (WindowList::iterator iter = TestShell::windowList()->begin(); |
233 iter != TestShell::windowList()->end(); iter++) { | 233 iter != TestShell::windowList()->end(); iter++) { |
234 HWND hwnd = *iter; | 234 HWND hwnd = *iter; |
235 TestShell* shell = | 235 TestShell* shell = |
236 static_cast<TestShell*>(win_util::GetWindowUserData(hwnd)); | 236 static_cast<TestShell*>(win_util::GetWindowUserData(hwnd)); |
237 shell->DumpBackForwardList(result); | 237 shell->DumpBackForwardList(result); |
238 } | 238 } |
239 } | 239 } |
240 | 240 |
(...skipping 581 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
822 | 822 |
823 bool EnsureFontLoaded(HFONT font) { | 823 bool EnsureFontLoaded(HFONT font) { |
824 return true; | 824 return true; |
825 } | 825 } |
826 | 826 |
827 bool DownloadUrl(const std::string& url, HWND caller_window) { | 827 bool DownloadUrl(const std::string& url, HWND caller_window) { |
828 return false; | 828 return false; |
829 } | 829 } |
830 | 830 |
831 } // namespace webkit_glue | 831 } // namespace webkit_glue |
OLD | NEW |