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

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

Issue 48149: Use cocoa controls for HTML select popups in test_shell (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 9 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) 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 // This file contains the implementation of TestWebViewDelegate, which serves 5 // This file contains the implementation of TestWebViewDelegate, which serves
6 // as the WebViewDelegate for the TestShellWebHost. The host is expected to 6 // as the WebViewDelegate for the TestShellWebHost. The host is expected to
7 // have initialized a MessageLoop before these methods are called. 7 // have initialized a MessageLoop before these methods are called.
8 8
9 #include "webkit/tools/test_shell/test_webview_delegate.h" 9 #include "webkit/tools/test_shell/test_webview_delegate.h"
10 10
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 void TestWebViewDelegate::Show(WebWidget* webwidget, WindowOpenDisposition) { 71 void TestWebViewDelegate::Show(WebWidget* webwidget, WindowOpenDisposition) {
72 if (webwidget == shell_->webView()) { 72 if (webwidget == shell_->webView()) {
73 ShowWindow(shell_->mainWnd(), SW_SHOW); 73 ShowWindow(shell_->mainWnd(), SW_SHOW);
74 UpdateWindow(shell_->mainWnd()); 74 UpdateWindow(shell_->mainWnd());
75 } else if (webwidget == shell_->popup()) { 75 } else if (webwidget == shell_->popup()) {
76 ShowWindow(shell_->popupWnd(), SW_SHOW); 76 ShowWindow(shell_->popupWnd(), SW_SHOW);
77 UpdateWindow(shell_->popupWnd()); 77 UpdateWindow(shell_->popupWnd());
78 } 78 }
79 } 79 }
80 80
81 void TestWebViewDelegate::ShowWithItems(WebWidget* webwidget,
82 const gfx::Rect& bounds,
83 int item_height,
84 int selected_index,
85 const std::vector<MenuItem>& items) {
86 NOTIMPLEMENTED();
darin (slow to review) 2009/04/01 18:02:50 this macro suggests that this method should one da
87 }
88
81 void TestWebViewDelegate::CloseWidgetSoon(WebWidget* webwidget) { 89 void TestWebViewDelegate::CloseWidgetSoon(WebWidget* webwidget) {
82 if (webwidget == shell_->webView()) { 90 if (webwidget == shell_->webView()) {
83 PostMessage(shell_->mainWnd(), WM_CLOSE, 0, 0); 91 PostMessage(shell_->mainWnd(), WM_CLOSE, 0, 0);
84 } else if (webwidget == shell_->popup()) { 92 } else if (webwidget == shell_->popup()) {
85 shell_->ClosePopup(); 93 shell_->ClosePopup();
86 } 94 }
87 } 95 }
88 96
89 void TestWebViewDelegate::SetCursor(WebWidget* webwidget, 97 void TestWebViewDelegate::SetCursor(WebWidget* webwidget,
90 const WebCursor& cursor) { 98 const WebCursor& cursor) {
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 189
182 void TestWebViewDelegate::SetPageTitle(const std::wstring& title) { 190 void TestWebViewDelegate::SetPageTitle(const std::wstring& title) {
183 // The Windows test shell, pre-refactoring, ignored this. *shrug* 191 // The Windows test shell, pre-refactoring, ignored this. *shrug*
184 } 192 }
185 193
186 void TestWebViewDelegate::SetAddressBarURL(const GURL& url) { 194 void TestWebViewDelegate::SetAddressBarURL(const GURL& url) {
187 std::wstring url_string = UTF8ToWide(url.spec()); 195 std::wstring url_string = UTF8ToWide(url.spec());
188 SendMessage(shell_->editWnd(), WM_SETTEXT, 0, 196 SendMessage(shell_->editWnd(), WM_SETTEXT, 0,
189 reinterpret_cast<LPARAM>(url_string.c_str())); 197 reinterpret_cast<LPARAM>(url_string.c_str()));
190 } 198 }
OLDNEW
« webkit/glue/webwidget_impl.cc ('K') | « webkit/tools/test_shell/test_webview_delegate_gtk.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698