|
1 /******************************************************************************* |
|
2 * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. This program and the accompanying materials |
|
4 * are made available under the terms of the Eclipse Public License v1.0 |
|
5 * which accompanies this distribution, and is available at |
|
6 * http://www.eclipse.org/legal/epl-v10.html |
|
7 * |
|
8 * Contributors: |
|
9 * Nokia Corporation - initial implementation |
|
10 *******************************************************************************/ |
|
11 package org.eclipse.swt.internal.qt.webkit; |
|
12 |
|
13 import org.eclipse.swt.internal.Library; |
|
14 |
|
15 /** |
|
16 * Native methods requiring QtWebkit. They are separated to avoid |
|
17 * loading the related libraries until they are needed. |
|
18 */ |
|
19 public final class OS_webkit { |
|
20 static { |
|
21 Library.loadLibrary("eswtqtwebkit"); |
|
22 } |
|
23 |
|
24 // |
|
25 // QWebView |
|
26 // |
|
27 public static final native int QWebView_new(); |
|
28 public static final native void QWebView_back(int handle); |
|
29 public static final native void QWebView_forward(int handle); |
|
30 public static final native void QWebView_reload(int handle); |
|
31 public static final native void QWebView_setHtml(int handle, String html); |
|
32 public static final native void QWebView_setUrl(int handle, String url); |
|
33 public static final native void QWebView_stop(int handle); |
|
34 public static final native String QWebView_swt_backUrl(int handle); |
|
35 public static final native boolean QWebView_swt_canGoBack(int handle); |
|
36 public static final native boolean QWebView_swt_canGoForward(int handle); |
|
37 public static final native boolean QWebView_swt_evaluateJavaScript(int handle, String script); |
|
38 public static final native String QWebView_swt_forwardUrl(int handle); |
|
39 public static final native String QWebView_url(int handle); |
|
40 } |