From 36d22d82aa202bb199967e9512281e9a53db42c9 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 21:33:14 +0200 Subject: Adding upstream version 115.7.0esr. Signed-off-by: Daniel Baumann --- dom/base/nsISelectionController.idl | 352 ++++++++++++++++++++++++++++++++++++ 1 file changed, 352 insertions(+) create mode 100644 dom/base/nsISelectionController.idl (limited to 'dom/base/nsISelectionController.idl') diff --git a/dom/base/nsISelectionController.idl b/dom/base/nsISelectionController.idl new file mode 100644 index 0000000000..e7f6dd05c4 --- /dev/null +++ b/dom/base/nsISelectionController.idl @@ -0,0 +1,352 @@ +/* -*- Mode: IDL; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + + +#include "nsISelectionDisplay.idl" + +%{C++ +typedef short SelectionRegion; +namespace mozilla { +namespace dom { +class Selection; +} // namespace dom +} // namespace mozilla +%} + +interface nsIContent; +interface nsISelectionDisplay; + +webidl Node; +webidl Selection; + +[builtinclass, scriptable, uuid(3801c9d4-8e69-4bfc-9edb-b58278621f8f)] +interface nsISelectionController : nsISelectionDisplay +{ + // Begin of RawSelectionType values. + const short SELECTION_NONE = 0; + // Corresponds to the Selection exposed via window.getSelection() and + // document.getSelection(). + const short SELECTION_NORMAL = 1; + // Corresponds to the Selection used for spellchecking in