From 63c6a3cb7bc07bf88dc3df0c28c71b9a89ecd203 Mon Sep 17 00:00:00 2001 From: "mjudge%netscape.com" Date: Fri, 14 Apr 2000 11:26:18 +0000 Subject: [PATCH] changes to api for selection listeners git-svn-id: svn://10.0.0.236/trunk@65978 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/editor/base/TypeInState.cpp | 2 +- mozilla/editor/base/TypeInState.h | 2 +- mozilla/editor/base/nsInterfaceState.cpp | 2 +- mozilla/editor/base/nsInterfaceState.h | 2 +- mozilla/editor/composer/src/nsInterfaceState.cpp | 2 +- mozilla/editor/composer/src/nsInterfaceState.h | 2 +- mozilla/editor/libeditor/html/TypeInState.cpp | 2 +- mozilla/editor/libeditor/html/TypeInState.h | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/mozilla/editor/base/TypeInState.cpp b/mozilla/editor/base/TypeInState.cpp index 06bf27cfff9..18cce18654b 100644 --- a/mozilla/editor/base/TypeInState.cpp +++ b/mozilla/editor/base/TypeInState.cpp @@ -66,7 +66,7 @@ TypeInState::~TypeInState() { } -NS_IMETHODIMP TypeInState::NotifySelectionChanged() +NS_IMETHODIMP TypeInState::NotifySelectionChanged(nsIDOMDocument *, nsIDOMSelection *) { Reset(); return NS_OK; diff --git a/mozilla/editor/base/TypeInState.h b/mozilla/editor/base/TypeInState.h index 39b782dc2b4..5e77720b84e 100644 --- a/mozilla/editor/base/TypeInState.h +++ b/mozilla/editor/base/TypeInState.h @@ -48,7 +48,7 @@ public: void Reset(); virtual ~TypeInState(); - NS_IMETHOD NotifySelectionChanged(); + NS_IMETHOD NotifySelectionChanged(nsIDOMDocument *aDoc, nsIDOMSelection *aSel); nsresult SetProp(nsIAtom *aProp); nsresult SetProp(nsIAtom *aProp, const nsString &aAttr); diff --git a/mozilla/editor/base/nsInterfaceState.cpp b/mozilla/editor/base/nsInterfaceState.cpp index 012bdb46f6c..0f4f4fb6b9f 100644 --- a/mozilla/editor/base/nsInterfaceState.cpp +++ b/mozilla/editor/base/nsInterfaceState.cpp @@ -124,7 +124,7 @@ nsInterfaceState::NotifyDocumentStateChanged(PRBool aNowDirty) } NS_IMETHODIMP -nsInterfaceState::NotifySelectionChanged() +nsInterfaceState::NotifySelectionChanged(nsIDOMDocument *, nsIDOMSelection *) { return PrimeUpdateTimer(); } diff --git a/mozilla/editor/base/nsInterfaceState.h b/mozilla/editor/base/nsInterfaceState.h index e89832c68b7..1c87a751096 100644 --- a/mozilla/editor/base/nsInterfaceState.h +++ b/mozilla/editor/base/nsInterfaceState.h @@ -57,7 +57,7 @@ public: NS_IMETHOD ForceUpdate(); // nsIDOMSelectionListener interface - NS_IMETHOD NotifySelectionChanged(); + NS_IMETHOD NotifySelectionChanged(nsIDOMDocument *aDoc, nsIDOMSelection *aSel); NS_DECL_NSIDOCUMENTSTATELISTENER diff --git a/mozilla/editor/composer/src/nsInterfaceState.cpp b/mozilla/editor/composer/src/nsInterfaceState.cpp index 012bdb46f6c..0f4f4fb6b9f 100644 --- a/mozilla/editor/composer/src/nsInterfaceState.cpp +++ b/mozilla/editor/composer/src/nsInterfaceState.cpp @@ -124,7 +124,7 @@ nsInterfaceState::NotifyDocumentStateChanged(PRBool aNowDirty) } NS_IMETHODIMP -nsInterfaceState::NotifySelectionChanged() +nsInterfaceState::NotifySelectionChanged(nsIDOMDocument *, nsIDOMSelection *) { return PrimeUpdateTimer(); } diff --git a/mozilla/editor/composer/src/nsInterfaceState.h b/mozilla/editor/composer/src/nsInterfaceState.h index e89832c68b7..1c87a751096 100644 --- a/mozilla/editor/composer/src/nsInterfaceState.h +++ b/mozilla/editor/composer/src/nsInterfaceState.h @@ -57,7 +57,7 @@ public: NS_IMETHOD ForceUpdate(); // nsIDOMSelectionListener interface - NS_IMETHOD NotifySelectionChanged(); + NS_IMETHOD NotifySelectionChanged(nsIDOMDocument *aDoc, nsIDOMSelection *aSel); NS_DECL_NSIDOCUMENTSTATELISTENER diff --git a/mozilla/editor/libeditor/html/TypeInState.cpp b/mozilla/editor/libeditor/html/TypeInState.cpp index 06bf27cfff9..18cce18654b 100644 --- a/mozilla/editor/libeditor/html/TypeInState.cpp +++ b/mozilla/editor/libeditor/html/TypeInState.cpp @@ -66,7 +66,7 @@ TypeInState::~TypeInState() { } -NS_IMETHODIMP TypeInState::NotifySelectionChanged() +NS_IMETHODIMP TypeInState::NotifySelectionChanged(nsIDOMDocument *, nsIDOMSelection *) { Reset(); return NS_OK; diff --git a/mozilla/editor/libeditor/html/TypeInState.h b/mozilla/editor/libeditor/html/TypeInState.h index 39b782dc2b4..5e77720b84e 100644 --- a/mozilla/editor/libeditor/html/TypeInState.h +++ b/mozilla/editor/libeditor/html/TypeInState.h @@ -48,7 +48,7 @@ public: void Reset(); virtual ~TypeInState(); - NS_IMETHOD NotifySelectionChanged(); + NS_IMETHOD NotifySelectionChanged(nsIDOMDocument *aDoc, nsIDOMSelection *aSel); nsresult SetProp(nsIAtom *aProp); nsresult SetProp(nsIAtom *aProp, const nsString &aAttr);