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 613 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
624 break; | 624 break; |
625 case IDM_ENABLE_PLUGINS: | 625 case IDM_ENABLE_PLUGINS: |
626 shell->set_allow_plugins(!was_checked); | 626 shell->set_allow_plugins(!was_checked); |
627 break; | 627 break; |
628 case IDM_ENABLE_SCRIPTS: | 628 case IDM_ENABLE_SCRIPTS: |
629 shell->set_allow_scripts(!was_checked); | 629 shell->set_allow_scripts(!was_checked); |
630 break; | 630 break; |
631 } | 631 } |
632 break; | 632 break; |
633 } | 633 } |
| 634 case IDM_SHOW_PAINT_RECTS: { |
| 635 HMENU menu = GetSubMenu(GetMenu(hwnd), 1); |
| 636 bool was_checked = |
| 637 (GetMenuState(menu, wmId, MF_BYCOMMAND) & MF_CHECKED) != 0; |
| 638 CheckMenuItem(menu, wmId, |
| 639 MF_BYCOMMAND | (was_checked ? MF_UNCHECKED : MF_CHECKED)); |
| 640 WebWidget::showDebugPaintRects(!was_checked); |
| 641 break; |
| 642 } |
634 case IDM_SHOW_DEV_TOOLS: | 643 case IDM_SHOW_DEV_TOOLS: |
635 shell->ShowDevTools(); | 644 shell->ShowDevTools(); |
636 break; | 645 break; |
637 } | 646 } |
638 } | 647 } |
639 break; | 648 break; |
640 | 649 |
641 case WM_DESTROY: | 650 case WM_DESTROY: |
642 { | 651 { |
643 | 652 |
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
816 | 825 |
817 bool EnsureFontLoaded(HFONT font) { | 826 bool EnsureFontLoaded(HFONT font) { |
818 return true; | 827 return true; |
819 } | 828 } |
820 | 829 |
821 bool DownloadUrl(const std::string& url, HWND caller_window) { | 830 bool DownloadUrl(const std::string& url, HWND caller_window) { |
822 return false; | 831 return false; |
823 } | 832 } |
824 | 833 |
825 } // namespace webkit_glue | 834 } // namespace webkit_glue |
OLD | NEW |