Chromium Code Reviews| Index: ui/views/view.h |
| diff --git a/ui/views/view.h b/ui/views/view.h |
| index fc4a27f9ffef5c86714ac73cec30a83104a51215..ec20cfbc3f663b2db8473c66837b75ab8b1a68e0 100644 |
| --- a/ui/views/view.h |
| +++ b/ui/views/view.h |
| @@ -951,7 +951,7 @@ class VIEWS_EXPORT View : public ui::LayerDelegate, |
| // Override to provide rendering in any part of the View's bounds. Typically |
| // this is the "contents" of the view. If you override this method you will |
| // have to call the subsequent OnPaint*() methods manually. |
| - virtual void OnPaint(gfx::Canvas* canvas); |
| + virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; |
|
sky
2012/05/16 21:16:01
Is OVERRIDE right here?
oshima
2012/05/16 21:50:29
oops, sorry. I thought this was OnPaintLayer once
|
| // Override to paint a background before any content is drawn. Typically this |
| // is done if you are satisfied with a default OnPaint handler but wish to |
| @@ -996,6 +996,7 @@ class VIEWS_EXPORT View : public ui::LayerDelegate, |
| // Overridden from ui::LayerDelegate: |
| virtual void OnPaintLayer(gfx::Canvas* canvas) OVERRIDE; |
| + virtual void OnDeviceScaleFactorChanged(float device_scale_factor) OVERRIDE; |
| // Finds the layer that this view paints to (it may belong to an ancestor |
| // view), then reorders the immediate children of that layer to match the |