Bug 1946485 - Remove unused bits of nsIXULBrowserWindow, r=emilio

Differential Revision: https://phabricator.services.mozilla.com/D237069
This commit is contained in:
Gijs Kruitbosch
2025-02-06 20:37:29 +00:00
parent 30922d471c
commit 7c11085b0c
8 changed files with 6 additions and 67 deletions

View File

@@ -484,16 +484,6 @@ nsDocShellTreeOwner::GetPersistence(bool* aPersistPosition, bool* aPersistSize,
return NS_ERROR_NOT_IMPLEMENTED; return NS_ERROR_NOT_IMPLEMENTED;
} }
NS_IMETHODIMP
nsDocShellTreeOwner::GetTabCount(uint32_t* aResult) {
if (mTreeOwner) {
return mTreeOwner->GetTabCount(aResult);
}
*aResult = 0;
return NS_OK;
}
NS_IMETHODIMP NS_IMETHODIMP
nsDocShellTreeOwner::GetHasPrimaryContent(bool* aResult) { nsDocShellTreeOwner::GetHasPrimaryContent(bool* aResult) {
*aResult = mPrimaryRemoteTab || mPrimaryContentShell; *aResult = mPrimaryRemoteTab || mPrimaryContentShell;

View File

@@ -99,12 +99,6 @@ interface nsIDocShellTreeOwner : nsISupports
out boolean aPersistSize, out boolean aPersistSize,
out boolean aPersistSizeMode); out boolean aPersistSizeMode);
/*
Gets the number of tabs currently open in our window, assuming
this tree owner has such a concept.
*/
readonly attribute unsigned long tabCount;
/* /*
Returns true if there is a primary content shell or a primary Returns true if there is a primary content shell or a primary
remote tab. remote tab.

View File

@@ -44,8 +44,6 @@
setOverLink(aStatusText) { setOverLink(aStatusText) {
gStatusText = aStatusText; gStatusText = aStatusText;
}, },
onBeforeLinkTraversal() { }
}; };
var SimpleTest = window.arguments[0].SimpleTest; var SimpleTest = window.arguments[0].SimpleTest;

View File

@@ -2582,15 +2582,6 @@ void AppWindow::SizeShellToWithLimit(int32_t aDesiredWidth,
mDominantClientSize = true; mDominantClientSize = true;
} }
nsresult AppWindow::GetTabCount(uint32_t* aResult) {
if (mXULBrowserWindow) {
return mXULBrowserWindow->GetTabCount(aResult);
}
*aResult = 0;
return NS_OK;
}
nsresult AppWindow::GetInitialOpenWindowInfo( nsresult AppWindow::GetInitialOpenWindowInfo(
nsIOpenWindowInfo** aOpenWindowInfo) { nsIOpenWindowInfo** aOpenWindowInfo) {
NS_ENSURE_ARG_POINTER(aOpenWindowInfo); NS_ENSURE_ARG_POINTER(aOpenWindowInfo);

View File

@@ -57,10 +57,10 @@ struct InitData;
#define NS_APPWINDOW_IMPL_CID \ #define NS_APPWINDOW_IMPL_CID \
{/* 8eaec2f3-ed02-4be2-8e0f-342798477298 */ \ {/* 8eaec2f3-ed02-4be2-8e0f-342798477298 */ \
0x8eaec2f3, 0xed02, 0x4be2, { \ 0x8eaec2f3, \
0x8e, 0x0f, 0x34, 0x27, 0x98, 0x47, 0x72, 0x98 \ 0xed02, \
} \ 0x4be2, \
} {0x8e, 0x0f, 0x34, 0x27, 0x98, 0x47, 0x72, 0x98}}
class nsContentShellInfo; class nsContentShellInfo;
@@ -253,7 +253,6 @@ class AppWindow final : public nsIBaseWindow,
enum PersistentAttributeUpdate { Sync, Async }; enum PersistentAttributeUpdate { Sync, Async };
void PersistentAttributesDirty(PersistentAttributes, void PersistentAttributesDirty(PersistentAttributes,
PersistentAttributeUpdate); PersistentAttributeUpdate);
nsresult GetTabCount(uint32_t* aResult);
void LoadPersistentWindowState(); void LoadPersistentWindowState();
nsresult GetPersistentValue(const nsAtom* aAttr, nsAString& aValue); nsresult GetPersistentValue(const nsAtom* aAttr, nsAString& aValue);

View File

@@ -223,16 +223,6 @@ nsChromeTreeOwner::GetPersistence(bool* aPersistPosition, bool* aPersistSize,
return NS_OK; return NS_OK;
} }
NS_IMETHODIMP
nsChromeTreeOwner::GetTabCount(uint32_t* aResult) {
if (mAppWindow) {
return mAppWindow->GetTabCount(aResult);
}
*aResult = 0;
return NS_OK;
}
NS_IMETHODIMP NS_IMETHODIMP
nsChromeTreeOwner::GetHasPrimaryContent(bool* aResult) { nsChromeTreeOwner::GetHasPrimaryContent(bool* aResult) {
NS_ENSURE_STATE(mAppWindow); NS_ENSURE_STATE(mAppWindow);

View File

@@ -286,16 +286,6 @@ nsContentTreeOwner::GetPersistence(bool* aPersistPosition, bool* aPersistSize,
return NS_OK; return NS_OK;
} }
NS_IMETHODIMP
nsContentTreeOwner::GetTabCount(uint32_t* aResult) {
if (mAppWindow) {
return mAppWindow->GetTabCount(aResult);
}
*aResult = 0;
return NS_OK;
}
NS_IMETHODIMP NS_IMETHODIMP
nsContentTreeOwner::GetHasPrimaryContent(bool* aResult) { nsContentTreeOwner::GetHasPrimaryContent(bool* aResult) {
NS_ENSURE_STATE(mAppWindow); NS_ENSURE_STATE(mAppWindow);

View File

@@ -34,14 +34,6 @@ interface nsIXULBrowserWindow : nsISupports
*/ */
void setOverLink(in AString link); void setOverLink(in AString link);
/**
* Determines the appropriate target for a link.
*/
AString onBeforeLinkTraversal(in AString originalTarget,
in nsIURI linkURI,
in Node linkNode,
in boolean isAppTab);
/** /**
* Show/hide a tooltip (when the user mouses over a link, say). * Show/hide a tooltip (when the user mouses over a link, say).
* *
@@ -50,9 +42,4 @@ interface nsIXULBrowserWindow : nsISupports
void showTooltip(in long x, in long y, in AString tooltip, in AString direction, void showTooltip(in long x, in long y, in AString tooltip, in AString direction,
in Element browser); in Element browser);
void hideTooltip(); void hideTooltip();
/**
* Return the number of tabs in this window.
*/
uint32_t getTabCount();
}; };