From c657f5e264674f439917612e864e20118fa218a0 Mon Sep 17 00:00:00 2001 From: "mjudge%netscape.com" Date: Fri, 25 Feb 2000 04:29:28 +0000 Subject: [PATCH] r=jfrancis, a=jar Part of checkin including layout/base/src/nsRangeList.cpp to fix caret issues git-svn-id: svn://10.0.0.236/trunk@61650 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/dom/public/idl/range/Selection.idl | 3 ++- mozilla/dom/public/nsDOMPropEnums.h | 2 ++ mozilla/dom/public/nsDOMPropNames.h | 2 ++ mozilla/dom/public/range/nsIDOMSelection.h | 8 ++++++++ 4 files changed, 14 insertions(+), 1 deletion(-) diff --git a/mozilla/dom/public/idl/range/Selection.idl b/mozilla/dom/public/idl/range/Selection.idl index 5df308ef122..88d541606e3 100644 --- a/mozilla/dom/public/idl/range/Selection.idl +++ b/mozilla/dom/public/idl/range/Selection.idl @@ -34,7 +34,8 @@ void addSelectionListener(in SelectionListener newListener); void removeSelectionListener(in SelectionListener listenerToRemove); - + void setHint(in boolean right); + boolean getHint(); noscript xpidl nsIEnumerator getEnumerator(); DOMString toString(); diff --git a/mozilla/dom/public/nsDOMPropEnums.h b/mozilla/dom/public/nsDOMPropEnums.h index a22325888d5..b948aef3cbf 100644 --- a/mozilla/dom/public/nsDOMPropEnums.h +++ b/mozilla/dom/public/nsDOMPropEnums.h @@ -782,6 +782,8 @@ enum nsDOMProp { NS_DOM_PROP_SELECTION_COLLAPSETOEND, NS_DOM_PROP_SELECTION_COLLAPSETOSTART, NS_DOM_PROP_SELECTION_CONTAINSNODE, + NS_DOM_PROP_SELECTION_SETHINT, + NS_DOM_PROP_SELECTION_GETHINT, NS_DOM_PROP_SELECTION_DELETEFROMDOCUMENT, NS_DOM_PROP_SELECTION_ENDBATCHCHANGES, NS_DOM_PROP_SELECTION_EXTEND, diff --git a/mozilla/dom/public/nsDOMPropNames.h b/mozilla/dom/public/nsDOMPropNames.h index 42b0766c131..2c8eb165bce 100644 --- a/mozilla/dom/public/nsDOMPropNames.h +++ b/mozilla/dom/public/nsDOMPropNames.h @@ -781,6 +781,8 @@ "selection.collapsetoend", \ "selection.collapsetostart", \ "selection.containsnode", \ + "selection.sethint", \ + "selection.gethint", \ "selection.deletefromdocument", \ "selection.endbatchchanges", \ "selection.extend", \ diff --git a/mozilla/dom/public/range/nsIDOMSelection.h b/mozilla/dom/public/range/nsIDOMSelection.h index b60f2bd3530..62f7201ee03 100644 --- a/mozilla/dom/public/range/nsIDOMSelection.h +++ b/mozilla/dom/public/range/nsIDOMSelection.h @@ -81,6 +81,10 @@ public: NS_IMETHOD RemoveSelectionListener(nsIDOMSelectionListener* aListenerToRemove)=0; + NS_IMETHOD SetHint(PRBool aRight)=0; + + NS_IMETHOD GetHint(PRBool* aReturn)=0; + NS_IMETHOD GetEnumerator(nsIEnumerator** aReturn)=0; NS_IMETHOD ToString(nsString& aReturn)=0; @@ -108,6 +112,8 @@ public: NS_IMETHOD EndBatchChanges(); \ NS_IMETHOD AddSelectionListener(nsIDOMSelectionListener* aNewListener); \ NS_IMETHOD RemoveSelectionListener(nsIDOMSelectionListener* aListenerToRemove); \ + NS_IMETHOD SetHint(PRBool aRight); \ + NS_IMETHOD GetHint(PRBool* aReturn); \ NS_IMETHOD GetEnumerator(nsIEnumerator** aReturn); \ NS_IMETHOD ToString(nsString& aReturn); \ @@ -134,6 +140,8 @@ public: NS_IMETHOD EndBatchChanges() { return _to EndBatchChanges(); } \ NS_IMETHOD AddSelectionListener(nsIDOMSelectionListener* aNewListener) { return _to AddSelectionListener(aNewListener); } \ NS_IMETHOD RemoveSelectionListener(nsIDOMSelectionListener* aListenerToRemove) { return _to RemoveSelectionListener(aListenerToRemove); } \ + NS_IMETHOD SetHint(PRBool aRight) { return _to SetHint(aRight); } \ + NS_IMETHOD GetHint(PRBool* aReturn) { return _to GetHint(aReturn); } \ NS_IMETHOD GetEnumerator(nsIEnumerator** aReturn) { return _to GetEnumerator(aReturn); } \ NS_IMETHOD ToString(nsString& aReturn) { return _to ToString(aReturn); } \