Home | History | Annotate | Download | only in webkit

Lines Matching defs:HitTestResult

831     public /*static*/ class HitTestResult {
833 * Default HitTestResult, where the target is unknown
837 * HitTestResult for hitting a HTML::a tag
841 * HitTestResult for hitting a phone number
845 * HitTestResult for hitting a map address
849 * HitTestResult for hitting an email address
853 * HitTestResult for hitting an HTML::img tag
857 * HitTestResult for hitting a HTML::a tag which contains HTML::img
861 * HitTestResult for hitting a HTML::a tag with src=http
865 * HitTestResult for hitting a HTML::a tag with src=http + HTML::img
869 * HitTestResult for hitting an edit text area
876 HitTestResult() {
1957 * Return a HitTestResult based on the current cursor node. If a HTML::a tag
1958 * is found and the anchor has a non-javascript url, the HitTestResult type
1963 * found, the HitTestResult type is set to IMAGE_TYPE and the url is set in
1966 * a child node. If a phone number is found, the HitTestResult type is set
1968 * HitTestResult. If a map address is found, the HitTestResult type is set
1969 * to GEO_TYPE and the address is set in the "extra" field of HitTestResult.
1970 * If an email address is found, the HitTestResult type is set to EMAIL_TYPE
1971 * and the email is set in the "extra" field of HitTestResult. Otherwise,
1972 * HitTestResult type is set to UNKNOWN_TYPE.
1974 public HitTestResult getHitTestResult() {
1979 HitTestResult result = new HitTestResult();
1982 result.setType(HitTestResult.EDIT_TEXT_TYPE);
1987 result.setType(HitTestResult.PHONE_TYPE);
1990 result.setType(HitTestResult.EMAIL_TYPE);
1993 result.setType(HitTestResult.GEO_TYPE);
1997 result.setType(HitTestResult.SRC_ANCHOR_TYPE);
2004 if (type == HitTestResult.UNKNOWN_TYPE
2005 || type == HitTestResult.SRC_ANCHOR_TYPE) {
2011 result.setType(type == HitTestResult.UNKNOWN_TYPE ?
2012 HitTestResult.IMAGE_TYPE :
2013 HitTestResult.SRC_IMAGE_ANCHOR_TYPE);
7157 HitTestResult hitTest = getHitTestResult();
7159 != HitTestResult.UNKNOWN_TYPE) {