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> |
11 #include <shlwapi.h> | 11 #include <shlwapi.h> |
12 | 12 |
13 #include "base/command_line.h" | 13 #include "base/command_line.h" |
14 #include "base/debug/trace_event.h" | 14 #include "base/debug/trace_event.h" |
15 #include "base/file_util.h" | 15 #include "base/file_util.h" |
16 #include "base/memory/memory_debug.h" | |
17 #include "base/message_loop.h" | 16 #include "base/message_loop.h" |
18 #include "base/path_service.h" | 17 #include "base/path_service.h" |
19 #include "base/resource_util.h" | 18 #include "base/resource_util.h" |
20 #include "base/stack_container.h" | 19 #include "base/stack_container.h" |
21 #include "base/string_piece.h" | 20 #include "base/string_piece.h" |
22 #include "base/string_util.h" | 21 #include "base/string_util.h" |
23 #include "base/utf_string_conversions.h" | 22 #include "base/utf_string_conversions.h" |
24 #include "breakpad/src/client/windows/handler/exception_handler.h" | 23 #include "breakpad/src/client/windows/handler/exception_handler.h" |
25 #include "grit/webkit_resources.h" | 24 #include "grit/webkit_resources.h" |
26 #include "grit/webkit_chromium_resources.h" | 25 #include "grit/webkit_chromium_resources.h" |
(...skipping 533 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
560 } | 559 } |
561 } | 560 } |
562 break; | 561 break; |
563 | 562 |
564 case WM_DESTROY: | 563 case WM_DESTROY: |
565 { | 564 { |
566 | 565 |
567 RemoveWindowFromList(hwnd); | 566 RemoveWindowFromList(hwnd); |
568 | 567 |
569 if (TestShell::windowList()->empty() || shell->is_modal()) { | 568 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, | 569 MessageLoop::current()->PostTask(FROM_HERE, |
575 new MessageLoop::QuitTask()); | 570 new MessageLoop::QuitTask()); |
576 } | 571 } |
577 delete shell; | 572 delete shell; |
578 } | 573 } |
579 return 0; | 574 return 0; |
580 | 575 |
581 case WM_SIZE: | 576 case WM_SIZE: |
582 if (shell->webView()) | 577 if (shell->webView()) |
583 shell->ResizeSubViews(); | 578 shell->ResizeSubViews(); |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
734 | 729 |
735 bool EnsureFontLoaded(HFONT font) { | 730 bool EnsureFontLoaded(HFONT font) { |
736 return true; | 731 return true; |
737 } | 732 } |
738 | 733 |
739 bool DownloadUrl(const std::string& url, HWND caller_window) { | 734 bool DownloadUrl(const std::string& url, HWND caller_window) { |
740 return false; | 735 return false; |
741 } | 736 } |
742 | 737 |
743 } // namespace webkit_glue | 738 } // namespace webkit_glue |
OLD | NEW |