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

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

Issue 93116: Chrome side of using WebPluginListBuilder.... (Closed) Base URL: svn://svn.chromium.org/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/glue/webplugininfo.h ('k') | webkit/tools/test_shell/test_webview_delegate_win.cc » ('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) 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 // This file was forked off the Mac port. 5 // This file was forked off the Mac port.
6 6
7 #include "webkit/tools/test_shell/test_webview_delegate.h" 7 #include "webkit/tools/test_shell/test_webview_delegate.h"
8 8
9 #include <gtk/gtk.h> 9 #include <gtk/gtk.h>
10 10
11 #include "base/gfx/gtk_util.h" 11 #include "base/gfx/gtk_util.h"
12 #include "base/gfx/point.h" 12 #include "base/gfx/point.h"
13 #include "base/message_loop.h" 13 #include "base/message_loop.h"
14 #include "base/string_util.h" 14 #include "base/string_util.h"
15 #include "net/base/net_errors.h" 15 #include "net/base/net_errors.h"
16 #include "chrome/common/page_transition_types.h" 16 #include "chrome/common/page_transition_types.h"
17 #include "third_party/WebKit/WebKit/chromium/public/WebRect.h" 17 #include "third_party/WebKit/WebKit/chromium/public/WebRect.h"
18 #include "webkit/glue/webcursor.h" 18 #include "webkit/glue/webcursor.h"
19 #include "webkit/glue/webdatasource.h" 19 #include "webkit/glue/webdatasource.h"
20 #include "webkit/glue/webdropdata.h" 20 #include "webkit/glue/webdropdata.h"
21 #include "webkit/glue/weberror.h" 21 #include "webkit/glue/weberror.h"
22 #include "webkit/glue/webframe.h" 22 #include "webkit/glue/webframe.h"
23 #include "webkit/glue/webpreferences.h" 23 #include "webkit/glue/webpreferences.h"
24 #include "webkit/glue/webplugin.h"
24 #include "webkit/glue/weburlrequest.h" 25 #include "webkit/glue/weburlrequest.h"
25 #include "webkit/glue/webkit_glue.h" 26 #include "webkit/glue/webkit_glue.h"
26 #include "webkit/glue/webview.h" 27 #include "webkit/glue/webview.h"
27 #include "webkit/glue/plugins/plugin_list.h" 28 #include "webkit/glue/plugins/plugin_list.h"
28 #include "webkit/glue/window_open_disposition.h" 29 #include "webkit/glue/window_open_disposition.h"
29 #include "webkit/glue/plugins/webplugin_delegate_impl.h" 30 #include "webkit/glue/plugins/webplugin_delegate_impl.h"
30 #include "webkit/tools/test_shell/test_navigation_controller.h" 31 #include "webkit/tools/test_shell/test_navigation_controller.h"
31 #include "webkit/tools/test_shell/test_shell.h" 32 #include "webkit/tools/test_shell/test_shell.h"
32 33
33 using WebKit::WebRect; 34 using WebKit::WebRect;
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 // Private methods ----------------------------------------------------------- 288 // Private methods -----------------------------------------------------------
288 289
289 void TestWebViewDelegate::SetPageTitle(const std::wstring& title) { 290 void TestWebViewDelegate::SetPageTitle(const std::wstring& title) {
290 gtk_window_set_title(GTK_WINDOW(shell_->mainWnd()), 291 gtk_window_set_title(GTK_WINDOW(shell_->mainWnd()),
291 ("Test Shell - " + WideToUTF8(title)).c_str()); 292 ("Test Shell - " + WideToUTF8(title)).c_str());
292 } 293 }
293 294
294 void TestWebViewDelegate::SetAddressBarURL(const GURL& url) { 295 void TestWebViewDelegate::SetAddressBarURL(const GURL& url) {
295 gtk_entry_set_text(GTK_ENTRY(shell_->editWnd()), url.spec().c_str()); 296 gtk_entry_set_text(GTK_ENTRY(shell_->editWnd()), url.spec().c_str());
296 } 297 }
OLDNEW
« no previous file with comments | « webkit/glue/webplugininfo.h ('k') | webkit/tools/test_shell/test_webview_delegate_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698