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

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

Issue 67018: Chrome side of the WebKit popup changes. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 8 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') | no next file » | 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::ShowWithItems(WebWidget* webwidget, 84 void TestWebViewDelegate::ShowAsPopupWithItems(
85 const WebRect& bounds, 85 WebWidget* webwidget,
86 int item_height, 86 const WebRect& bounds,
87 int selected_index, 87 int item_height,
88 const std::vector<MenuItem>& items) { 88 int selected_index,
89 NOTIMPLEMENTED(); 89 const std::vector<WebMenuItem>& items) {
90 NOTREACHED();
90 } 91 }
91 92
92 void TestWebViewDelegate::CloseWidgetSoon(WebWidget* webwidget) { 93 void TestWebViewDelegate::CloseWidgetSoon(WebWidget* webwidget) {
93 if (webwidget == shell_->webView()) { 94 if (webwidget == shell_->webView()) {
94 PostMessage(shell_->mainWnd(), WM_CLOSE, 0, 0); 95 PostMessage(shell_->mainWnd(), WM_CLOSE, 0, 0);
95 } else if (webwidget == shell_->popup()) { 96 } else if (webwidget == shell_->popup()) {
96 shell_->ClosePopup(); 97 shell_->ClosePopup();
97 } 98 }
98 } 99 }
99 100
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 180
180 void TestWebViewDelegate::SetPageTitle(const std::wstring& title) { 181 void TestWebViewDelegate::SetPageTitle(const std::wstring& title) {
181 // The Windows test shell, pre-refactoring, ignored this. *shrug* 182 // The Windows test shell, pre-refactoring, ignored this. *shrug*
182 } 183 }
183 184
184 void TestWebViewDelegate::SetAddressBarURL(const GURL& url) { 185 void TestWebViewDelegate::SetAddressBarURL(const GURL& url) {
185 std::wstring url_string = UTF8ToWide(url.spec()); 186 std::wstring url_string = UTF8ToWide(url.spec());
186 SendMessage(shell_->editWnd(), WM_SETTEXT, 0, 187 SendMessage(shell_->editWnd(), WM_SETTEXT, 0,
187 reinterpret_cast<LPARAM>(url_string.c_str())); 188 reinterpret_cast<LPARAM>(url_string.c_str()));
188 } 189 }
OLDNEW
« no previous file with comments | « 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