refactor: use upstream AutofillDriverFactory diffs (#31676)
* refactor: use upstream AutofillDriverFactory diffs Update our copy of AutofillDriver and AutofillDriverFactory to match chromium.
This commit is contained in:
parent
24b02d68a7
commit
190dd31dbc
5 changed files with 62 additions and 45 deletions
|
@ -20,12 +20,15 @@ namespace electron {
|
|||
|
||||
class AutofillDriver : public mojom::ElectronAutofillDriver {
|
||||
public:
|
||||
AutofillDriver(
|
||||
content::RenderFrameHost* render_frame_host,
|
||||
mojo::PendingAssociatedReceiver<mojom::ElectronAutofillDriver> request);
|
||||
|
||||
explicit AutofillDriver(content::RenderFrameHost* render_frame_host);
|
||||
AutofillDriver(const AutofillDriver&) = delete;
|
||||
AutofillDriver& operator=(const AutofillDriver&) = delete;
|
||||
~AutofillDriver() override;
|
||||
|
||||
void BindPendingReceiver(
|
||||
mojo::PendingAssociatedReceiver<mojom::ElectronAutofillDriver>
|
||||
pending_receiver);
|
||||
|
||||
void ShowAutofillPopup(const gfx::RectF& bounds,
|
||||
const std::vector<std::u16string>& values,
|
||||
const std::vector<std::u16string>& labels) override;
|
||||
|
@ -38,7 +41,7 @@ class AutofillDriver : public mojom::ElectronAutofillDriver {
|
|||
std::unique_ptr<AutofillPopup> autofill_popup_;
|
||||
#endif
|
||||
|
||||
mojo::AssociatedReceiver<mojom::ElectronAutofillDriver> receiver_;
|
||||
mojo::AssociatedReceiver<mojom::ElectronAutofillDriver> receiver_{this};
|
||||
};
|
||||
|
||||
} // namespace electron
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue