diff options
Diffstat (limited to 'ui/gfx')
-rw-r--r-- | ui/gfx/geometry/insets.h | 2 | ||||
-rw-r--r-- | ui/gfx/geometry/insets_f.h | 2 | ||||
-rw-r--r-- | ui/gfx/geometry/insets_unittest.cc | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/ui/gfx/geometry/insets.h b/ui/gfx/geometry/insets.h index 8d5344f75..0466d94 100644 --- a/ui/gfx/geometry/insets.h +++ b/ui/gfx/geometry/insets.h @@ -34,7 +34,7 @@ class GFX_EXPORT Insets { int height() const { return top_ + bottom_; } // Returns true if the insets are empty. - bool empty() const { return width() == 0 && height() == 0; } + bool IsEmpty() const { return width() == 0 && height() == 0; } void Set(int top, int left, int bottom, int right) { top_ = top; diff --git a/ui/gfx/geometry/insets_f.h b/ui/gfx/geometry/insets_f.h index 4ef07c6..90592d7 100644 --- a/ui/gfx/geometry/insets_f.h +++ b/ui/gfx/geometry/insets_f.h @@ -32,7 +32,7 @@ class GFX_EXPORT InsetsF { float height() const { return top_ + bottom_; } // Returns true if the insets are empty. - bool empty() const { return width() == 0.f && height() == 0.f; } + bool IsEmpty() const { return width() == 0.f && height() == 0.f; } void Set(float top, float left, float bottom, float right) { top_ = top; diff --git a/ui/gfx/geometry/insets_unittest.cc b/ui/gfx/geometry/insets_unittest.cc index b20a9d3..0d33459 100644 --- a/ui/gfx/geometry/insets_unittest.cc +++ b/ui/gfx/geometry/insets_unittest.cc @@ -14,7 +14,7 @@ TEST(InsetsTest, InsetsDefault) { EXPECT_EQ(0, insets.right()); EXPECT_EQ(0, insets.width()); EXPECT_EQ(0, insets.height()); - EXPECT_TRUE(insets.empty()); + EXPECT_TRUE(insets.IsEmpty()); } TEST(InsetsTest, Insets) { @@ -25,7 +25,7 @@ TEST(InsetsTest, Insets) { EXPECT_EQ(4, insets.right()); EXPECT_EQ(6, insets.width()); // Left + right. EXPECT_EQ(4, insets.height()); // Top + bottom. - EXPECT_FALSE(insets.empty()); + EXPECT_FALSE(insets.IsEmpty()); } TEST(InsetsTest, Set) { |