Skip to content

Commit e4531c4

Browse files
authored
Support Native Image for Edge, fix whitespaces for indentation
1 parent f541464 commit e4531c4

File tree

1 file changed

+14
-14
lines changed
  • bundles/org.eclipse.swt/Eclipse SWT Browser/win32/org/eclipse/swt/browser

1 file changed

+14
-14
lines changed

bundles/org.eclipse.swt/Eclipse SWT Browser/win32/org/eclipse/swt/browser/Edge.java

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -234,19 +234,19 @@ static void error(int code, int hr) {
234234
}
235235

236236
static class HandleCoreWebView2SwtCallback implements ICoreWebView2SwtCallback {
237-
private final ICoreWebView2SwtCallback handler;
238-
public HandleCoreWebView2SwtCallback(ICoreWebView2SwtCallback handler) {
239-
this.handler = handler;
240-
}
241-
@Override
242-
public int Invoke(long arg0, long arg1) {
237+
private final ICoreWebView2SwtCallback handler;
238+
public HandleCoreWebView2SwtCallback(ICoreWebView2SwtCallback handler) {
239+
this.handler = handler;
240+
}
241+
@Override
242+
public int Invoke(long arg0, long arg1) {
243243
inCallback++;
244244
try {
245245
return handler.Invoke(arg0, arg1);
246246
} finally {
247247
inCallback--;
248248
}
249-
}
249+
}
250250
}
251251

252252
static IUnknown newCallback(ICoreWebView2SwtCallback handler) {
@@ -1030,12 +1030,12 @@ int handleDocumentTitleChanged(long pView, long pArgs) {
10301030
}
10311031

10321032
static class HandleCoreWebView2SwtHost implements ICoreWebView2SwtHost {
1033-
private final Map<Integer, BrowserFunction> functions;
1034-
public HandleCoreWebView2SwtHost(Map<Integer, BrowserFunction> functions) {
1035-
this.functions = functions;
1036-
}
1037-
@Override
1038-
public long CallJava(int index, long bstrToken, long bstrArgsJson) {
1033+
private final Map<Integer, BrowserFunction> functions;
1034+
public HandleCoreWebView2SwtHost(Map<Integer, BrowserFunction> functions) {
1035+
this.functions = functions;
1036+
}
1037+
@Override
1038+
public long CallJava(int index, long bstrToken, long bstrArgsJson) {
10391039
Object result = null;
10401040
String token = bstrToString(bstrToken);
10411041
BrowserFunction function = functions.get(index);
@@ -1053,7 +1053,7 @@ public long CallJava(int index, long bstrToken, long bstrArgsJson) {
10531053
}
10541054
String json = JSON.stringify(result);
10551055
return COM.SysAllocStringLen(json.toCharArray(), json.length());
1056-
}
1056+
}
10571057
}
10581058

10591059
int handleFrameNavigationStarting(long pView, long pArgs) {

0 commit comments

Comments
 (0)