Searched refs:insets (Results 1 - 25 of 129) sorted by relevance

123456

/external/chromium_org/ui/gfx/geometry/
H A Dinsets_unittest.cc5 #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 Dinsets_base.h12 // 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/apps/
H A Dapp_window_browsertest.cc30 gfx::Insets insets = native_window->GetFrameInsets(); local
34 EXPECT_GT(insets.top(), insets.bottom());
54 gfx::Insets insets = native_window->GetFrameInsets(); local
58 EXPECT_GT(insets.top(), insets.bottom());
68 gfx::Insets insets = native_window->GetFrameInsets(); local
70 // All insets must be zero.
71 EXPECT_EQ(0, insets.top());
72 EXPECT_EQ(0, insets
[all...]
/external/chromium_org/chrome/browser/ui/webui/options/chromeos/
H A Ddisplay_overscan_handler.cc155 gfx::Insets insets = overscan_calibrator_->insets();
157 insets.Set(insets.top(), insets.left() + length,
158 insets.bottom(), insets.right() - length);
160 insets.Set(insets.top() + length, insets
[all...]
/external/chromium_org/chrome/browser/devtools/
H A Ddevtools_contents_resizing_strategy.cc13 const gfx::Insets& insets, const gfx::Size& min_size)
14 : insets_(insets),
26 insets_ = strategy.insets();
33 return insets_ == strategy.insets() && min_size_ == strategy.min_size() &&
47 const gfx::Insets& insets = strategy.insets(); local
60 int width = std::max(0, container_size.width() - insets.width());
61 int left = insets.left();
62 if (width < min_size.width() && insets.width() > 0) {
65 int insets_decrease = insets
12 DevToolsContentsResizingStrategy( const gfx::Insets& insets, const gfx::Size& min_size) argument
[all...]
H A Ddevtools_contents_resizing_strategy.h9 #include "ui/gfx/insets.h"
19 const gfx::Insets& insets,
26 const gfx::Insets& insets() const { return insets_; } function in class:DevToolsContentsResizingStrategy
37 // Contents bounds. When non-empty, used instead of insets.
/external/chromium_org/chrome/browser/ui/views/toolbar/
H A Dback_button.cc7 #include "ui/gfx/insets.h"
45 // Adjust border insets to follow the margin change,
48 const gfx::Insets insets(border->GetInsets());
49 border->set_insets(gfx::Insets(insets.top(), insets.left() + margin_leading_,
50 insets.bottom(), insets.right()));
/external/chromium_org/chrome/browser/ui/views/apps/
H A Dapp_window_desktop_window_tree_host_win.cc30 gfx::Insets* insets) const {
31 // Use the default client insets for an opaque frame or a glass popup/app
44 insets->Set(0, border_thickness, border_thickness, border_thickness);
76 gfx::Insets insets = app_window_->glass_frame_view()->GetGlassInsets(); local
77 margins.cxLeftWidth = insets.left();
78 margins.cxRightWidth = insets.right();
79 margins.cyBottomHeight = insets.bottom();
80 margins.cyTopHeight = insets.top();
H A Dglass_app_window_frame_view_win.cc33 // Also make sure the insets don't go below 1, as bad things happen when they
46 gfx::Insets insets = GetGlassInsets();
47 return gfx::Rect(insets.left(),
48 insets.top(),
49 std::max(0, width() - insets.left() - insets.right()),
50 std::max(0, height() - insets.top() - insets.bottom()));
55 gfx::Insets insets = GetGlassInsets(); local
56 return gfx::Rect(client_bounds.x() - insets
[all...]
H A Dapp_window_desktop_window_tree_host_win.h29 virtual bool GetClientAreaInsets(gfx::Insets* insets) const OVERRIDE;
/external/chromium_org/ui/views/controls/button/
H A Dblue_button.cc26 // Inherit STYLE_BUTTON insets, minimum size, alignment, etc.
57 const gfx::Insets insets(5, 5, 5, 5);
61 *rb.GetImageSkiaNamed(IDR_BLUE_BUTTON_NORMAL), insets));
63 *rb.GetImageSkiaNamed(IDR_BLUE_BUTTON_HOVER), insets));
65 *rb.GetImageSkiaNamed(IDR_BLUE_BUTTON_PRESSED), insets));
67 *rb.GetImageSkiaNamed(IDR_BLUE_BUTTON_DISABLED), insets));
69 *rb.GetImageSkiaNamed(IDR_BLUE_BUTTON_FOCUSED_NORMAL), insets));
71 *rb.GetImageSkiaNamed(IDR_BLUE_BUTTON_FOCUSED_HOVER), insets));
73 *rb.GetImageSkiaNamed(IDR_BLUE_BUTTON_FOCUSED_PRESSED), insets));
75 *rb.GetImageSkiaNamed(IDR_BLUE_BUTTON_DISABLED), insets));
[all...]
H A Dlabel_button_border.cc55 const gfx::Insets insets(kButtonInsets,
64 *rb.GetImageSkiaNamed(IDR_BUTTON_NORMAL), insets));
67 *rb.GetImageSkiaNamed(IDR_BUTTON_HOVER), insets));
70 *rb.GetImageSkiaNamed(IDR_BUTTON_PRESSED), insets));
73 *rb.GetImageSkiaNamed(IDR_BUTTON_DISABLED), insets));
76 *rb.GetImageSkiaNamed(IDR_BUTTON_FOCUSED_NORMAL), insets));
79 *rb.GetImageSkiaNamed(IDR_BUTTON_FOCUSED_HOVER), insets));
82 *rb.GetImageSkiaNamed(IDR_BUTTON_FOCUSED_PRESSED), insets));
85 *rb.GetImageSkiaNamed(IDR_BUTTON_DISABLED), insets));
H A Dlabel_button_border.h11 #include "ui/gfx/insets.h"
31 void set_insets(const gfx::Insets& insets) { insets_ = insets; } argument
/external/chromium_org/ui/views/layout/
H A Dfill_layout.cc36 const gfx::Insets insets = host->GetInsets(); local
37 return host->child_at(0)->GetHeightForWidth(width - insets.width()) +
38 insets.height();
/external/chromium_org/ash/wm/
H A Dresize_handle_window_targeter.cc56 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/chrome/browser/chromeos/display/
H A Doverscan_calibrator.h12 #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
51 // The current insets.
54 // The insets initially given. Stored so we can undo the insets later.
57 // Whether the current insets ar
[all...]
/external/proguard/src/proguard/gui/
H A DMemberSpecificationDialog.java87 constraints.insets = new Insets(1, 2, 1, 2);
93 constraintsStretch.insets = constraints.insets;
98 constraintsLast.insets = constraints.insets;
105 constraintsLastStretch.insets = constraints.insets;
113 panelConstraints.insets = constraints.insets;
121 stretchPanelConstraints.insets
[all...]
H A DOptimizationsDialog.java64 constraintsLast.insets = new Insets(1, 2, 1, 2);
71 constraintsLastStretch.insets = constraintsLast.insets;
79 panelConstraints.insets = constraintsLast.insets;
84 selectButtonConstraints.insets = new Insets(4, 4, 8, 4);
90 okButtonConstraints.insets = selectButtonConstraints.insets;
96 cancelButtonConstraints.insets = selectButtonConstraints.insets;
[all...]
H A DFilterDialog.java77 textConstraints.insets = new Insets(10, 10, 10, 10);
81 labelConstraints.insets = new Insets(1, 2, 1, 2);
88 textFieldConstraints.insets = labelConstraints.insets;
96 panelConstraints.insets = labelConstraints.insets;
102 okButtonConstraints.insets = new Insets(4, 4, 8, 4);
108 cancelButtonConstraints.insets = okButtonConstraints.insets;
/external/chromium_org/chrome/browser/ui/views/autofill/
H A Dgenerated_credit_card_bubble_views.cc12 #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()));
/external/chromium_org/ash/system/tray/
H A Dfixed_sized_scroll_view.cc31 gfx::Insets insets = GetInsets(); local
32 size.Enlarge(insets.width(), insets.height());
/external/chromium_org/ui/views/
H A Dpainter.cc15 #include "ui/gfx/insets.h"
29 explicit DashedFocusPainter(const gfx::Insets& insets);
42 DashedFocusPainter::DashedFocusPainter(const gfx::Insets& insets) argument
43 : insets_(insets) {
63 SolidFocusPainter(SkColor color, const gfx::Insets& insets);
78 const gfx::Insets& insets)
80 insets_(insets) {
172 // Constructs an ImagePainter with the specified image and insets.
173 ImagePainter(const gfx::ImageSkia& image, const gfx::Insets& insets);
192 const gfx::Insets& insets)
77 SolidFocusPainter(SkColor color, const gfx::Insets& insets) argument
191 ImagePainter(const gfx::ImageSkia& image, const gfx::Insets& insets) argument
263 CreateImagePainter(const gfx::ImageSkia& image, const gfx::Insets& insets) argument
279 CreateDashedFocusPainterWithInsets( const gfx::Insets& insets) argument
285 CreateSolidFocusPainter( SkColor color, const gfx::Insets& insets) argument
[all...]
H A Dpainter.h60 // are rendered at the size specified in insets (eg. the upper-left corner is
61 // rendered at 0 x 0 with a size of insets.left() x insets.top()). The center
64 const gfx::Insets& insets);
76 const gfx::Insets& insets);
78 const gfx::Insets& insets);
/external/chromium_org/ui/views/controls/
H A Dimage_view.cc12 #include "ui/gfx/insets.h"
95 gfx::Insets insets = GetInsets(); local
99 image_size.Enlarge(insets.width(), insets.height());
102 return gfx::Size(image_.width() + insets.width(),
103 image_.height() + insets.height());
118 gfx::Insets insets = GetInsets(); local
129 case LEADING: x = insets.left(); break;
130 case TRAILING: x = width() - insets.right() - image_size.width(); break;
137 case LEADING: y = insets
[all...]
/external/chromium_org/ui/gfx/
H A Dnine_image_painter.h21 NineImagePainter(const ImageSkia& image, const Insets& insets);

Completed in 719 milliseconds

123456