| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 550 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 561 } | 561 } |
| 562 break; | 562 break; |
| 563 | 563 |
| 564 case WM_DESTROY: | 564 case WM_DESTROY: |
| 565 { | 565 { |
| 566 | 566 |
| 567 RemoveWindowFromList(hwnd); | 567 RemoveWindowFromList(hwnd); |
| 568 | 568 |
| 569 if (TestShell::windowList()->empty() || shell->is_modal()) { | 569 if (TestShell::windowList()->empty() || shell->is_modal()) { |
| 570 MessageLoop::current()->PostTask(FROM_HERE, | 570 MessageLoop::current()->PostTask(FROM_HERE, |
| 571 new MessageLoop::QuitTask()); | 571 MessageLoop::QuitClosure()); |
| 572 } | 572 } |
| 573 delete shell; | 573 delete shell; |
| 574 } | 574 } |
| 575 return 0; | 575 return 0; |
| 576 | 576 |
| 577 case WM_SIZE: | 577 case WM_SIZE: |
| 578 if (shell->webView()) | 578 if (shell->webView()) |
| 579 shell->ResizeSubViews(); | 579 shell->ResizeSubViews(); |
| 580 return 0; | 580 return 0; |
| 581 } | 581 } |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 730 | 730 |
| 731 bool EnsureFontLoaded(HFONT font) { | 731 bool EnsureFontLoaded(HFONT font) { |
| 732 return true; | 732 return true; |
| 733 } | 733 } |
| 734 | 734 |
| 735 bool DownloadUrl(const std::string& url, HWND caller_window) { | 735 bool DownloadUrl(const std::string& url, HWND caller_window) { |
| 736 return false; | 736 return false; |
| 737 } | 737 } |
| 738 | 738 |
| 739 } // namespace webkit_glue | 739 } // namespace webkit_glue |
| OLD | NEW |