refactor: mojofy autofill (#18723)

This commit is contained in:
Jeremy Apthorp
2019-06-12 15:08:22 -07:00
committed by GitHub
parent ec10fd3044
commit ba96cdb7dc
26 changed files with 76 additions and 160 deletions

View File

@@ -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();
};