| 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 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 259 // color. This doesn't affect compositing but is a hint to the compositor to | 259 // color. This doesn't affect compositing but is a hint to the compositor to |
| 260 // optimize painting. | 260 // optimize painting. |
| 261 // Note that this method does not implicitly create a layer if one does not | 261 // Note that this method does not implicitly create a layer if one does not |
| 262 // already exist for the View, but is a no-op in that case. | 262 // already exist for the View, but is a no-op in that case. |
| 263 void SetFillsBoundsOpaquely(bool fills_bounds_opaquely); | 263 void SetFillsBoundsOpaquely(bool fills_bounds_opaquely); |
| 264 | 264 |
| 265 // Transformations ----------------------------------------------------------- | 265 // Transformations ----------------------------------------------------------- |
| 266 | 266 |
| 267 // Methods for setting transformations for a view (e.g. rotation, scaling). | 267 // Methods for setting transformations for a view (e.g. rotation, scaling). |
| 268 | 268 |
| 269 const gfx::Transform& GetTransform() const; | 269 gfx::Transform GetTransform() const; |
| 270 | 270 |
| 271 // Clipping parameters. Clipping is done relative to the view bounds. | 271 // Clipping parameters. Clipping is done relative to the view bounds. |
| 272 void set_clip_insets(gfx::Insets clip_insets) { clip_insets_ = clip_insets; } | 272 void set_clip_insets(gfx::Insets clip_insets) { clip_insets_ = clip_insets; } |
| 273 | 273 |
| 274 // Sets the transform to the supplied transform. | 274 // Sets the transform to the supplied transform. |
| 275 void SetTransform(const gfx::Transform& transform); | 275 void SetTransform(const gfx::Transform& transform); |
| 276 | 276 |
| 277 // Sets whether this view paints to a layer. A view paints to a layer if | 277 // Sets whether this view paints to a layer. A view paints to a layer if |
| 278 // either of the following are true: | 278 // either of the following are true: |
| 279 // . the view has a non-identity transform. | 279 // . the view has a non-identity transform. |
| (...skipping 1211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1491 base::win::ScopedComPtr<NativeViewAccessibilityWin> | 1491 base::win::ScopedComPtr<NativeViewAccessibilityWin> |
| 1492 native_view_accessibility_win_; | 1492 native_view_accessibility_win_; |
| 1493 #endif | 1493 #endif |
| 1494 | 1494 |
| 1495 DISALLOW_COPY_AND_ASSIGN(View); | 1495 DISALLOW_COPY_AND_ASSIGN(View); |
| 1496 }; | 1496 }; |
| 1497 | 1497 |
| 1498 } // namespace views | 1498 } // namespace views |
| 1499 | 1499 |
| 1500 #endif // UI_VIEWS_VIEW_H_ | 1500 #endif // UI_VIEWS_VIEW_H_ |
| OLD | NEW |