| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef UI_VIEWS_VIEW_H_ | 5 #ifndef UI_VIEWS_VIEW_H_ |
| 6 #define UI_VIEWS_VIEW_H_ | 6 #define UI_VIEWS_VIEW_H_ |
| 7 | 7 |
| 8 #include <algorithm> | 8 #include <algorithm> |
| 9 #include <map> | 9 #include <map> |
| 10 #include <set> | 10 #include <set> |
| (...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 256 // color. This doesn't affect compositing but is a hint to the compositor to | 256 // color. This doesn't affect compositing but is a hint to the compositor to |
| 257 // optimize painting. | 257 // optimize painting. |
| 258 // Note that this method does not implicitly create a layer if one does not | 258 // Note that this method does not implicitly create a layer if one does not |
| 259 // already exist for the View, but is a no-op in that case. | 259 // already exist for the View, but is a no-op in that case. |
| 260 void SetFillsBoundsOpaquely(bool fills_bounds_opaquely); | 260 void SetFillsBoundsOpaquely(bool fills_bounds_opaquely); |
| 261 | 261 |
| 262 // Transformations ----------------------------------------------------------- | 262 // Transformations ----------------------------------------------------------- |
| 263 | 263 |
| 264 // Methods for setting transformations for a view (e.g. rotation, scaling). | 264 // Methods for setting transformations for a view (e.g. rotation, scaling). |
| 265 | 265 |
| 266 const gfx::Transform& GetTransform() const; | 266 gfx::Transform GetTransform() const; |
| 267 | 267 |
| 268 // Clipping parameters. Clipping is done relative to the view bounds. | 268 // Clipping parameters. Clipping is done relative to the view bounds. |
| 269 void set_clip_insets(gfx::Insets clip_insets) { clip_insets_ = clip_insets; } | 269 void set_clip_insets(gfx::Insets clip_insets) { clip_insets_ = clip_insets; } |
| 270 | 270 |
| 271 // Sets the transform to the supplied transform. | 271 // Sets the transform to the supplied transform. |
| 272 void SetTransform(const gfx::Transform& transform); | 272 void SetTransform(const gfx::Transform& transform); |
| 273 | 273 |
| 274 // Sets whether this view paints to a layer. A view paints to a layer if | 274 // Sets whether this view paints to a layer. A view paints to a layer if |
| 275 // either of the following are true: | 275 // either of the following are true: |
| 276 // . the view has a non-identity transform. | 276 // . the view has a non-identity transform. |
| (...skipping 1218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1495 // Belongs to this view, but it's reference-counted on some platforms | 1495 // Belongs to this view, but it's reference-counted on some platforms |
| 1496 // so we can't use a scoped_ptr. It's dereferenced in the destructor. | 1496 // so we can't use a scoped_ptr. It's dereferenced in the destructor. |
| 1497 NativeViewAccessibility* native_view_accessibility_; | 1497 NativeViewAccessibility* native_view_accessibility_; |
| 1498 | 1498 |
| 1499 DISALLOW_COPY_AND_ASSIGN(View); | 1499 DISALLOW_COPY_AND_ASSIGN(View); |
| 1500 }; | 1500 }; |
| 1501 | 1501 |
| 1502 } // namespace views | 1502 } // namespace views |
| 1503 | 1503 |
| 1504 #endif // UI_VIEWS_VIEW_H_ | 1504 #endif // UI_VIEWS_VIEW_H_ |
| OLD | NEW |