| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 <ApplicationServices/ApplicationServices.h> | 5 #include <ApplicationServices/ApplicationServices.h> |
| 6 #import <Cocoa/Cocoa.h> | 6 #import <Cocoa/Cocoa.h> |
| 7 #import <objc/objc-runtime.h> | 7 #import <objc/objc-runtime.h> |
| 8 #include <sys/stat.h> | 8 #include <sys/stat.h> |
| 9 | 9 |
| 10 #include "webkit/tools/test_shell/test_shell.h" | 10 #include "webkit/tools/test_shell/test_shell.h" |
| (...skipping 442 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 453 DCHECK(windowDelegate); | 453 DCHECK(windowDelegate); |
| 454 [windowHandle setDelegate:nil]; | 454 [windowHandle setDelegate:nil]; |
| 455 [windowDelegate release]; | 455 [windowDelegate release]; |
| 456 | 456 |
| 457 [windowHandle close]; | 457 [windowHandle close]; |
| 458 [windowHandle autorelease]; | 458 [windowHandle autorelease]; |
| 459 } | 459 } |
| 460 | 460 |
| 461 WebWidget* TestShell::CreatePopupWidget(WebView* webview) { | 461 WebWidget* TestShell::CreatePopupWidget(WebView* webview) { |
| 462 DCHECK(!m_popupHost); | 462 DCHECK(!m_popupHost); |
| 463 m_popupHost = WebWidgetHost::Create(NULL, delegate_.get()); | 463 m_popupHost = WebWidgetHost::Create(webViewWnd(), delegate_.get()); |
| 464 // ShowWindow(popupWnd(), SW_SHOW); | |
| 465 | 464 |
| 466 return m_popupHost->webwidget(); | 465 return m_popupHost->webwidget(); |
| 467 } | 466 } |
| 468 | 467 |
| 469 void TestShell::ClosePopup() { | 468 void TestShell::ClosePopup() { |
| 470 // PostMessage(popupWnd(), WM_CLOSE, 0, 0); | 469 // PostMessage(popupWnd(), WM_CLOSE, 0, 0); |
| 471 m_popupHost = NULL; | 470 m_popupHost = NULL; |
| 472 } | 471 } |
| 473 | 472 |
| 474 void TestShell::SizeTo(int width, int height) { | 473 void TestShell::SizeTo(int width, int height) { |
| (...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 705 return false; | 704 return false; |
| 706 } | 705 } |
| 707 | 706 |
| 708 void DidLoadPlugin(const std::string& filename) { | 707 void DidLoadPlugin(const std::string& filename) { |
| 709 } | 708 } |
| 710 | 709 |
| 711 void DidUnloadPlugin(const std::string& filename) { | 710 void DidUnloadPlugin(const std::string& filename) { |
| 712 } | 711 } |
| 713 | 712 |
| 714 } // namespace webkit_glue | 713 } // namespace webkit_glue |
| OLD | NEW |