summaryrefslogtreecommitdiff
path: root/chromium/content/common/dom_automation_controller.mojom
blob: 525fd5aaeccebacaf27192349e04346608ceebc1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

module content.mojom;

// Interface for receiving messages sent from the renderer to the browser via
// the DOM Automation Controller (i.e., window.domAutomationController).
// This interface is only used and made available in browser tests and is
// controlled by switches::kDomAutomationController.
interface DomAutomationControllerHost {
  // Used to communicate a value received from JavaScript. An instance of the
  // browser that has an automation host listening to it can have JavaScript
  // send a native value (string, number, boolean) to the listener in
  // C++ (DomAutomationController). For example,
  // `window.domAutomationController.send(foo())` sends the result of foo()
  // here.
  DomOperationResponse(string json_string);
};