Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / ui / views / view.cc
index 0119540..8c5fd8b 100644 (file)
@@ -1324,7 +1324,7 @@ void View::PreferredSizeChanged() {
     parent_->ChildPreferredSizeChanged(this);
 }
 
-bool View::NeedsNotificationWhenVisibleBoundsChange() const {
+bool View::GetNeedsNotificationWhenVisibleBoundsChange() const {
   return false;
 }
 
@@ -1471,6 +1471,10 @@ void View::OnPaintLayer(gfx::Canvas* canvas) {
   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;
@@ -1929,7 +1933,7 @@ void View::BoundsChanged(const gfx::Rect& previous_bounds) {
     Layout();
   }
 
-  if (NeedsNotificationWhenVisibleBoundsChange())
+  if (GetNeedsNotificationWhenVisibleBoundsChange())
     OnVisibleBoundsChanged();
 
   // Notify interested Views that visible bounds within the root view may have
@@ -1944,7 +1948,7 @@ void View::BoundsChanged(const gfx::Rect& previous_bounds) {
 
 // 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));
@@ -1952,7 +1956,7 @@ void View::RegisterChildrenForVisibleBoundsNotification(View* view) {
 
 // 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));