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

Unified Diff: components/autofill/content/renderer/page_click_tracker.h

Issue 884583002: [autofill] Show autofill popup when focusing a field by tapping near its edge. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bounds-change
Patch Set: Add a test Created 5 years, 11 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: components/autofill/content/renderer/page_click_tracker.h
diff --git a/components/autofill/content/renderer/page_click_tracker.h b/components/autofill/content/renderer/page_click_tracker.h
index 9cb63535f64a64c36b1abb09595f3b393f75feca..3defe2ca55e1ca3cf8ebe7e5fcc6c8ff4b727a69 100644
--- a/components/autofill/content/renderer/page_click_tracker.h
+++ b/components/autofill/content/renderer/page_click_tracker.h
@@ -12,6 +12,10 @@
#include "content/public/renderer/render_view_observer.h"
#include "third_party/WebKit/public/web/WebNode.h"
+namespace gfx {
+class RectF;
+}
+
namespace autofill {
class PageClickListener;
@@ -41,8 +45,9 @@ class PageClickTracker : public content::RenderViewObserver {
void FocusedNodeChanged(const blink::WebNode& node) override;
void FocusChangeComplete() override;
- // Called there is a tap or click at |x|, |y|.
- void PotentialActivationAt(int x, int y);
+ // Called if there is a tap or click at |region|. Clicks are 1x1 regions, but
+ // taps are wider.
+ void PotentialActivationAt(const gfx::RectF& region);
// The node that was clicked. Non-null only when the animations caused by
// focus change are still ongoing.

Powered by Google App Engine
This is Rietveld 408576698