OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 package org.chromium.android_webview; | 5 package org.chromium.android_webview; |
6 | 6 |
7 import org.chromium.base.ThreadUtils; | 7 import org.chromium.base.ThreadUtils; |
8 | 8 |
9 class JsResultHandler implements JsResultReceiver, JsPromptResultReceiver { | 9 class JsResultHandler implements JsResultReceiver, JsPromptResultReceiver { |
10 private AwContentsClientBridge mBridge; | 10 private AwContentsClientBridge mBridge; |
11 private final int mId; | 11 private final int mId; |
(...skipping 25 matching lines...) Expand all Loading... |
37 ThreadUtils.runOnUiThread(new Runnable() { | 37 ThreadUtils.runOnUiThread(new Runnable() { |
38 @Override | 38 @Override |
39 public void run() { | 39 public void run() { |
40 if (mBridge != null) | 40 if (mBridge != null) |
41 mBridge.cancelJsResult(mId); | 41 mBridge.cancelJsResult(mId); |
42 mBridge = null; | 42 mBridge = null; |
43 } | 43 } |
44 }); | 44 }); |
45 } | 45 } |
46 } | 46 } |
OLD | NEW |