Browse Source

Update function signatures for focused element change notifications

https://chromium-review.googlesource.com/c/chromium/src/+/1609749
Jeremy Apthorp 6 years ago
parent
commit
de1edf3f4d
2 changed files with 3 additions and 3 deletions
  1. 1 1
      atom/renderer/atom_autofill_agent.cc
  2. 2 2
      atom/renderer/atom_autofill_agent.h

+ 1 - 1
atom/renderer/atom_autofill_agent.cc

@@ -64,7 +64,7 @@ void AutofillAgent::DidChangeScrollOffset() {
   HidePopup();
 }
 
-void AutofillAgent::FocusedNodeChanged(const blink::WebNode&) {
+void AutofillAgent::FocusedElementChanged(const blink::WebElement&) {
   focused_node_was_last_clicked_ = false;
   was_focused_before_now_ = false;
   HidePopup();

+ 2 - 2
atom/renderer/atom_autofill_agent.h

@@ -10,9 +10,9 @@
 #include "base/memory/weak_ptr.h"
 #include "content/public/renderer/render_frame_observer.h"
 #include "third_party/blink/public/web/web_autofill_client.h"
+#include "third_party/blink/public/web/web_element.h"
 #include "third_party/blink/public/web/web_form_control_element.h"
 #include "third_party/blink/public/web/web_input_element.h"
-#include "third_party/blink/public/web/web_node.h"
 
 namespace atom {
 
@@ -26,7 +26,7 @@ class AutofillAgent : public content::RenderFrameObserver,
   void OnDestruct() override;
 
   void DidChangeScrollOffset() override;
-  void FocusedNodeChanged(const blink::WebNode&) override;
+  void FocusedElementChanged(const blink::WebElement&) override;
   void DidCompleteFocusChangeInFrame() override;
   void DidReceiveLeftMouseDownOrGestureTapInNode(
       const blink::WebNode&) override;