mirror of
https://github.com/servo/servo.git
synced 2025-08-16 10:55:34 +01:00
Add support for market:// urls
This commit is contained in:
parent
a2b195aff8
commit
027514c3e6
6 changed files with 60 additions and 2 deletions
|
@ -169,6 +169,8 @@ public class Servo {
|
|||
}
|
||||
|
||||
public interface Client {
|
||||
boolean onAllowNavigation(String url);
|
||||
|
||||
void onLoadStarted();
|
||||
|
||||
void onLoadEnded();
|
||||
|
@ -234,6 +236,10 @@ public class Servo {
|
|||
mRunCallback.inGLThread(() -> mGfxCb.animationStateChanged(animating));
|
||||
}
|
||||
|
||||
public boolean onAllowNavigation(String url) {
|
||||
return mClient.onAllowNavigation(url);
|
||||
}
|
||||
|
||||
public void onLoadStarted() {
|
||||
mRunCallback.inUIThread(() -> mClient.onLoadStarted());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue