summaryrefslogtreecommitdiffstats
path: root/ash/wm/image_grid.cc
diff options
context:
space:
mode:
authorsky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-06-06 15:50:20 +0000
committersky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-06-06 15:50:20 +0000
commit0f6e6627eb5fa4fdf7a1764be83e4372f24ca105 (patch)
tree1034ce545c7d3f6d288c18c41a7afee6751a7a5d /ash/wm/image_grid.cc
parent24895ae9ffc898935d5b2c1ea1ddb16ef59a8af1 (diff)
downloadchromium_src-0f6e6627eb5fa4fdf7a1764be83e4372f24ca105.zip
chromium_src-0f6e6627eb5fa4fdf7a1764be83e4372f24ca105.tar.gz
chromium_src-0f6e6627eb5fa4fdf7a1764be83e4372f24ca105.tar.bz2
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
Diffstat (limited to 'ash/wm/image_grid.cc')
-rw-r--r--ash/wm/image_grid.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/ash/wm/image_grid.cc b/ash/wm/image_grid.cc
index c4fec2a..54ccca3 100644
--- a/ash/wm/image_grid.cc
+++ b/ash/wm/image_grid.cc
@@ -235,6 +235,10 @@ void ImageGrid::ImagePainter::OnDeviceScaleFactorChanged(
// Redrawing will take care of scale factor change.
}
+base::Closure ImageGrid::ImagePainter::PrepareForLayerBoundsChange() {
+ return base::Closure();
+}
+
// static
gfx::Size ImageGrid::GetImageSize(const gfx::Image* image) {
return image ?