Searched refs:divider_offset (Results 1 - 3 of 3) sorted by relevance
/external/chromium_org/ui/views/controls/ |
H A D | single_split_view.h | 54 void set_divider_offset(int divider_offset) { argument 55 divider_offset_ = divider_offset; 57 int divider_offset() const { return divider_offset_; } function in class:views::SingleSplitView 96 // Calculates the new |divider_offset| based on the changes of split view 98 int CalculateDividerOffset(int divider_offset, 104 int NormalizeDividerOffset(int divider_offset, const gfx::Rect& bounds) const;
|
H A D | single_split_view_unittest.cc | 87 int divider_offset; member in struct:views::TestCase 119 split.set_divider_offset(test_cases[0].divider_offset); 134 EXPECT_EQ(test_cases[i].divider_offset, split.divider_offset()); 174 EXPECT_EQ(kInitialDividerOffset, split.divider_offset()); 183 EXPECT_EQ(kInitialDividerOffset + kMouseMoveDelta, split.divider_offset()); 192 EXPECT_EQ(kMinimumChildSize, split.divider_offset()); 202 split.divider_offset()); 212 split.divider_offset()); 221 split.divider_offset()); [all...] |
H A D | single_split_view.cc | 221 int divider_offset, 224 if (resize_leading_on_bounds_change_ && divider_offset != -1) { 225 // We do not update divider_offset on minimize (to zero) and on restore 232 divider_offset += new_bounds.width() - previous_bounds.width(); 234 divider_offset += new_bounds.height() - previous_bounds.height(); 236 if (divider_offset < 0) 237 divider_offset = GetDividerSize(); 240 return divider_offset; 243 int SingleSplitView::NormalizeDividerOffset(int divider_offset, argument 246 if (divider_offset < 220 CalculateDividerOffset( int divider_offset, const gfx::Rect& previous_bounds, const gfx::Rect& new_bounds) const argument [all...] |
Completed in 147 milliseconds