| 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 549 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 560 } | 560 } |
| 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 // Dump all in use memory just before shutdown if in use memory | |
| 571 // debugging has been enabled. | |
| 572 base::MemoryDebug::DumpAllMemoryInUse(); | |
| 573 | |
| 574 MessageLoop::current()->PostTask(FROM_HERE, | 570 MessageLoop::current()->PostTask(FROM_HERE, |
| 575 new MessageLoop::QuitTask()); | 571 new MessageLoop::QuitTask()); |
| 576 } | 572 } |
| 577 delete shell; | 573 delete shell; |
| 578 } | 574 } |
| 579 return 0; | 575 return 0; |
| 580 | 576 |
| 581 case WM_SIZE: | 577 case WM_SIZE: |
| 582 if (shell->webView()) | 578 if (shell->webView()) |
| 583 shell->ResizeSubViews(); | 579 shell->ResizeSubViews(); |
| (...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 734 | 730 |
| 735 bool EnsureFontLoaded(HFONT font) { | 731 bool EnsureFontLoaded(HFONT font) { |
| 736 return true; | 732 return true; |
| 737 } | 733 } |
| 738 | 734 |
| 739 bool DownloadUrl(const std::string& url, HWND caller_window) { | 735 bool DownloadUrl(const std::string& url, HWND caller_window) { |
| 740 return false; | 736 return false; |
| 741 } | 737 } |
| 742 | 738 |
| 743 } // namespace webkit_glue | 739 } // namespace webkit_glue |
| OLD | NEW |