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

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

Issue 259047: Move classes depending on Skia out of base/gfx and into app/gfx. Rename... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 2 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) 2009 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
11 #include <objidl.h> 11 #include <objidl.h>
12 #include <shlobj.h> 12 #include <shlobj.h>
13 #include <shlwapi.h> 13 #include <shlwapi.h>
14 14
15 #include "base/gfx/gdi_util.h" 15 #include "app/gfx/gdi_util.h"
16 #include "base/gfx/native_widget_types.h" 16 #include "base/gfx/native_widget_types.h"
17 #include "base/gfx/point.h" 17 #include "base/gfx/point.h"
18 #include "base/message_loop.h" 18 #include "base/message_loop.h"
19 #include "base/string_util.h" 19 #include "base/string_util.h"
20 #include "base/trace_event.h" 20 #include "base/trace_event.h"
21 #include "net/base/net_errors.h" 21 #include "net/base/net_errors.h"
22 #include "webkit/api/public/WebCursorInfo.h" 22 #include "webkit/api/public/WebCursorInfo.h"
23 #include "webkit/api/public/WebFrame.h" 23 #include "webkit/api/public/WebFrame.h"
24 #include "webkit/api/public/WebRect.h" 24 #include "webkit/api/public/WebRect.h"
25 #include "webkit/glue/webdropdata.h" 25 #include "webkit/glue/webdropdata.h"
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 210
211 void TestWebViewDelegate::SetPageTitle(const std::wstring& title) { 211 void TestWebViewDelegate::SetPageTitle(const std::wstring& title) {
212 // The Windows test shell, pre-refactoring, ignored this. *shrug* 212 // The Windows test shell, pre-refactoring, ignored this. *shrug*
213 } 213 }
214 214
215 void TestWebViewDelegate::SetAddressBarURL(const GURL& url) { 215 void TestWebViewDelegate::SetAddressBarURL(const GURL& url) {
216 std::wstring url_string = UTF8ToWide(url.spec()); 216 std::wstring url_string = UTF8ToWide(url.spec());
217 SendMessage(shell_->editWnd(), WM_SETTEXT, 0, 217 SendMessage(shell_->editWnd(), WM_SETTEXT, 0,
218 reinterpret_cast<LPARAM>(url_string.c_str())); 218 reinterpret_cast<LPARAM>(url_string.c_str()));
219 } 219 }
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