2001-09-25 05:32:19 +04:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2012-05-21 15:12:37 +04:00
|
|
|
/* 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/. */
|
2000-09-14 09:22:37 +04:00
|
|
|
|
|
|
|
#include "nsISupports.idl"
|
|
|
|
|
2018-05-08 20:52:35 +03:00
|
|
|
webidl Document;
|
|
|
|
webidl Selection;
|
2000-09-14 09:22:37 +04:00
|
|
|
|
2015-12-01 23:25:06 +03:00
|
|
|
[scriptable, uuid(45686299-ae2b-46bc-9502-c56c35691ab9)]
|
2000-09-14 09:22:37 +04:00
|
|
|
interface nsISelectionListener : nsISupports
|
|
|
|
{
|
|
|
|
const short NO_REASON=0;
|
|
|
|
const short DRAG_REASON=1;
|
|
|
|
const short MOUSEDOWN_REASON=2;/*bitflags*/
|
|
|
|
const short MOUSEUP_REASON=4;/*bitflags*/
|
|
|
|
const short KEYPRESS_REASON=8;/*bitflags*/
|
|
|
|
const short SELECTALL_REASON=16;
|
2013-08-17 05:51:41 +04:00
|
|
|
const short COLLAPSETOSTART_REASON=32;
|
|
|
|
const short COLLAPSETOEND_REASON=64;
|
2015-12-01 23:25:06 +03:00
|
|
|
const short IME_REASON=128;
|
2000-09-14 09:22:37 +04:00
|
|
|
|
2018-05-08 20:52:35 +03:00
|
|
|
void notifySelectionChanged(in Document doc, in Selection sel,
|
|
|
|
in short reason);
|
2000-09-14 09:22:37 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
|