summaryrefslogtreecommitdiffstats
path: root/WebKit/android/jni/WebCoreJniOnLoad.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebKit/android/jni/WebCoreJniOnLoad.cpp')
-rw-r--r--WebKit/android/jni/WebCoreJniOnLoad.cpp16
1 files changed, 7 insertions, 9 deletions
diff --git a/WebKit/android/jni/WebCoreJniOnLoad.cpp b/WebKit/android/jni/WebCoreJniOnLoad.cpp
index 396d97e..8d51f02 100644
--- a/WebKit/android/jni/WebCoreJniOnLoad.cpp
+++ b/WebKit/android/jni/WebCoreJniOnLoad.cpp
@@ -188,15 +188,13 @@ EXPORT void benchmark(const char* url, int reloadCount, int width, int height) {
// Create the page with all the various clients
ChromeClientAndroid* chrome = new ChromeClientAndroid;
EditorClientAndroid* editor = new EditorClientAndroid;
- Page* page = new Page(chrome,
- new ContextMenuClientAndroid,
- editor,
- new DragClientAndroid,
- new InspectorClientAndroid,
- 0, // PluginHalterClient
- 0, // GeolocationControllerClient
- 0, // DeviceOrientationClient
- 0); // BackForwardClient
+ WebCore::Page::PageClients pageClients;
+ pageClients.chromeClient = chrome;
+ pageClients.contextMenuClient = new ContextMenuClientAndroid;
+ pageClients.editorClient = editor;
+ pageClients.dragClient = new DragClientAndroid;
+ pageClients.inspectorClient = new InspectorClientAndroid;
+ WebCore::Page* page = new WebCore::Page(pageClients);
editor->setPage(page);
// Create MyWebFrame that intercepts network requests