From 0f6e6627eb5fa4fdf7a1764be83e4372f24ca105 Mon Sep 17 00:00:00 2001 From: "sky@chromium.org" Date: Wed, 6 Jun 2012 15:50:20 +0000 Subject: Makes Layer notify the delegate as the bounds change. This is needed so that things that need the bounds (say the status bubble) can be kept in sync with the actual bounds. BUG=124482 TEST=covered by tests R=piman@chromium.org,derat@chromium.org Review URL: https://chromiumcodereview.appspot.com/10524003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@140769 0039d316-1c4b-4281-b951-d872f2087c98 --- ui/views/view.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ui/views/view.cc') diff --git a/ui/views/view.cc b/ui/views/view.cc index 631deec..7da3a3b 100644 --- a/ui/views/view.cc +++ b/ui/views/view.cc @@ -1234,6 +1234,10 @@ void View::OnDeviceScaleFactorChanged(float device_scale_factor) { // Repainting with new scale factor will paint the content at the right scale. } +base::Closure View::PrepareForLayerBoundsChange() { + return base::Closure(); +} + void View::ReorderLayers() { View* v = this; while (v && !v->layer()) -- cgit v1.1