Skip to content

Commit

Permalink
#11 work
Browse files Browse the repository at this point in the history
  • Loading branch information
BFergerson committed Jun 13, 2019
1 parent 130bc78 commit 017d1ea
Show file tree
Hide file tree
Showing 5 changed files with 490 additions and 11 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ dependencies {
compile fileTree(dir: 'jcef/binary_distrib/win32/bin/', include: '*.jar')
compile fileTree(dir: 'jcef/binary_distrib/win64/bin/', include: '*.jar')
compile fileTree(dir: 'jcef/jcef_build/native/Release', include: '*.jar')
compileOnly 'com.github.bfergerson:joor:9933e481b0'
compileOnly 'com.github.bfergerson:joor:bef9254b2a'
}

task createProperties(dependsOn: processResources) {
Expand Down
15 changes: 11 additions & 4 deletions src/main/java/com/codebrig/journey/proxy/CefAppProxy.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,21 @@
@SuppressWarnings("unused")
public interface CefAppProxy extends Reflect.ProxyObject {

Reflect.ProxyValueConverter PROXY_VALUE_CONVERTER = (name, o) -> {
if ("createClient".equals(name)) {
return Reflect.on(o).as(CefClientProxy.class);
Reflect.ProxyArgumentsConverter PROXY_ARGUMENTS_CONVERTER = (methodName, args) -> {
};

Reflect.ProxyValueConverter PROXY_VALUE_CONVERTER = (methodName, returnValue) -> {
if ("createClient".equals(methodName)) {
return Reflect.on(returnValue).as(CefClientProxy.class);
}
return o;
return returnValue;
};

void dispose();

CefClientProxy createClient();

boolean clearSchemeHandlerFactories();

void doMessageLoopWork(long delayMs);
}
Loading

0 comments on commit 017d1ea

Please sign in to comment.