| 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 435 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 446 | 446 |
| 447 id windowDelegate = [windowHandle delegate]; | 447 id windowDelegate = [windowHandle delegate]; |
| 448 DCHECK(windowDelegate); | 448 DCHECK(windowDelegate); |
| 449 [windowHandle setDelegate:nil]; | 449 [windowHandle setDelegate:nil]; |
| 450 [windowDelegate release]; | 450 [windowDelegate release]; |
| 451 | 451 |
| 452 [windowHandle close]; | 452 [windowHandle close]; |
| 453 [windowHandle autorelease]; | 453 [windowHandle autorelease]; |
| 454 } | 454 } |
| 455 | 455 |
| 456 WebWidget* TestShell::CreatePopupWidget(WebView* webview) { | 456 WebWidget* TestShell::CreatePopupWidget() { |
| 457 DCHECK(!m_popupHost); | 457 DCHECK(!m_popupHost); |
| 458 m_popupHost = WebWidgetHost::Create(webViewWnd(), popup_delegate_.get()); | 458 m_popupHost = WebWidgetHost::Create(webViewWnd(), popup_delegate_.get()); |
| 459 | 459 |
| 460 return m_popupHost->webwidget(); | 460 return m_popupHost->webwidget(); |
| 461 } | 461 } |
| 462 | 462 |
| 463 void TestShell::ClosePopup() { | 463 void TestShell::ClosePopup() { |
| 464 // PostMessage(popupWnd(), WM_CLOSE, 0, 0); | 464 // PostMessage(popupWnd(), WM_CLOSE, 0, 0); |
| 465 m_popupHost = NULL; | 465 m_popupHost = NULL; |
| 466 } | 466 } |
| (...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 689 return false; | 689 return false; |
| 690 } | 690 } |
| 691 | 691 |
| 692 void DidLoadPlugin(const std::string& filename) { | 692 void DidLoadPlugin(const std::string& filename) { |
| 693 } | 693 } |
| 694 | 694 |
| 695 void DidUnloadPlugin(const std::string& filename) { | 695 void DidUnloadPlugin(const std::string& filename) { |
| 696 } | 696 } |
| 697 | 697 |
| 698 } // namespace webkit_glue | 698 } // namespace webkit_glue |
| OLD | NEW |