mirror of
https://github.com/electron/electron.git
synced 2026-05-02 03:00:22 -04:00
refactor: mojofy autofill (#18723)
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
module atom.mojom;
|
||||
|
||||
import "mojo/public/mojom/base/values.mojom";
|
||||
import "mojo/public/mojom/base/string16.mojom";
|
||||
import "ui/gfx/geometry/mojo/geometry.mojom";
|
||||
|
||||
interface ElectronRenderer {
|
||||
@@ -14,6 +15,10 @@ interface ElectronRenderer {
|
||||
TakeHeapSnapshot(handle file) => (bool success);
|
||||
};
|
||||
|
||||
interface ElectronAutofillAgent {
|
||||
AcceptDataListSuggestion(mojo_base.mojom.String16 value);
|
||||
};
|
||||
|
||||
struct DraggableRegion {
|
||||
bool draggable;
|
||||
gfx.mojom.Rect bounds;
|
||||
@@ -64,4 +69,8 @@ interface ElectronBrowser {
|
||||
|
||||
[Sync]
|
||||
DoGetZoomLevel() => (double result);
|
||||
|
||||
// TODO: move these into a separate interface
|
||||
ShowAutofillPopup(gfx.mojom.RectF bounds, array<mojo_base.mojom.String16> values, array<mojo_base.mojom.String16> labels);
|
||||
HideAutofillPopup();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user