mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-03 22:38:41 +09:00
Issue #1587 - Part 2: Implement controller follow/unfollow
This commit is contained in:
parent
24087592ad
commit
7207793622
5 changed files with 202 additions and 8 deletions
|
|
@ -12,7 +12,8 @@
|
|||
namespace mozilla {
|
||||
namespace dom {
|
||||
|
||||
NS_IMPL_CYCLE_COLLECTION_WRAPPERCACHE(FetchController, mGlobal, mSignal)
|
||||
NS_IMPL_CYCLE_COLLECTION_WRAPPERCACHE(FetchController, mGlobal, mSignal,
|
||||
mFollowingSignal)
|
||||
|
||||
NS_IMPL_CYCLE_COLLECTING_ADDREF(FetchController)
|
||||
NS_IMPL_CYCLE_COLLECTING_RELEASE(FetchController)
|
||||
|
|
@ -97,13 +98,29 @@ FetchController::Abort()
|
|||
void
|
||||
FetchController::Follow(FetchSignal& aSignal)
|
||||
{
|
||||
// TODO
|
||||
FetchSignal::Follower::Follow(&aSignal);
|
||||
}
|
||||
|
||||
void
|
||||
FetchController::Unfollow(FetchSignal& aSignal)
|
||||
{
|
||||
// TODO
|
||||
if (mFollowingSignal != &aSignal) {
|
||||
return;
|
||||
}
|
||||
|
||||
FetchSignal::Follower::Unfollow();
|
||||
}
|
||||
|
||||
FetchSignal*
|
||||
FetchController::Following() const
|
||||
{
|
||||
return mFollowingSignal;
|
||||
}
|
||||
|
||||
void
|
||||
FetchController::Aborted()
|
||||
{
|
||||
Abort();
|
||||
}
|
||||
|
||||
} // dom namespace
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue