Home
last modified time | relevance | path

Searched refs:margins (Results 1 – 25 of 54) sorted by relevance

123

/external/chromium_org/chrome/browser/resources/print_preview/data/ticket_items/
Dcustom_margins.js66 var margins = /** @type {!print_preview.Margins} */ (value);
70 o, margins.get(CustomMargins.OppositeOrientation_[o]));
71 if (margins.get(o) > max || margins.get(o) < 0) {
95 var margins = /** @type {!print_preview.Margins} */ (this.getValue());
96 return this.getMarginMax_(orientation, margins.get(oppositeOrient));
101 var margins = /** @type {!print_preview.Margins} */ (value);
102 if (margins != null) {
103 margins = new print_preview.Margins(
104 Math.round(margins.get(CustomMargins.Orientation.TOP)),
105 Math.round(margins.get(CustomMargins.Orientation.RIGHT)),
[all …]
Dheader_footer.js66 var margins;
72 margins = this.customMargins_.getValue();
74 margins = this.getDocumentInfoInternal().margins;
77 return margins == null ||
78 margins.get(orientEnum.TOP) > 0 ||
79 margins.get(orientEnum.BOTTOM) > 0;
/external/chromium_org/printing/
Dpage_setup_unittest.cc20 printing::PageMargins margins; in TEST() local
21 margins.header = rand() % kMax; in TEST()
22 margins.footer = rand() % kMax; in TEST()
23 margins.left = rand() % kMax; in TEST()
24 margins.top = rand() % kMax; in TEST()
25 margins.right = rand() % kMax; in TEST()
26 margins.bottom = rand() % kMax; in TEST()
39 setup.SetRequestedMargins(margins); in TEST()
44 effective_margins.header = std::max(margins.header, printable_area.y()); in TEST()
45 effective_margins.left = std::max(margins.left, printable_area.x()); in TEST()
[all …]
Dprint_settings.cc155 PageMargins margins; in SetPrinterPrintableArea() local
161 margins.header = header_footer_text_height; in SetPrinterPrintableArea()
162 margins.footer = header_footer_text_height; in SetPrinterPrintableArea()
163 margins.top = margin_printer_units; in SetPrinterPrintableArea()
164 margins.bottom = margin_printer_units; in SetPrinterPrintableArea()
165 margins.left = margin_printer_units; in SetPrinterPrintableArea()
166 margins.right = margin_printer_units; in SetPrinterPrintableArea()
171 margins.header = 0; in SetPrinterPrintableArea()
172 margins.footer = 0; in SetPrinterPrintableArea()
173 margins.top = 0; in SetPrinterPrintableArea()
[all …]
Dprint_settings_conversion.cc41 const PageMargins& margins, in SetMarginsToJobSettings() argument
45 dict->SetInteger(kSettingMarginTop, margins.top); in SetMarginsToJobSettings()
46 dict->SetInteger(kSettingMarginBottom, margins.bottom); in SetMarginsToJobSettings()
47 dict->SetInteger(kSettingMarginLeft, margins.left); in SetMarginsToJobSettings()
48 dict->SetInteger(kSettingMarginRight, margins.right); in SetMarginsToJobSettings()
/external/skia/src/utils/
DSkNinePatch.cpp255 const SkBitmap& bitmap, const SkIRect& margins, in drawNineViaRects() argument
258 0, margins.fLeft, bitmap.width() - margins.fRight, bitmap.width() in drawNineViaRects()
261 0, margins.fTop, bitmap.height() - margins.fBottom, bitmap.height() in drawNineViaRects()
264 dst.fLeft, dst.fLeft + SkIntToScalar(margins.fLeft), in drawNineViaRects()
265 dst.fRight - SkIntToScalar(margins.fRight), dst.fRight in drawNineViaRects()
268 dst.fTop, dst.fTop + SkIntToScalar(margins.fTop), in drawNineViaRects()
269 dst.fBottom - SkIntToScalar(margins.fBottom), dst.fBottom in drawNineViaRects()
273 dstX[1] = dstX[0] + (dstX[3] - dstX[0]) * SkIntToScalar(margins.fLeft) / in drawNineViaRects()
274 (SkIntToScalar(margins.fLeft) + SkIntToScalar(margins.fRight)); in drawNineViaRects()
279 dstY[1] = dstY[0] + (dstY[3] - dstY[0]) * SkIntToScalar(margins.fTop) / in drawNineViaRects()
[all …]
/external/chromium_org/third_party/skia/src/utils/
DSkNinePatch.cpp255 const SkBitmap& bitmap, const SkIRect& margins, in drawNineViaRects() argument
258 0, margins.fLeft, bitmap.width() - margins.fRight, bitmap.width() in drawNineViaRects()
261 0, margins.fTop, bitmap.height() - margins.fBottom, bitmap.height() in drawNineViaRects()
264 dst.fLeft, dst.fLeft + SkIntToScalar(margins.fLeft), in drawNineViaRects()
265 dst.fRight - SkIntToScalar(margins.fRight), dst.fRight in drawNineViaRects()
268 dst.fTop, dst.fTop + SkIntToScalar(margins.fTop), in drawNineViaRects()
269 dst.fBottom - SkIntToScalar(margins.fBottom), dst.fBottom in drawNineViaRects()
273 dstX[1] = dstX[0] + (dstX[3] - dstX[0]) * SkIntToScalar(margins.fLeft) / in drawNineViaRects()
274 (SkIntToScalar(margins.fLeft) + SkIntToScalar(margins.fRight)); in drawNineViaRects()
279 dstY[1] = dstY[0] + (dstY[3] - dstY[0]) * SkIntToScalar(margins.fTop) / in drawNineViaRects()
[all …]
/external/eclipse-windowbuilder/propertysheet/src/org/eclipse/wb/internal/core/utils/ui/
DGridLayoutFactory.java71 public GridLayoutFactory marginsH(int margins) { in marginsH() argument
72 m_layout.marginWidth = margins; in marginsH()
79 public GridLayoutFactory marginsV(int margins) { in marginsV() argument
80 m_layout.marginHeight = margins; in marginsV()
87 public GridLayoutFactory margins(int margins) { in margins() method in GridLayoutFactory
88 m_layout.marginWidth = m_layout.marginHeight = margins; in margins()
/external/chromium_org/chrome/browser/ui/views/apps/
Dapp_window_desktop_window_tree_host_win.cc71 MARGINS margins = {0}; in UpdateDWMFrame() local
77 margins.cxLeftWidth = insets.left(); in UpdateDWMFrame()
78 margins.cxRightWidth = insets.right(); in UpdateDWMFrame()
79 margins.cyBottomHeight = insets.bottom(); in UpdateDWMFrame()
80 margins.cyTopHeight = insets.top(); in UpdateDWMFrame()
83 DwmExtendFrameIntoClientArea(GetHWND(), &margins); in UpdateDWMFrame()
/external/chromium_org/chrome/browser/ui/views/frame/
Dbrowser_desktop_window_tree_host_win.cc229 MARGINS margins = GetDWMFrameMargins(); in PostHandleMSG() local
233 RECT rect = { 0, 0, client_rect.right, margins.cyTopHeight }; in PostHandleMSG()
290 MARGINS margins = GetDWMFrameMargins(); in UpdateDWMFrame() local
292 DwmExtendFrameIntoClientArea(GetHWND(), &margins); in UpdateDWMFrame()
296 MARGINS margins = { 0 }; in GetDWMFrameMargins() local
305 margins.cxLeftWidth = kClientEdgeThickness + 1; in GetDWMFrameMargins()
306 margins.cxRightWidth = kClientEdgeThickness + 1; in GetDWMFrameMargins()
307 margins.cyBottomHeight = kClientEdgeThickness + 1; in GetDWMFrameMargins()
308 margins.cyTopHeight = kClientEdgeThickness + 1; in GetDWMFrameMargins()
316 margins.cyTopHeight = tabstrip_bounds.bottom() + kDWMFrameTopOffset; in GetDWMFrameMargins()
[all …]
/external/chromium_org/components/cloud_devices/common/
Dprinter_description_unittest.cc273 MarginsCapability margins; in TEST() local
288 EXPECT_FALSE(margins.LoadFrom(description)); in TEST()
319 MarginsCapability margins; in TEST() local
352 margins.AddDefaultOption(Margins(NO_MARGINS, 0, 0, 0, 0), true); in TEST()
353 margins.AddOption(Margins(STANDARD_MARGINS, 100, 200, 300, 400)); in TEST()
354 margins.AddOption(Margins(CUSTOM_MARGINS, 1, 2, 3, 4)); in TEST()
378 margins.SaveTo(&description); in TEST()
399 MarginsCapability margins; in TEST() local
413 EXPECT_TRUE(margins.LoadFrom(description)); in TEST()
448 EXPECT_TRUE(margins.Contains(Margins(NO_MARGINS, 0, 0, 0, 0))); in TEST()
[all …]
/external/chromium_org/third_party/WebKit/Source/devtools/front_end/components/
DInspectedPagePlaceholder.js27 var margins = { top: 0, right: 0, bottom: 0, left: 0 }; variable
39 margins[side] = WebInspector.InspectedPagePlaceholder.MarginValue;
46 …gins.top !== margins.top || this._margins.left !== margins.left || this._margins.right !== margins
47 this._margins = margins;
/external/chromium_org/android_webview/native/
Daw_pdf_exporter.cc86 PageMargins margins; in CreatePdfSettings() local
87 margins.left = in CreatePdfSettings()
89 margins.right = in CreatePdfSettings()
91 margins.top = in CreatePdfSettings()
93 margins.bottom = in CreatePdfSettings()
95 print_settings_->SetCustomMargins(margins); in CreatePdfSettings()
/external/chromium_org/chrome/browser/resources/print_preview/
Dpreview_generator.js288 this.documentInfo_.margins)) ||
314 var margins = new print_preview.Margins(
323 margins.get(o.LEFT) + margins.get(o.RIGHT),
325 margins.get(o.TOP) + margins.get(o.BOTTOM));
331 margins);
/external/chromium_org/chrome/browser/resources/print_preview/data/
Ddocument_info.js129 get margins() { getter in DocumentInfo
210 printableArea, pageSize, hasCssMediaStyles, margins) { argument
215 this.margins_ == null || !this.margins_.equals(margins))) {
219 this.margins_ = margins;
/external/chromium_org/ui/views/bubble/
Dbubble_delegate.h77 const gfx::Insets& margins() const { return margins_; } in margins() function
78 void set_margins(const gfx::Insets& margins) { margins_ = margins; } in set_margins() argument
/external/chromium_org/third_party/WebKit/Source/platform/mac/
DThemeMac.mm207 static IntRect inflateRect(const IntRect& zoomedRect, const IntSize& zoomedSize, const int* margins
211 …idthDelta = zoomedRect.width() - (zoomedSize.width() + margins[leftMargin] * zoomFactor + margins[…
212 …ghtDelta = zoomedRect.height() - (zoomedSize.height() + margins[topMargin] * zoomFactor + margins[…
215 result.setX(result.x() - margins[leftMargin] * zoomFactor);
219 result.setY(result.y() - margins[topMargin] * zoomFactor);
235 static const int margins[3][4] =
241 return margins[controlSize];
319 static const int margins[3][4] =
325 return margins[controlSize];
400 static const int margins[3][4] =
[all …]
/external/chromium_org/chrome/browser/resources/print_preview/previewarea/
Dmargin_control_container.js405 var margins = this.customMarginsTicketItem_.getValue();
410 this.serializeValueFromPts_(margins.get(orientation)));
411 control.setPositionInPts(margins.get(orientation));
/external/chromium_org/third_party/skia/include/utils/
DSkNinePatch.h23 const SkBitmap& bitmap, const SkIRect& margins,
/external/skia/include/utils/
DSkNinePatch.h23 const SkBitmap& bitmap, const SkIRect& margins,
/external/chromium_org/ash/ime/
Dmode_indicator_view.cc86 views::BubbleFrameView* frame = new ModeIndicatorFrameView(margins()); in CreateNonClientFrameView()
/external/chromium_org/ui/webui/resources/css/
Dtrash.css55 /* The margins match the background position offsets. */
/external/chromium_org/third_party/lcov/contrib/galaxy/
DREADME40 Update posterize.pl as needed, normally page size, margins, titles.
/external/chromium_org/chrome/browser/ui/views/autofill/
Dinfo_bubble.cc123 frame_ = new InfoBubbleFrame(margins()); in CreateNonClientFrameView()
/external/chromium_org/chrome/service/cloud_print/
Dcdd_conversion_win.cc48 MarginsTicketItem margins; in CjtToDevMode() local

123