| 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_GFX_GEOMETRY_INSETS_F_H_ | 5 #ifndef UI_GFX_GEOMETRY_INSETS_F_H_ |
| 6 #define UI_GFX_GEOMETRY_INSETS_F_H_ | 6 #define UI_GFX_GEOMETRY_INSETS_F_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "ui/gfx/gfx_export.h" | 10 #include "ui/gfx/gfx_export.h" |
| 11 | 11 |
| 12 namespace gfx { | 12 namespace gfx { |
| 13 | 13 |
| 14 // A floating versin of gfx::Insets. | 14 // A floating point version of gfx::Insets. |
| 15 class GFX_EXPORT InsetsF { | 15 class GFX_EXPORT InsetsF { |
| 16 public: | 16 public: |
| 17 InsetsF(); | 17 InsetsF(); |
| 18 InsetsF(float top, float left, float bottom, float right); | 18 InsetsF(float top, float left, float bottom, float right); |
| 19 ~InsetsF(); | 19 ~InsetsF(); |
| 20 | 20 |
| 21 float top() const { return top_; } | 21 float top() const { return top_; } |
| 22 float left() const { return left_; } | 22 float left() const { return left_; } |
| 23 float bottom() const { return bottom_; } | 23 float bottom() const { return bottom_; } |
| 24 float right() const { return right_; } | 24 float right() const { return right_; } |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 private: | 67 private: |
| 68 float top_; | 68 float top_; |
| 69 float left_; | 69 float left_; |
| 70 float bottom_; | 70 float bottom_; |
| 71 float right_; | 71 float right_; |
| 72 }; | 72 }; |
| 73 | 73 |
| 74 } // namespace gfx | 74 } // namespace gfx |
| 75 | 75 |
| 76 #endif // UI_GFX_GEOMETRY_INSETS_F_H_ | 76 #endif // UI_GFX_GEOMETRY_INSETS_F_H_ |
| OLD | NEW |