/external/chromium_org/chrome/browser/resources/print_preview/data/ticket_items/ |
H A D | custom_margins.js | 9 * Custom page margins ticket item whose value is a 12 * margins. 28 * Enumeration of the orientations of margins. 54 * Minimum distance in points that two margins can be separated by. 66 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 [all...] |
H A D | header_footer.js | 16 * that stores which predefined margins to print with. 31 * Ticket item that stores which predefined margins to print with. 66 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/ |
H A D | print_settings.cc | 155 PageMargins margins; local 158 // Default margins 1.0cm = ~2/5 of an inch. 161 margins.header = header_footer_text_height; 162 margins.footer = header_footer_text_height; 163 margins.top = margin_printer_units; 164 margins.bottom = margin_printer_units; 165 margins.left = margin_printer_units; 166 margins.right = margin_printer_units; 171 margins.header = 0; 172 margins [all...] |
H A D | page_setup_unittest.cc | 20 printing::PageMargins margins; local 21 margins.header = rand() % kMax; 22 margins.footer = rand() % kMax; 23 margins.left = rand() % kMax; 24 margins.top = rand() % kMax; 25 margins.right = rand() % kMax; 26 margins.bottom = rand() % kMax; 39 setup.SetRequestedMargins(margins); 42 // Calculate the effective margins. 44 effective_margins.header = std::max(margins 104 printing::PageMargins margins; local 168 printing::PageMargins margins; local 198 printing::PageMargins margins; local [all...] |
H A D | print_settings_conversion.cc | 41 const PageMargins& margins, 45 dict->SetInteger(kSettingMarginTop, margins.top); 46 dict->SetInteger(kSettingMarginBottom, margins.bottom); 47 dict->SetInteger(kSettingMarginLeft, margins.left); 48 dict->SetInteger(kSettingMarginRight, margins.right); 40 SetMarginsToJobSettings(const std::string& json_path, const PageMargins& margins, base::DictionaryValue* job_settings) argument
|
/external/eclipse-windowbuilder/propertysheet/src/org/eclipse/wb/internal/core/utils/ui/ |
H A D | GridLayoutFactory.java | 69 * Sets the horizontal margins. 71 public GridLayoutFactory marginsH(int margins) { argument 72 m_layout.marginWidth = margins; 77 * Sets the vertical margins. 79 public GridLayoutFactory marginsV(int margins) { argument 80 m_layout.marginHeight = margins; 85 * Sets the horizontal/vertical margins. 87 public GridLayoutFactory margins(int margins) { argument 88 m_layout.marginWidth = m_layout.marginHeight = margins; [all...] |
/external/chromium_org/chrome/browser/ui/views/apps/ |
H A D | app_window_desktop_window_tree_host_win.cc | 70 MARGINS margins = {0}; 72 // If the opaque frame is visible, we use the default (zero) margins. 79 margins.cxLeftWidth = insets.left(); 80 margins.cxRightWidth = insets.right(); 81 margins.cyBottomHeight = insets.bottom(); 82 margins.cyTopHeight = insets.top(); 85 DwmExtendFrameIntoClientArea(GetHWND(), &margins); local
|
/external/chromium_org/third_party/skia/src/utils/ |
H A D | SkNinePatch.cpp | 255 const SkBitmap& bitmap, const SkIRect& margins, 258 0, margins.fLeft, bitmap.width() - margins.fRight, bitmap.width() 261 0, margins.fTop, bitmap.height() - margins.fBottom, bitmap.height() 264 dst.fLeft, dst.fLeft + SkIntToScalar(margins.fLeft), 265 dst.fRight - SkIntToScalar(margins.fRight), dst.fRight 268 dst.fTop, dst.fTop + SkIntToScalar(margins.fTop), 269 dst.fBottom - SkIntToScalar(margins.fBottom), dst.fBottom 273 dstX[1] = dstX[0] + (dstX[3] - dstX[0]) * SkIntToScalar(margins 254 drawNineViaRects(SkCanvas* canvas, const SkRect& dst, const SkBitmap& bitmap, const SkIRect& margins, const SkPaint* paint) argument 301 DrawNine(SkCanvas* canvas, const SkRect& bounds, const SkBitmap& bitmap, const SkIRect& margins, const SkPaint* paint) argument [all...] |
/external/skia/src/utils/ |
H A D | SkNinePatch.cpp | 255 const SkBitmap& bitmap, const SkIRect& margins, 258 0, margins.fLeft, bitmap.width() - margins.fRight, bitmap.width() 261 0, margins.fTop, bitmap.height() - margins.fBottom, bitmap.height() 264 dst.fLeft, dst.fLeft + SkIntToScalar(margins.fLeft), 265 dst.fRight - SkIntToScalar(margins.fRight), dst.fRight 268 dst.fTop, dst.fTop + SkIntToScalar(margins.fTop), 269 dst.fBottom - SkIntToScalar(margins.fBottom), dst.fBottom 273 dstX[1] = dstX[0] + (dstX[3] - dstX[0]) * SkIntToScalar(margins 254 drawNineViaRects(SkCanvas* canvas, const SkRect& dst, const SkBitmap& bitmap, const SkIRect& margins, const SkPaint* paint) argument 301 DrawNine(SkCanvas* canvas, const SkRect& bounds, const SkBitmap& bitmap, const SkIRect& margins, const SkPaint* paint) argument [all...] |
/external/chromium_org/android_webview/native/ |
H A D | aw_pdf_exporter.cc | 86 PageMargins margins; local 87 margins.left = 89 margins.right = 91 margins.top = 93 margins.bottom = 95 print_settings_->SetCustomMargins(margins);
|
/external/chromium_org/chrome/browser/resources/print_preview/data/ |
H A D | document_info.js | 129 get margins() { 207 * @param {print_preview.Margins} margins Margins of the document in points. 210 printableArea, pageSize, hasCssMediaStyles, margins) { 215 this.margins_ == null || !this.margins_.equals(margins))) { 219 this.margins_ = margins;
|
/external/chromium_org/third_party/skia/include/utils/ |
H A D | SkNinePatch.h | 23 const SkBitmap& bitmap, const SkIRect& margins,
|
/external/skia/include/utils/ |
H A D | SkNinePatch.h | 23 const SkBitmap& bitmap, const SkIRect& margins,
|
/external/chromium_org/chrome/browser/ui/views/frame/ |
H A D | browser_desktop_window_tree_host_win.cc | 228 MARGINS margins = GetDWMFrameMargins(); local 232 RECT rect = { 0, 0, client_rect.right, margins.cyTopHeight }; 289 MARGINS margins = GetDWMFrameMargins(); 291 DwmExtendFrameIntoClientArea(GetHWND(), &margins); local 295 MARGINS margins = { 0 }; local 297 // If the opaque frame is visible, we use the default (zero) margins. 304 margins.cxLeftWidth = kClientEdgeThickness + 1; 305 margins.cxRightWidth = kClientEdgeThickness + 1; 306 margins.cyBottomHeight = kClientEdgeThickness + 1; 307 margins [all...] |
/external/chromium_org/third_party/WebKit/Source/devtools/front_end/toolbox/ |
H A D | InspectedPagePlaceholder.js | 27 var margins = { top: 0, right: 0, bottom: 0, left: 0 }; 39 margins[side] = WebInspector.InspectedPagePlaceholder.MarginValue; 46 if (this._margins.top !== margins.top || this._margins.left !== margins.left || this._margins.right !== margins.right || this._margins.bottom !== margins.bottom) { 47 this._margins = margins;
|
/external/chromium_org/components/cloud_devices/common/ |
H A D | printer_description_unittest.cc | 76 " 'margins': {" 216 " 'margins': {" 273 MarginsCapability margins; local 288 EXPECT_FALSE(margins.LoadFrom(description)); 319 MarginsCapability margins; local 352 margins.AddDefaultOption(Margins(NO_MARGINS, 0, 0, 0, 0), true); 353 margins.AddOption(Margins(STANDARD_MARGINS, 100, 200, 300, 400)); 354 margins.AddOption(Margins(CUSTOM_MARGINS, 1, 2, 3, 4)); 378 margins.SaveTo(&description); 399 MarginsCapability margins; local 484 MarginsTicketItem margins; local 520 MarginsTicketItem margins; local 572 MarginsTicketItem margins; local [all...] |
/external/chromium_org/chrome/browser/resources/print_preview/ |
H A D | preview_generator.js | 288 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);
|
H A D | print_preview.js | 1011 } else if ('margins' in event.settings) { 1012 this.setMarginsForTest_(event.settings.margins); 1112 * @param {number} margins The desired margins combobox index. Must be 1116 setMarginsForTest_: function(margins) { 1118 if (margins == combobox.selectedIndex) { 1120 } else if (margins >= 0 && margins < combobox.length) { 1121 combobox.selectedIndex = margins; 1245 <include src="data/margins [all...] |
/external/chromium_org/ui/views/bubble/ |
H A D | bubble_delegate.h | 76 const gfx::Insets& margins() const { return margins_; } function in class:views::BubbleDelegateView 77 void set_margins(const gfx::Insets& margins) { margins_ = margins; } argument 176 // The margins between the content and the inside of the border.
|
/external/chromium_org/third_party/WebKit/Source/platform/mac/ |
H A D | ThemeMac.h | 57 // Inflate an IntRect to accout for specific padding around margins. 64 static PLATFORM_EXPORT IntRect inflateRect(const IntRect&, const IntSize&, const int* margins, float zoomLevel = 1.0f);
|
H A D | ThemeMac.mm | 199 IntRect ThemeMac::inflateRect(const IntRect& zoomedRect, const IntSize& zoomedSize, const int* margins, float zoomFactor) 203 int widthDelta = zoomedRect.width() - (zoomedSize.width() + margins[LeftMargin] * zoomFactor + margins[RightMargin] * zoomFactor); 204 int heightDelta = zoomedRect.height() - (zoomedSize.height() + margins[TopMargin] * zoomFactor + margins[BottomMargin] * zoomFactor); 207 result.setX(result.x() - margins[LeftMargin] * zoomFactor); 211 result.setY(result.y() - margins[TopMargin] * zoomFactor); 251 static const int margins[3][4] = 257 return margins[controlSize]; 335 static const int margins[ [all...] |
/external/chromium_org/ash/ime/ |
H A D | mode_indicator_view.cc | 86 views::BubbleFrameView* frame = new ModeIndicatorFrameView(margins());
|
/external/chromium_org/chrome/browser/resources/print_preview/previewarea/ |
H A D | margin_control_container.js | 9 * UI component used for setting custom print margins. 12 * Used to read margins type. 32 * Margins type ticket item used to read predefined margins type. 37 * Custom margins ticket item used to read/write custom margin values. 76 * custom margins component to the top-left corner of the most visible 101 * CSS classes used by the custom margins component. 313 * Called when the mouse moves in the custom margins component. Moves the 329 * Called when the mouse is released in the custom margins component. 405 var margins = this.customMarginsTicketItem_.getValue(); 410 this.serializeValueFromPts_(margins [all...] |
/external/chromium_org/chrome/browser/ui/views/autofill/ |
H A D | info_bubble.cc | 123 frame_ = new InfoBubbleFrame(margins());
|
/external/chromium_org/chrome/browser/printing/ |
H A D | print_preview_pdf_generated_browsertest.cc | 76 // Waiting for the sixth message so the test can set the margins combobox 90 MarginType margins, 96 margins(margins), 103 MarginType margins; member in struct:printing::PrintPreviewSettings 188 script_argument.SetInteger("margins", settings_->margins); 86 PrintPreviewSettings(bool is_portrait, const std::string& page_numbers, bool headers_and_footers, bool background_colors_and_images, MarginType margins, bool source_is_pdf) argument
|