/external/chromium_org/ui/gfx/geometry/ |
H A D | insets_unittest.cc | 5 #include "ui/gfx/geometry/insets.h" 10 gfx::Insets insets; local 11 EXPECT_EQ(0, insets.top()); 12 EXPECT_EQ(0, insets.left()); 13 EXPECT_EQ(0, insets.bottom()); 14 EXPECT_EQ(0, insets.right()); 15 EXPECT_EQ(0, insets.width()); 16 EXPECT_EQ(0, insets.height()); 17 EXPECT_TRUE(insets.empty()); 21 gfx::Insets insets( 32 gfx::Insets insets; local 41 gfx::Insets insets; local [all...] |
H A D | insets_base.h | 12 // An insets represents the borders of a container (the space the container must 22 // Returns the total width taken up by the insets, which is the sum of the 23 // left and right insets. 26 // Returns the total height taken up by the insets, which is the sum of the 27 // top and bottom insets. 30 // Returns true if the insets are empty. 40 bool operator==(const Class& insets) const { 41 return top_ == insets.top_ && left_ == insets.left_ && 42 bottom_ == insets 49 operator +=(const Class& insets) argument [all...] |
/external/chromium_org/extensions/browser/app_window/ |
H A D | app_window_browsertest.cc | 28 gfx::Insets insets = native_window->GetFrameInsets(); local 32 EXPECT_GT(insets.top(), insets.bottom()); 52 gfx::Insets insets = native_window->GetFrameInsets(); local 56 EXPECT_GT(insets.top(), insets.bottom()); 66 gfx::Insets insets = native_window->GetFrameInsets(); local 68 // All insets must be zero. 69 EXPECT_EQ(0, insets.top()); 70 EXPECT_EQ(0, insets [all...] |
/external/chromium_org/ui/views/layout/ |
H A D | fill_layout.cc | 36 const gfx::Insets insets = host->GetInsets(); local 37 return host->child_at(0)->GetHeightForWidth(width - insets.width()) + 38 insets.height();
|
H A D | box_layout.h | 12 #include "ui/gfx/insets.h" 76 void set_inside_border_insets(const gfx::Insets& insets) { argument 77 inside_border_insets_ = insets;
|
/external/chromium_org/ash/system/tray/ |
H A D | fixed_sized_scroll_view.cc | 31 gfx::Insets insets = GetInsets(); local 32 size.Enlarge(insets.width(), insets.height());
|
/external/chromium_org/chrome/browser/chromeos/display/ |
H A D | overscan_calibrator.h | 12 #include "ui/gfx/insets.h" 29 // Commits the current insets data to the system. 32 // Reset the overscan insets to default value. If the display has 37 // Updates the insets and redraw the visual feedback. 38 void UpdateInsets(const gfx::Insets& insets); 40 const gfx::Insets& insets() const { return insets_; } function in class:chromeos::OverscanCalibrator 53 // The current insets. 56 // The insets initially given. Stored so we can undo the insets later. 59 // Whether the current insets ar [all...] |
H A D | overscan_calibrator.cc | 110 void OverscanCalibrator::UpdateInsets(const gfx::Insets& insets) { argument 111 insets_.Set(std::max(insets.top(), 0), 112 std::max(insets.left(), 0), 113 std::max(insets.bottom(), 0), 114 std::max(insets.right(), 0));
|
/external/chromium_org/chrome/browser/ui/views/apps/ |
H A D | app_window_desktop_window_tree_host_win.cc | 29 gfx::Insets* insets) const { 30 // Use the default client insets for an opaque frame or a glass popup/app 43 insets->Set(0, 0, border_thickness, border_thickness); 75 gfx::Insets insets = app_window_->glass_frame_view()->GetGlassInsets(); local 78 insets = insets.Scale(gfx::win::GetDeviceScaleFactor()); 79 margins.cxLeftWidth = insets.left(); 80 margins.cxRightWidth = insets.right(); 81 margins.cyBottomHeight = insets.bottom(); 82 margins.cyTopHeight = insets [all...] |
H A D | glass_app_window_frame_view_win.cc | 34 // Also make sure the insets don't go below 1, as bad things happen when they 49 gfx::Insets insets = GetGlassInsets(); 50 return gfx::Rect(insets.left(), 51 insets.top(), 52 std::max(0, width() - insets.left() - insets.right()), 53 std::max(0, height() - insets.top() - insets.bottom())); 58 gfx::Insets insets = GetGlassInsets(); local 62 insets [all...] |
/external/chromium_org/ui/views/bubble/ |
H A D | bubble_frame_view_unittest.cc | 5 #include "ui/gfx/insets.h" 51 gfx::Insets insets = frame.bubble_border()->GetInsets(); local 52 EXPECT_EQ(insets.left() + margin_x, frame.GetBoundsForClientView().x()); 53 EXPECT_EQ(insets.top() + margin_y, frame.GetBoundsForClientView().y()); 61 gfx::Insets insets = frame.bubble_border()->GetInsets(); local 62 int xposition = 95 - insets.width();
|
/external/chromium_org/ui/views/controls/button/ |
H A D | label_button_border.h | 11 #include "ui/gfx/insets.h" 31 void set_insets(const gfx::Insets& insets) { insets_ = insets; } argument
|
/external/chromium_org/ash/wm/ |
H A D | resize_handle_window_targeter.cc | 56 gfx::Insets insets; local 66 insets = gfx::Insets(kImmersiveFullscreenTopEdgeInset, 0, 0, 0); 70 insets = frame_border_inset_; 73 if (!insets.empty()) { 75 bounds.Inset(insets);
|
/external/chromium_org/ash/system/chromeos/virtual_keyboard/ |
H A D | virtual_keyboard_tray.cc | 68 gfx::Insets insets = button_->GetInsets(); local
|
/external/chromium_org/chrome/browser/ui/views/autofill/ |
H A D | generated_credit_card_bubble_views.cc | 12 #include "ui/gfx/insets.h" 103 gfx::Insets insets = views::BubbleFrameView::GetTitleInsets(); local 104 set_margins(gfx::Insets(0, insets.left(), insets.top(), insets.left()));
|
H A D | decorated_textfield.cc | 156 // Adjust the border insets to include the icon and its padding. 159 gfx::Insets insets = border->GetInsets(); local 160 int left = insets.left() + (base::i18n::IsRTL() ? w : 0); 161 int right = insets.right() + (base::i18n::IsRTL() ? 0 : w); 162 border->SetInsets(insets.top(), left, insets.bottom(), right);
|
H A D | new_credit_card_bubble_views.cc | 13 #include "ui/gfx/insets.h" 157 gfx::Insets insets = views::BubbleFrameView::GetTitleInsets(); local 158 set_margins(gfx::Insets(0, insets.left(), insets.top(), insets.left()));
|
/external/chromium_org/ash/ |
H A D | popup_message.cc | 10 #include "ui/gfx/insets.h" 75 gfx::Insets insets = gfx::Insets(kArrowOffsetTopBottom, local 82 insets += anchor->border()->GetInsets(); 84 set_anchor_view_insets(insets);
|
/external/chromium_org/ash/system/chromeos/session/ |
H A D | logout_button_tray.cc | 20 #include "ui/gfx/geometry/insets.h" 82 gfx::Insets insets = border->GetInsets(); local 83 insets += gfx::Insets(0, kLogoutButtonHorizontalExtraPadding, 85 border->set_insets(insets);
|
/external/chromium_org/chrome/browser/apps/ |
H A D | app_window_interactive_uitest.cc | 386 // Note that this does not include the the client area insets so we need to 388 gfx::Insets insets; local 389 host->GetClientAreaInsets(&insets); 390 min_size = gfx::Size(min_size.width() + insets.left() + insets.right(), 391 min_size.height() + insets.top() + insets.bottom()); 393 max_size.width() ? max_size.width() + insets.left() + insets.right() : 0, 394 max_size.height() ? max_size.height() + insets [all...] |
/external/chromium_org/chrome/browser/chromeos/ui/ |
H A D | echo_dialog_view.cc | 165 gfx::Insets insets = GetInsets(); local 166 size.Enlarge(insets.width(), insets.height());
|
/external/chromium_org/ui/gfx/ |
H A D | display.cc | 13 #include "ui/gfx/insets.h" 133 Insets insets = bounds_.InsetsFrom(work_area_); local 148 UpdateWorkAreaFromInsets(insets); 161 void Display::UpdateWorkAreaFromInsets(const gfx::Insets& insets) { argument 163 work_area_.Inset(insets);
|
/external/chromium_org/ui/views/ |
H A D | border.cc | 99 explicit BorderPainter(Painter* painter, const gfx::Insets& insets) argument 101 insets_(insets) { 165 const gfx::Insets& insets) { 166 return scoped_ptr<Border>(new BorderPainter(painter, insets)); 164 CreateBorderPainter(Painter* painter, const gfx::Insets& insets) argument
|
/external/chromium_org/ash/display/ |
H A D | root_window_transformers.cc | 21 #include "ui/gfx/insets.h" 111 gfx::Transform CreateInsetsAndScaleTransform(const gfx::Insets& insets, argument 115 if (insets.top() != 0 || insets.left() != 0) { 116 float x_offset = insets.left() / device_scale_factor; 117 float y_offset = insets.top() / device_scale_factor; 163 // Ignore the origin because RootWindow's insets are handled by 202 // pixel size (excluding overscan insets).
|
/external/chromium_org/ash/ime/ |
H A D | candidate_view.cc | 70 const gfx::Insets insets = local 75 insets.top(), insets.left(), insets.bottom(), insets.right()));
|