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

Side by Side Diff: webkit/tools/test_shell/test_shell_mac.mm

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
« no previous file with comments | « webkit/tools/test_shell/test_shell_gtk.cc ('k') | webkit/tools/test_shell/test_shell_win.cc » ('j') | 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) 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
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
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
OLDNEW
« no previous file with comments | « webkit/tools/test_shell/test_shell_gtk.cc ('k') | webkit/tools/test_shell/test_shell_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698