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..74f48c6eb9b49f90870981cc29345ae6a12bac36 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,18 +39,20 @@ 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(); |
+ // Called when there is a tap or click on |node| and the animations due to |
+ // possible focus change are complete. |
+ void NodeActivation(const blink::WebNode& 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 |
// already focused, or if it caused the focus to change. |
bool was_focused_before_now_; |
+ // The tapped or clicked node. |
+ blink::WebNode activated_node_; |
+ |
// The listener getting the actual notifications. |
PageClickListener* listener_; |