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 3 // found in the LICENSE file. 4 5 package org.chromium.content.browser; 6 7 import java.lang.annotation.ElementType; 8 import java.lang.annotation.Retention; 9 import java.lang.annotation.RetentionPolicy; 10 import java.lang.annotation.Target; 11 12 /** 13 * Marks a method as being able to be exposed to JavaScript. This is used for safety purposes so 14 * that only explicitly marked methods get exposed instead of every method in a class. 15 * @see {@link ContentViewCore#addJavascriptInterface(Class, String, boolean)} 16 */ 17 @SuppressWarnings("javadoc") 18 @Retention(RetentionPolicy.RUNTIME) 19 @Target({ElementType.METHOD}) 20 public @interface JavascriptInterface { 21 }