16e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles)// Copyright 2014 The Chromium Authors. All rights reserved. 26e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles)// Use of this source code is governed by a BSD-style license that can be 36e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles)// found in the LICENSE file. 46e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles) 56e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles)package org.chromium.content_public.browser; 66e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles) 76e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles)/** Callback interface for WebContents evaluateJavaScript(). */ 86e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles)public interface JavaScriptCallback { 96e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles) /** 106e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles) * Called from native in response to evaluateJavaScript(). 116e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles) * @param jsonResult json result curresponds to JS execution 126e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles) */ 136e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles) void handleJavaScriptResult(String jsonResult); 146e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles)} 15