Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(149)

Unified Diff: content/browser/accessibility/browser_accessibility_manager_android.h

Issue 290633002: Implement Android accessible hit testing using an IPC to the renderer process. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@better_logging_2
Patch Set: Remove unused function Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/browser/accessibility/browser_accessibility_manager_android.h
diff --git a/content/browser/accessibility/browser_accessibility_manager_android.h b/content/browser/accessibility/browser_accessibility_manager_android.h
index cc2757cf45b308b4d2ad688e32286e544630bdb1..a40f7e7cf8833c25c5027542bd01cc7e9986ba75 100644
--- a/content/browser/accessibility/browser_accessibility_manager_android.h
+++ b/content/browser/accessibility/browser_accessibility_manager_android.h
@@ -43,7 +43,7 @@ class CONTENT_EXPORT BrowserAccessibilityManagerAndroid
// Tree methods.
jint GetRootId(JNIEnv* env, jobject obj);
jboolean IsNodeValid(JNIEnv* env, jobject obj, jint id);
- jint HitTest(JNIEnv* env, jobject obj, jint x, jint y);
+ void HitTest(JNIEnv* env, jobject obj, jint x, jint y);
// Populate Java accessibility data structures with info about a node.
jboolean PopulateAccessibilityNodeInfo(
@@ -83,18 +83,8 @@ class CONTENT_EXPORT BrowserAccessibilityManagerAndroid
// ContentViewCore.
JavaObjectWeakGlobalRef java_ref_;
- // Searches through the children of start_node to find the nearest
- // accessibility focus candidate for a touch which has not landed directly on
- // an accessibility focus candidate.
- BrowserAccessibility* FuzzyHitTest(
- int x, int y, BrowserAccessibility* start_node);
-
- static void FuzzyHitTestImpl(int x, int y, BrowserAccessibility* start_node,
- BrowserAccessibility** nearest_candidate, int* min_distance);
-
- // Calculates the distance from the point (x, y) to the nearest point on the
- // edge of |node|.
- static int CalculateDistanceSquared(int x, int y, BrowserAccessibility* node);
+ // Handle a hover event from the renderer process.
+ void HandleHoverEvent(BrowserAccessibility* node);
DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityManagerAndroid);
};

Powered by Google App Engine
This is Rietveld 408576698