diff options
author | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-06-06 15:50:20 +0000 |
---|---|---|
committer | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-06-06 15:50:20 +0000 |
commit | 0f6e6627eb5fa4fdf7a1764be83e4372f24ca105 (patch) | |
tree | 1034ce545c7d3f6d288c18c41a7afee6751a7a5d /ash/wm | |
parent | 24895ae9ffc898935d5b2c1ea1ddb16ef59a8af1 (diff) | |
download | chromium_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')
-rw-r--r-- | ash/wm/image_grid.cc | 4 | ||||
-rw-r--r-- | ash/wm/image_grid.h | 1 |
2 files changed, 5 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 ? diff --git a/ash/wm/image_grid.h b/ash/wm/image_grid.h index ecbadf5..93ab694 100644 --- a/ash/wm/image_grid.h +++ b/ash/wm/image_grid.h @@ -140,6 +140,7 @@ class ASH_EXPORT ImageGrid { // ui::LayerDelegate implementation: virtual void OnPaintLayer(gfx::Canvas* canvas) OVERRIDE; virtual void OnDeviceScaleFactorChanged(float device_scale_factor) OVERRIDE; + virtual base::Closure PrepareForLayerBoundsChange() OVERRIDE; private: friend class TestAPI; |