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

Side by Side Diff: webkit/tools/test_shell/test_webview_delegate.h

Issue 5996003: Revert "Revert 69755 - Move the NPAPI files from webkit/glue/plugins to webkit/plugins/npapi" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 10 years 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
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 // TestWebViewDelegate class: 5 // TestWebViewDelegate class:
6 // This class implements the WebViewDelegate methods for the test shell. One 6 // This class implements the WebViewDelegate methods for the test shell. One
7 // instance is owned by each TestShell. 7 // instance is owned by each TestShell.
8 8
9 #ifndef WEBKIT_TOOLS_TEST_SHELL_TEST_WEBVIEW_DELEGATE_H_ 9 #ifndef WEBKIT_TOOLS_TEST_SHELL_TEST_WEBVIEW_DELEGATE_H_
10 #define WEBKIT_TOOLS_TEST_SHELL_TEST_WEBVIEW_DELEGATE_H_ 10 #define WEBKIT_TOOLS_TEST_SHELL_TEST_WEBVIEW_DELEGATE_H_
11 11
12 #include "build/build_config.h"
13
14 #if defined(OS_WIN)
15 #include <windows.h>
16 #endif
17
18 #include <map> 12 #include <map>
19 #include <set> 13 #include <set>
20 #include <string> 14 #include <string>
21 15
16 #include "base/basictypes.h"
17 #include "base/scoped_ptr.h"
18 #include "base/weak_ptr.h"
19 #include "build/build_config.h"
20 #include "third_party/WebKit/WebKit/chromium/public/WebContextMenuData.h"
21 #include "third_party/WebKit/WebKit/chromium/public/WebFileSystem.h"
22 #include "third_party/WebKit/WebKit/chromium/public/WebFrameClient.h"
23 #include "third_party/WebKit/WebKit/chromium/public/WebRect.h"
24 #include "third_party/WebKit/WebKit/chromium/public/WebPopupType.h"
25 #include "third_party/WebKit/WebKit/chromium/public/WebViewClient.h"
26 #include "webkit/glue/webcursor.h"
27 #include "webkit/plugins/npapi/webplugin_page_delegate.h"
28 #include "webkit/tools/test_shell/mock_spellcheck.h"
29 #include "webkit/tools/test_shell/test_navigation_controller.h"
30
31 #if defined(OS_MACOSX)
32 #include "third_party/WebKit/WebKit/chromium/public/WebPopupMenuInfo.h"
33 #endif
34
35 #if defined(OS_WIN)
36 #include <windows.h>
37
38 #include "webkit/tools/test_shell/drag_delegate.h"
39 #include "webkit/tools/test_shell/drop_delegate.h"
40 #endif
41
22 #if defined(TOOLKIT_USES_GTK) 42 #if defined(TOOLKIT_USES_GTK)
23 #include <gdk/gdkcursor.h> 43 #include <gdk/gdkcursor.h>
24 #endif 44 #endif
25 45
26 #include "base/basictypes.h"
27 #include "base/scoped_ptr.h"
28 #include "base/weak_ptr.h"
29 #include "third_party/WebKit/WebKit/chromium/public/WebContextMenuData.h"
30 #include "third_party/WebKit/WebKit/chromium/public/WebFileSystem.h"
31 #include "third_party/WebKit/WebKit/chromium/public/WebFrameClient.h"
32 #include "third_party/WebKit/WebKit/chromium/public/WebRect.h"
33 #if defined(OS_MACOSX)
34 #include "third_party/WebKit/WebKit/chromium/public/WebPopupMenuInfo.h"
35 #endif
36 #include "third_party/WebKit/WebKit/chromium/public/WebPopupType.h"
37 #include "third_party/WebKit/WebKit/chromium/public/WebViewClient.h"
38 #include "webkit/glue/webcursor.h"
39 #include "webkit/glue/plugins/webplugin_page_delegate.h"
40 #if defined(OS_WIN)
41 #include "webkit/tools/test_shell/drag_delegate.h"
42 #include "webkit/tools/test_shell/drop_delegate.h"
43 #endif
44 #include "webkit/tools/test_shell/mock_spellcheck.h"
45 #include "webkit/tools/test_shell/test_navigation_controller.h"
46
47 struct WebPreferences; 46 struct WebPreferences;
48 class GURL; 47 class GURL;
49 class TestGeolocationService; 48 class TestGeolocationService;
50 class TestShell; 49 class TestShell;
51 class WebWidgetHost; 50 class WebWidgetHost;
52 51
53 namespace WebKit { 52 namespace WebKit {
54 class WebDeviceOrientationClient; 53 class WebDeviceOrientationClient;
55 class WebSpeechInputController; 54 class WebSpeechInputController;
56 class WebSpeechInputListener; 55 class WebSpeechInputListener;
57 class WebStorageNamespace; 56 class WebStorageNamespace;
58 struct WebWindowFeatures; 57 struct WebWindowFeatures;
59 } 58 }
60 59
61 class TestWebViewDelegate : public WebKit::WebViewClient, 60 class TestWebViewDelegate : public WebKit::WebViewClient,
62 public WebKit::WebFrameClient, 61 public WebKit::WebFrameClient,
63 public webkit_glue::WebPluginPageDelegate, 62 public webkit::npapi::WebPluginPageDelegate,
64 public base::SupportsWeakPtr<TestWebViewDelegate> { 63 public base::SupportsWeakPtr<TestWebViewDelegate> {
65 public: 64 public:
66 struct CapturedContextMenuEvent { 65 struct CapturedContextMenuEvent {
67 CapturedContextMenuEvent(int in_node_type, 66 CapturedContextMenuEvent(int in_node_type,
68 int in_x, 67 int in_x,
69 int in_y) 68 int in_y)
70 : node_type(in_node_type), 69 : node_type(in_node_type),
71 x(in_x), 70 x(in_x),
72 y(in_y) { 71 y(in_y) {
73 } 72 }
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 virtual void didRunInsecureContent( 231 virtual void didRunInsecureContent(
233 WebKit::WebFrame* frame, const WebKit::WebSecurityOrigin& origin); 232 WebKit::WebFrame* frame, const WebKit::WebSecurityOrigin& origin);
234 virtual bool allowScript(WebKit::WebFrame* frame, bool enabled_per_settings); 233 virtual bool allowScript(WebKit::WebFrame* frame, bool enabled_per_settings);
235 virtual void openFileSystem( 234 virtual void openFileSystem(
236 WebKit::WebFrame* frame, 235 WebKit::WebFrame* frame,
237 WebKit::WebFileSystem::Type type, 236 WebKit::WebFileSystem::Type type,
238 long long size, 237 long long size,
239 bool create, 238 bool create,
240 WebKit::WebFileSystemCallbacks* callbacks); 239 WebKit::WebFileSystemCallbacks* callbacks);
241 240
242 // webkit_glue::WebPluginPageDelegate 241 // webkit::npapi::WebPluginPageDelegate
243 virtual webkit_glue::WebPluginDelegate* CreatePluginDelegate( 242 virtual webkit::npapi::WebPluginDelegate* CreatePluginDelegate(
244 const FilePath& url, 243 const FilePath& url,
245 const std::string& mime_type); 244 const std::string& mime_type);
246 virtual void CreatedPluginWindow( 245 virtual void CreatedPluginWindow(
247 gfx::PluginWindowHandle handle); 246 gfx::PluginWindowHandle handle);
248 virtual void WillDestroyPluginWindow( 247 virtual void WillDestroyPluginWindow(
249 gfx::PluginWindowHandle handle); 248 gfx::PluginWindowHandle handle);
250 virtual void DidMovePlugin( 249 virtual void DidMovePlugin(
251 const webkit_glue::WebPluginGeometry& move); 250 const webkit::npapi::WebPluginGeometry& move);
252 virtual void DidStartLoadingForPlugin() {} 251 virtual void DidStartLoadingForPlugin() {}
253 virtual void DidStopLoadingForPlugin() {} 252 virtual void DidStopLoadingForPlugin() {}
254 virtual void ShowModalHTMLDialogForPlugin( 253 virtual void ShowModalHTMLDialogForPlugin(
255 const GURL& url, 254 const GURL& url,
256 const gfx::Size& size, 255 const gfx::Size& size,
257 const std::string& json_arguments, 256 const std::string& json_arguments,
258 std::string* json_retval) {} 257 std::string* json_retval) {}
259 virtual WebKit::WebCookieJar* GetCookieJar(); 258 virtual WebKit::WebCookieJar* GetCookieJar();
260 259
261 TestWebViewDelegate(TestShell* shell); 260 TestWebViewDelegate(TestShell* shell);
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
468 MockSpellCheck mock_spellcheck_; 467 MockSpellCheck mock_spellcheck_;
469 468
470 #if !defined(ENABLE_CLIENT_BASED_GEOLOCATION) 469 #if !defined(ENABLE_CLIENT_BASED_GEOLOCATION)
471 scoped_ptr<TestGeolocationService> test_geolocation_service_; 470 scoped_ptr<TestGeolocationService> test_geolocation_service_;
472 #endif 471 #endif
473 472
474 DISALLOW_COPY_AND_ASSIGN(TestWebViewDelegate); 473 DISALLOW_COPY_AND_ASSIGN(TestWebViewDelegate);
475 }; 474 };
476 475
477 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_WEBVIEW_DELEGATE_H_ 476 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_WEBVIEW_DELEGATE_H_
OLDNEW
« no previous file with comments | « webkit/tools/test_shell/test_shell_mac.mm ('k') | webkit/tools/test_shell/test_webview_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698