Bug 1278014 part.6 Rename SelectionType::SELECTION_SPELLCHECK to SelectionType::eSpellCheck r=smaug

MozReview-Commit-ID: 4n2jEVax37O
This commit is contained in:
Masayuki Nakano
2016-06-09 18:37:36 +09:00
parent 09b74b02de
commit 400a8761f1
6 changed files with 17 additions and 21 deletions

View File

@@ -64,8 +64,7 @@ SelectionManager::ClearControlSelectionListener()
// Remove 'this' registered as selection listener for the spellcheck
// selection.
Selection* spellSel =
frameSel->GetSelection(SelectionType::SELECTION_SPELLCHECK);
Selection* spellSel = frameSel->GetSelection(SelectionType::eSpellCheck);
spellSel->RemoveSelectionListener(this);
}
@@ -91,8 +90,7 @@ SelectionManager::SetControlSelectionListener(dom::Element* aFocusedElm)
normalSel->AddSelectionListener(this);
// Register 'this' as selection listener for the spell check selection.
Selection* spellSel =
frameSel->GetSelection(SelectionType::SELECTION_SPELLCHECK);
Selection* spellSel = frameSel->GetSelection(SelectionType::eSpellCheck);
spellSel->AddSelectionListener(this);
}
@@ -106,8 +104,7 @@ SelectionManager::AddDocSelectionListener(nsIPresShell* aPresShell)
normalSel->AddSelectionListener(this);
// Register 'this' as selection listener for the spell check selection.
Selection* spellSel =
frameSel->GetSelection(SelectionType::SELECTION_SPELLCHECK);
Selection* spellSel = frameSel->GetSelection(SelectionType::eSpellCheck);
spellSel->AddSelectionListener(this);
}
@@ -122,8 +119,7 @@ SelectionManager::RemoveDocSelectionListener(nsIPresShell* aPresShell)
// Remove 'this' registered as selection listener for the spellcheck
// selection.
Selection* spellSel =
frameSel->GetSelection(SelectionType::SELECTION_SPELLCHECK);
Selection* spellSel = frameSel->GetSelection(SelectionType::eSpellCheck);
spellSel->RemoveSelectionListener(this);
}
@@ -226,7 +222,7 @@ SelectionManager::ProcessSelectionChanged(SelData* aSelData)
new AccTextSelChangeEvent(text, selection, aSelData->mReason);
text->Document()->FireDelayedEvent(event);
} else if (selection->GetType() == SelectionType::SELECTION_SPELLCHECK) {
} else if (selection->GetType() == SelectionType::eSpellCheck) {
// XXX: fire an event for container accessible of the focus/anchor range
// of the spelcheck selection.
text->Document()->FireDelayedEvent(nsIAccessibleEvent::EVENT_TEXT_ATTRIBUTE_CHANGED,