Home | History | Annotate | Download | only in webkit

Lines Matching refs:hitTestResult

569     private HitTestResult mInitialHitTestResult;
956 public /*static*/ class HitTestResult {
958 * Default HitTestResult, where the target is unknown
967 * HitTestResult for hitting a phone number
971 * HitTestResult for hitting a map address
975 * HitTestResult for hitting an email address
979 * HitTestResult for hitting an HTML::img tag
988 * HitTestResult for hitting a HTML::a tag with src=http
992 * HitTestResult for hitting a HTML::a tag with src=http + HTML::img
996 * HitTestResult for hitting an edit text area
1003 HitTestResult() {
2537 * Return a HitTestResult based on the current cursor node. If a HTML::a tag
2538 * is found and the anchor has a non-JavaScript url, the HitTestResult type
2543 * found, the HitTestResult type is set to IMAGE_TYPE and the url is set in
2546 * a child node. If a phone number is found, the HitTestResult type is set
2548 * HitTestResult. If a map address is found, the HitTestResult type is set
2549 * to GEO_TYPE and the address is set in the "extra" field of HitTestResult.
2550 * If an email address is found, the HitTestResult type is set to EMAIL_TYPE
2551 * and the email is set in the "extra" field of HitTestResult. Otherwise,
2552 * HitTestResult type is set to UNKNOWN_TYPE.
2554 public HitTestResult getHitTestResult() {
2556 return hitTestResult(mInitialHitTestResult);
2559 private HitTestResult hitTestResult(HitTestResult fallback) {
2564 HitTestResult result = new HitTestResult();
2567 result.setType(HitTestResult.EDIT_TEXT_TYPE);
2572 result.setType(HitTestResult.PHONE_TYPE);
2575 result.setType(HitTestResult.EMAIL_TYPE);
2578 result.setType(HitTestResult.GEO_TYPE);
2582 result.setType(HitTestResult.SRC_ANCHOR_TYPE);
2595 Log.v(LOGTAG, "hitTestResult use fallback");
2599 if (type == HitTestResult.UNKNOWN_TYPE
2600 || type == HitTestResult.SRC_ANCHOR_TYPE) {
2606 result.setType(type == HitTestResult.UNKNOWN_TYPE ?
2607 HitTestResult.IMAGE_TYPE :
2608 HitTestResult.SRC_IMAGE_ANCHOR_TYPE);
7404 mInitialHitTestResult = hitTestResult(null);
8299 HitTestResult hitTest = getHitTestResult();
8301 != HitTestResult.UNKNOWN_TYPE) {