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

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

Issue 155378: Replace ShowAsPopupWithItems to CreatePopupWidgetWithInfo. Also,... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 5 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_webview_delegate_gtk.cc ('k') | webkit/webkit.gyp » ('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 // 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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 void TestWebViewDelegate::Show(WebWidget* webwidget, WindowOpenDisposition) { 74 void TestWebViewDelegate::Show(WebWidget* webwidget, WindowOpenDisposition) {
75 if (webwidget == shell_->webView()) { 75 if (webwidget == shell_->webView()) {
76 ShowWindow(shell_->mainWnd(), SW_SHOW); 76 ShowWindow(shell_->mainWnd(), SW_SHOW);
77 UpdateWindow(shell_->mainWnd()); 77 UpdateWindow(shell_->mainWnd());
78 } else if (webwidget == shell_->popup()) { 78 } else if (webwidget == shell_->popup()) {
79 ShowWindow(shell_->popupWnd(), SW_SHOW); 79 ShowWindow(shell_->popupWnd(), SW_SHOW);
80 UpdateWindow(shell_->popupWnd()); 80 UpdateWindow(shell_->popupWnd());
81 } 81 }
82 } 82 }
83 83
84 void TestWebViewDelegate::ShowAsPopupWithItems(
85 WebWidget* webwidget,
86 const WebRect& bounds,
87 int item_height,
88 int selected_index,
89 const std::vector<WebMenuItem>& items) {
90 NOTREACHED();
91 }
92
93 void TestWebViewDelegate::CloseWidgetSoon(WebWidget* webwidget) { 84 void TestWebViewDelegate::CloseWidgetSoon(WebWidget* webwidget) {
94 if (webwidget == shell_->webView()) { 85 if (webwidget == shell_->webView()) {
95 PostMessage(shell_->mainWnd(), WM_CLOSE, 0, 0); 86 PostMessage(shell_->mainWnd(), WM_CLOSE, 0, 0);
96 } else if (webwidget == shell_->popup()) { 87 } else if (webwidget == shell_->popup()) {
97 shell_->ClosePopup(); 88 shell_->ClosePopup();
98 } 89 }
99 } 90 }
100 91
101 void TestWebViewDelegate::SetCursor(WebWidget* webwidget, 92 void TestWebViewDelegate::SetCursor(WebWidget* webwidget,
102 const WebCursorInfo& cursor_info) { 93 const WebCursorInfo& cursor_info) {
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 183
193 void TestWebViewDelegate::SetPageTitle(const std::wstring& title) { 184 void TestWebViewDelegate::SetPageTitle(const std::wstring& title) {
194 // The Windows test shell, pre-refactoring, ignored this. *shrug* 185 // The Windows test shell, pre-refactoring, ignored this. *shrug*
195 } 186 }
196 187
197 void TestWebViewDelegate::SetAddressBarURL(const GURL& url) { 188 void TestWebViewDelegate::SetAddressBarURL(const GURL& url) {
198 std::wstring url_string = UTF8ToWide(url.spec()); 189 std::wstring url_string = UTF8ToWide(url.spec());
199 SendMessage(shell_->editWnd(), WM_SETTEXT, 0, 190 SendMessage(shell_->editWnd(), WM_SETTEXT, 0,
200 reinterpret_cast<LPARAM>(url_string.c_str())); 191 reinterpret_cast<LPARAM>(url_string.c_str()));
201 } 192 }
OLDNEW
« no previous file with comments | « webkit/tools/test_shell/test_webview_delegate_gtk.cc ('k') | webkit/webkit.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698