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

Side by Side Diff: webkit/tools/test_shell/mac/test_webview_delegate.mm

Issue 387020: Upstreaming WebKit.gyp (Closed)
Patch Set: Created 11 years, 1 month 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
OLDNEW
1 // Copyright (c) 2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 "webkit/tools/test_shell/test_webview_delegate.h" 5 #include "webkit/tools/test_shell/test_webview_delegate.h"
6 6
7 #import <Cocoa/Cocoa.h> 7 #import <Cocoa/Cocoa.h>
8 #include "base/string_util.h" 8 #include "base/string_util.h"
9 #include "base/sys_string_conversions.h" 9 #include "base/sys_string_conversions.h"
10 #include "webkit/api/public/WebCursorInfo.h" 10 #include "third_party/WebKit/WebKit/chromium/public/WebCursorInfo.h"
11 #include "webkit/api/public/WebPopupMenu.h" 11 #include "third_party/WebKit/WebKit/chromium/public/WebPopupMenu.h"
12 #include "webkit/api/public/WebView.h" 12 #include "third_party/WebKit/WebKit/chromium/public/WebView.h"
13 #include "webkit/glue/webcursor.h" 13 #include "webkit/glue/webcursor.h"
14 #include "webkit/glue/plugins/plugin_list.h" 14 #include "webkit/glue/plugins/plugin_list.h"
15 #include "webkit/glue/plugins/webplugin_delegate_impl.h" 15 #include "webkit/glue/plugins/webplugin_delegate_impl.h"
16 #include "webkit/glue/webmenurunner_mac.h" 16 #include "webkit/glue/webmenurunner_mac.h"
17 #include "webkit/tools/test_shell/test_shell.h" 17 #include "webkit/tools/test_shell/test_shell.h"
18 18
19 using WebKit::WebCursorInfo; 19 using WebKit::WebCursorInfo;
20 using WebKit::WebNavigationPolicy; 20 using WebKit::WebNavigationPolicy;
21 using WebKit::WebPopupMenu; 21 using WebKit::WebPopupMenu;
22 using WebKit::WebPopupMenuInfo; 22 using WebKit::WebPopupMenuInfo;
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 void TestWebViewDelegate::SetPageTitle(const std::wstring& title) { 221 void TestWebViewDelegate::SetPageTitle(const std::wstring& title) {
222 [[shell_->webViewHost()->view_handle() window] 222 [[shell_->webViewHost()->view_handle() window]
223 setTitle:[NSString stringWithUTF8String:WideToUTF8(title).c_str()]]; 223 setTitle:[NSString stringWithUTF8String:WideToUTF8(title).c_str()]];
224 } 224 }
225 225
226 void TestWebViewDelegate::SetAddressBarURL(const GURL& url) { 226 void TestWebViewDelegate::SetAddressBarURL(const GURL& url) {
227 const char* frameURL = url.spec().c_str(); 227 const char* frameURL = url.spec().c_str();
228 NSString *address = [NSString stringWithUTF8String:frameURL]; 228 NSString *address = [NSString stringWithUTF8String:frameURL];
229 [shell_->editWnd() setStringValue:address]; 229 [shell_->editWnd() setStringValue:address];
230 } 230 }
OLDNEW
« no previous file with comments | « webkit/tools/test_shell/mac/test_shell_webview.mm ('k') | webkit/tools/test_shell/mac/webview_host.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698