Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(158)

Side by Side Diff: webkit/tools/test_shell/test_shell_win.cc

Issue 8888022: Remove MessageLoop::QuitTask() from webkit. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « webkit/tools/test_shell/test_shell_gtk.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « webkit/tools/test_shell/test_shell_gtk.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698