DescriptionSimplify ZoomController by removing DefaultZoomLevel prefs machinery.
In preparation for moving to multiple HostZoomMaps (one-per
StoragePartition), it is helpful to simplify ZoomController by removing
the prefs machinery for DefaultZoomLevel, and instead rely on getting
this value from the HostZoomMap.
The calls to ZoomController::UpdateState() that used to be triggered
directly by the prefs changes still occur, though by a roundtrip from
PrefsTabHelper via IPC to RenderViewImpl and then by IPC back to
the HostZoomMap, which in turn notifies its observers. This only happens
in cases where the change in DefaultZoomLevel actually causes the
RenderViewImpl to change its zoom, so it is a subtle change in behaviour
from before.
BUG=335317
Committed: https://crrev.com/32a991c969d22f900e0b234b7c2653cc79cc2aeb
Cr-Commit-Position: refs/heads/master@{#292920}
Patch Set 1 #
Total comments: 8
Patch Set 2 : Address comments. #
Messages
Total messages: 8 (1 generated)
|