1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/content/base/public/nsISelectionListener.idl Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,26 @@ 1.4 +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ 1.5 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.7 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.8 + 1.9 +#include "nsISupports.idl" 1.10 + 1.11 +interface nsIDOMDocument; 1.12 +interface nsISelection; 1.13 + 1.14 +[scriptable, uuid(280cd784-23c2-468d-8624-354e0b3804bd)] 1.15 +interface nsISelectionListener : nsISupports 1.16 +{ 1.17 + const short NO_REASON=0; 1.18 + const short DRAG_REASON=1; 1.19 + const short MOUSEDOWN_REASON=2;/*bitflags*/ 1.20 + const short MOUSEUP_REASON=4;/*bitflags*/ 1.21 + const short KEYPRESS_REASON=8;/*bitflags*/ 1.22 + const short SELECTALL_REASON=16; 1.23 + const short COLLAPSETOSTART_REASON=32; 1.24 + const short COLLAPSETOEND_REASON=64; 1.25 + 1.26 + void notifySelectionChanged(in nsIDOMDocument doc, in nsISelection sel, in short reason); 1.27 +}; 1.28 + 1.29 +