2019-06-19 14:23:04 -07:00
|
|
|
module electron.mojom;
|
2019-04-02 15:38:16 -07:00
|
|
|
|
|
|
|
import "mojo/public/mojom/base/values.mojom";
|
2019-06-12 15:08:22 -07:00
|
|
|
import "mojo/public/mojom/base/string16.mojom";
|
2019-08-02 16:56:46 -07:00
|
|
|
import "ui/gfx/geometry/mojom/geometry.mojom";
|
2019-04-02 15:38:16 -07:00
|
|
|
|
|
|
|
interface ElectronRenderer {
|
|
|
|
Message(
|
|
|
|
bool internal,
|
|
|
|
bool send_to_all,
|
|
|
|
string channel,
|
|
|
|
mojo_base.mojom.ListValue arguments,
|
|
|
|
int32 sender_id);
|
|
|
|
|
2019-06-12 23:42:21 -07:00
|
|
|
UpdateCrashpadPipeName(string pipe_name);
|
|
|
|
|
2019-04-02 15:38:16 -07:00
|
|
|
TakeHeapSnapshot(handle file) => (bool success);
|
|
|
|
};
|
|
|
|
|
2019-06-12 15:08:22 -07:00
|
|
|
interface ElectronAutofillAgent {
|
|
|
|
AcceptDataListSuggestion(mojo_base.mojom.String16 value);
|
|
|
|
};
|
|
|
|
|
2019-08-19 22:13:24 +02:00
|
|
|
interface ElectronAutofillDriver {
|
|
|
|
ShowAutofillPopup(gfx.mojom.RectF bounds, array<mojo_base.mojom.String16> values, array<mojo_base.mojom.String16> labels);
|
|
|
|
HideAutofillPopup();
|
|
|
|
};
|
|
|
|
|
2019-06-03 10:43:04 -07:00
|
|
|
struct DraggableRegion {
|
|
|
|
bool draggable;
|
|
|
|
gfx.mojom.Rect bounds;
|
|
|
|
};
|
|
|
|
|
2019-04-02 15:38:16 -07:00
|
|
|
interface ElectronBrowser {
|
2019-04-03 14:22:23 -07:00
|
|
|
// Emits an event on |channel| from the ipcMain JavaScript object in the main
|
|
|
|
// process.
|
2019-04-02 15:38:16 -07:00
|
|
|
Message(
|
|
|
|
bool internal,
|
|
|
|
string channel,
|
|
|
|
mojo_base.mojom.ListValue arguments);
|
|
|
|
|
2019-05-31 10:25:19 -07:00
|
|
|
// Emits an event on |channel| from the ipcMain JavaScript object in the main
|
|
|
|
// process, and returns the response.
|
|
|
|
Invoke(
|
2019-08-24 00:45:50 +02:00
|
|
|
bool internal,
|
2019-05-31 10:25:19 -07:00
|
|
|
string channel,
|
|
|
|
mojo_base.mojom.ListValue arguments) => (mojo_base.mojom.Value result);
|
|
|
|
|
2019-04-03 14:22:23 -07:00
|
|
|
// Emits an event on |channel| from the ipcMain JavaScript object in the main
|
|
|
|
// process, and waits synchronously for a response.
|
|
|
|
//
|
2019-04-02 15:38:16 -07:00
|
|
|
// NB. this is not marked [Sync] because mojo synchronous methods can be
|
|
|
|
// reordered with respect to asynchronous methods on the same channel.
|
|
|
|
// Instead, callers can manually block on the response to this method.
|
|
|
|
MessageSync(
|
|
|
|
bool internal,
|
|
|
|
string channel,
|
|
|
|
mojo_base.mojom.ListValue arguments) => (mojo_base.mojom.Value result);
|
2019-04-03 14:22:23 -07:00
|
|
|
|
|
|
|
// Emits an event from the |ipcRenderer| JavaScript object in the target
|
|
|
|
// WebContents's main frame, specified by |web_contents_id|.
|
|
|
|
MessageTo(
|
|
|
|
bool internal,
|
|
|
|
bool send_to_all,
|
|
|
|
int32 web_contents_id,
|
|
|
|
string channel,
|
|
|
|
mojo_base.mojom.ListValue arguments);
|
|
|
|
|
|
|
|
MessageHost(
|
|
|
|
string channel,
|
|
|
|
mojo_base.mojom.ListValue arguments);
|
2019-06-03 10:43:04 -07:00
|
|
|
|
|
|
|
UpdateDraggableRegions(
|
|
|
|
array<DraggableRegion> regions);
|
2019-06-03 18:18:23 -07:00
|
|
|
|
|
|
|
SetTemporaryZoomLevel(double zoom_level);
|
|
|
|
|
|
|
|
[Sync]
|
|
|
|
DoGetZoomLevel() => (double result);
|
2019-04-02 15:38:16 -07:00
|
|
|
};
|