From 4654bd6edc35b0a5fd9a784037ce0650d4e79b53 Mon Sep 17 00:00:00 2001 From: "mjudge%netscape.com" Date: Sat, 13 May 2000 08:06:13 +0000 Subject: [PATCH] lets you set the view to be scrolled git-svn-id: svn://10.0.0.236/trunk@69539 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/layout/base/nsIFrameSelection.h | 10 +++++++++- mozilla/layout/base/public/nsIFrameSelection.h | 10 +++++++++- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/mozilla/layout/base/nsIFrameSelection.h b/mozilla/layout/base/nsIFrameSelection.h index b139d076515..8c306651aab 100644 --- a/mozilla/layout/base/nsIFrameSelection.h +++ b/mozilla/layout/base/nsIFrameSelection.h @@ -110,6 +110,9 @@ enum { TABLESELECTION_ALLCELLS }; +class nsIScrollableView; + + class nsIFrameSelection : public nsISupports { public: static const nsIID& GetIID() { static nsIID iid = NS_IFRAMESELECTION_IID; return iid; } @@ -119,7 +122,12 @@ public: * @param aTracker is the parameter to be used for most of the other calls for callbacks ect * @param aLimiter limits the selection to nodes with aLimiter parents */ - NS_IMETHOD Init(nsIFocusTracker *aTracker, nsIContent *aLimiter) = 0; + NS_IMETHOD Init(nsIFocusTracker *aTracker, nsIContent *aLimiter) = 0; //default since this isnt used for embedding + + /* SetScrollView sets the scroll view + * @param aScrollView is thr scroll view for this selection. + */ + NS_IMETHOD SetScrollableView(nsIScrollableView *aScrollView) =0; /** ShutDown will be called when the owner of the frame selection is shutting down * this should be the time to release all member variable interfaces. all methods diff --git a/mozilla/layout/base/public/nsIFrameSelection.h b/mozilla/layout/base/public/nsIFrameSelection.h index b139d076515..8c306651aab 100644 --- a/mozilla/layout/base/public/nsIFrameSelection.h +++ b/mozilla/layout/base/public/nsIFrameSelection.h @@ -110,6 +110,9 @@ enum { TABLESELECTION_ALLCELLS }; +class nsIScrollableView; + + class nsIFrameSelection : public nsISupports { public: static const nsIID& GetIID() { static nsIID iid = NS_IFRAMESELECTION_IID; return iid; } @@ -119,7 +122,12 @@ public: * @param aTracker is the parameter to be used for most of the other calls for callbacks ect * @param aLimiter limits the selection to nodes with aLimiter parents */ - NS_IMETHOD Init(nsIFocusTracker *aTracker, nsIContent *aLimiter) = 0; + NS_IMETHOD Init(nsIFocusTracker *aTracker, nsIContent *aLimiter) = 0; //default since this isnt used for embedding + + /* SetScrollView sets the scroll view + * @param aScrollView is thr scroll view for this selection. + */ + NS_IMETHOD SetScrollableView(nsIScrollableView *aScrollView) =0; /** ShutDown will be called when the owner of the frame selection is shutting down * this should be the time to release all member variable interfaces. all methods