Bug 1283556 - Convert APZStateChange to an enum class and make the formatting more consistent with the style guide. r=botond

MozReview-Commit-ID: FtfoY1jCwkR
This commit is contained in:
Kartikaya Gupta
2016-07-04 14:44:08 -04:00
parent 7d5d9ce2da
commit 83f4248e67
7 changed files with 39 additions and 35 deletions

View File

@@ -127,12 +127,12 @@ AndroidContentController::NotifyAPZStateChange(const ScrollableLayerGuid& aGuid,
ChromeProcessController::NotifyAPZStateChange(aGuid, aChange, aArg);
if (NS_IsMainThread()) {
nsCOMPtr<nsIObserverService> observerService = mozilla::services::GetObserverService();
if (aChange == layers::GeckoContentController::APZStateChange::TransformEnd) {
if (aChange == layers::GeckoContentController::APZStateChange::eTransformEnd) {
// This is used by tests to determine when the APZ is done doing whatever
// it's doing. XXX generify this as needed when writing additional tests.
observerService->NotifyObservers(nullptr, "APZ:TransformEnd", nullptr);
observerService->NotifyObservers(nullptr, "PanZoom:StateChange", MOZ_UTF16("NOTHING"));
} else if (aChange == layers::GeckoContentController::APZStateChange::TransformBegin) {
} else if (aChange == layers::GeckoContentController::APZStateChange::eTransformBegin) {
observerService->NotifyObservers(nullptr, "PanZoom:StateChange", MOZ_UTF16("PANNING"));
}
}