Index: ui/views/view.h |
diff --git a/ui/views/view.h b/ui/views/view.h |
index 1bdee37cdbbaf3360fe8673a4ed79e3afcd9746b..5caf06fdff9348586d00bc2c7c2d59d167cf8455 100644 |
--- a/ui/views/view.h |
+++ b/ui/views/view.h |
@@ -380,6 +380,10 @@ class VIEWS_EXPORT View : public ui::LayerDelegate, |
LayoutManager* GetLayoutManager() const; |
void SetLayoutManager(LayoutManager* layout); |
+ // Adjust the layer's offset so that it snaps to the physical pixel boundary. |
+ // This has no effect if the view does not have an associated layer. |
+ void SnapLayerToPixelBoundary(); |
+ |
// Attributes ---------------------------------------------------------------- |
// The view class name. |
@@ -1526,6 +1530,9 @@ class VIEWS_EXPORT View : public ui::LayerDelegate, |
// Views. The default is absolute positioning according to bounds_. |
scoped_ptr<LayoutManager> layout_manager_; |
+ // Whether this View's layer should be snapped to the pixel boundary. |
+ bool snap_layer_to_pixel_boundary_; |
+ |
// Painting ------------------------------------------------------------------ |
// Background |