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