parent_->ChildPreferredSizeChanged(this);
}
-bool View::NeedsNotificationWhenVisibleBoundsChange() const {
+bool View::GetNeedsNotificationWhenVisibleBoundsChange() const {
return false;
}
PaintCommon(canvas, CullSet());
}
+void View::OnDelegatedFrameDamage(
+ const gfx::Rect& damage_rect_in_dip) {
+}
+
void View::OnDeviceScaleFactorChanged(float device_scale_factor) {
snap_layer_to_pixel_boundary_ =
(device_scale_factor - std::floor(device_scale_factor)) != 0.0f;
Layout();
}
- if (NeedsNotificationWhenVisibleBoundsChange())
+ if (GetNeedsNotificationWhenVisibleBoundsChange())
OnVisibleBoundsChanged();
// Notify interested Views that visible bounds within the root view may have
// static
void View::RegisterChildrenForVisibleBoundsNotification(View* view) {
- if (view->NeedsNotificationWhenVisibleBoundsChange())
+ if (view->GetNeedsNotificationWhenVisibleBoundsChange())
view->RegisterForVisibleBoundsNotification();
for (int i = 0; i < view->child_count(); ++i)
RegisterChildrenForVisibleBoundsNotification(view->child_at(i));
// static
void View::UnregisterChildrenForVisibleBoundsNotification(View* view) {
- if (view->NeedsNotificationWhenVisibleBoundsChange())
+ if (view->GetNeedsNotificationWhenVisibleBoundsChange())
view->UnregisterForVisibleBoundsNotification();
for (int i = 0; i < view->child_count(); ++i)
UnregisterChildrenForVisibleBoundsNotification(view->child_at(i));