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

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

Issue 196128: Hook up WebViewClient, part 1.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 3 months 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
OLDNEW
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 436 matching lines...) Expand 10 before | Expand all | Expand 10 after
447 447
448 // Wait to join the watchdog thread. (up to 1s, then quit) 448 // Wait to join the watchdog thread. (up to 1s, then quit)
449 WaitForSingleObject(thread_handle, 1000); 449 WaitForSingleObject(thread_handle, 1000);
450 } 450 }
451 451
452 void TestShell::InteractiveSetFocus(WebWidgetHost* host, bool enable) { 452 void TestShell::InteractiveSetFocus(WebWidgetHost* host, bool enable) {
453 if (!enable && ::GetFocus() == host->view_handle()) 453 if (!enable && ::GetFocus() == host->view_handle())
454 ::SetFocus(NULL); 454 ::SetFocus(NULL);
455 } 455 }
456 456
457 WebWidget* TestShell::CreatePopupWidget(WebView* webview) { 457 WebWidget* TestShell::CreatePopupWidget() {
458 DCHECK(!m_popupHost); 458 DCHECK(!m_popupHost);
459 m_popupHost = WebWidgetHost::Create(NULL, popup_delegate_.get()); 459 m_popupHost = WebWidgetHost::Create(NULL, popup_delegate_.get());
460 ShowWindow(popupWnd(), SW_SHOW); 460 ShowWindow(popupWnd(), SW_SHOW);
461 461
462 return m_popupHost->webwidget(); 462 return m_popupHost->webwidget();
463 } 463 }
464 464
465 void TestShell::ClosePopup() { 465 void TestShell::ClosePopup() {
466 PostMessage(popupWnd(), WM_CLOSE, 0, 0); 466 PostMessage(popupWnd(), WM_CLOSE, 0, 0);
467 m_popupHost = NULL; 467 m_popupHost = NULL;
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after
744 744
745 bool EnsureFontLoaded(HFONT font) { 745 bool EnsureFontLoaded(HFONT font) {
746 return true; 746 return true;
747 } 747 }
748 748
749 bool DownloadUrl(const std::string& url, HWND caller_window) { 749 bool DownloadUrl(const std::string& url, HWND caller_window) {
750 return false; 750 return false;
751 } 751 }
752 752
753 } // namespace webkit_glue 753 } // namespace webkit_glue
OLDNEW
« no previous file with comments | « webkit/tools/test_shell/test_shell_mac.mm ('k') | webkit/tools/test_shell/test_webview_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698