Upstream version 9.37.193.0
[platform/framework/web/crosswalk.git] / src / xwalk / runtime / android / core / src / org / xwalk / core / XWalkJavascriptResultHandler.java
1 // Copyright (c) 2014 Intel Corporation. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 package org.xwalk.core;
6
7 import org.xwalk.core.internal.XWalkJavascriptResultInternal;
8
9 final class XWalkJavascriptResultHandler implements XWalkJavascriptResult{
10
11     private XWalkJavascriptResultInternal internal;
12
13     XWalkJavascriptResultHandler(XWalkJavascriptResultInternal internal) {
14         this.internal = internal;
15     }
16
17     XWalkJavascriptResultInternal getInternal() {
18         return this.internal;
19     }
20
21     public void confirm() {
22         internal.confirm();
23     }
24
25     public void confirmWithResult(final String promptResult) {
26         internal.confirmWithResult(promptResult);
27     }
28
29     public void cancel() {
30         internal.cancel();
31     }
32 }