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 0bcc0f6299b1a06f21bf5dbe248c311f0c25a834..849c7623154bbc2b800893bfe9471ae792171175 100644 |
--- a/components/autofill/content/renderer/page_click_tracker.h |
+++ b/components/autofill/content/renderer/page_click_tracker.h |
@@ -16,7 +16,7 @@ namespace autofill { |
class PageClickListener; |
-// This class is responsible notifiying the associated listener when a node is |
+// This class is responsible notifying the associated listener when a node is |
// clicked or tapped. It also tracks whether a node was focused before the event |
// was handled. |
// |
@@ -39,12 +39,14 @@ class PageClickTracker : public content::RenderViewObserver { |
void DidHandleMouseEvent(const blink::WebMouseEvent& event) override; |
void DidHandleGestureEvent(const blink::WebGestureEvent& event) override; |
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); |
- // Sets |was_focused_before_now_| to true. |
- void SetWasFocused(); |
+ // The node that was clicked. Non-null only when the animations caused by |
+ // focus change are still ongoing. |
+ blink::WebNode clicked_node_; |
// This is set to false when the focus changes, then set back to true soon |
// afterwards. This helps track whether an event happened after a node was |