Commit 0f9a254e authored by aurimas's avatar aurimas Committed by Commit bot

Introduce @CalledByReflection annotation.

BUG=163393

Review URL: https://codereview.chromium.org/509753002

Cr-Commit-Position: refs/heads/master@{#292394}
parent c6379952
......@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.net;
package org.chromium.base;
import java.lang.annotation.ElementType;
import java.lang.annotation.Target;
......
......@@ -7,6 +7,8 @@ package org.chromium.net;
import android.content.Context;
import android.os.Build;
import org.chromium.base.UsedByReflection;
import java.nio.channels.WritableByteChannel;
import java.util.Map;
......
......@@ -6,6 +6,8 @@ package org.chromium.content.browser;
import android.os.Handler;
import org.chromium.base.UsedByReflection;
/**
* An interface to provide smart clip data when requested.
*
......@@ -13,15 +15,18 @@ import android.os.Handler;
* Please make sure implementation of them is somewhere in the view
* hierarchy.
*/
@UsedByReflection("ExternalOemSupport")
public interface SmartClipProvider {
/**
* Initiate extraction of text, HTML, and other information for clipping puposes (smart clip)
* from the rectangle area defined by starting positions (x and y), and width and height.
*/
@UsedByReflection("ExternalOemSupport")
void extractSmartClipData(int x, int y, int width, int height);
/**
* Register a handler to handle smart clip data once extraction is done.
*/
@UsedByReflection("ExternalOemSupport")
void setSmartClipResultHandler(final Handler resultHandler);
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment