Home
last modified time | relevance | path

Searched refs:imageRect (Results 1 – 25 of 32) sorted by relevance

12

/external/chromium_org/chrome/browser/ui/cocoa/location_bar/
Dbubble_decoration.mm53 NSRect imageRect = NSInsetRect(frame, 0.0, kBackgroundYInset);
57 imageRect.origin.y +=
59 imageRect.size = imageSize;
61 return imageRect;
82 NSRect imageRect = decoration_frame;
83 imageRect.origin.y +=
85 imageRect.size = imageSize;
86 [image_ drawInRect:imageRect
92 textOffset = NSMaxX(imageRect) + kIconLabelPadding;
/external/chromium/chrome/browser/ui/cocoa/location_bar/
Dbubble_decoration.mm67 NSRect imageRect = NSInsetRect(frame, 0.0, kBubbleYInset);
71 imageRect.origin.y +=
73 imageRect.size = imageSize;
75 return imageRect;
109 NSRect imageRect = decorationFrame;
113 imageRect.origin.y +=
115 imageRect.size = imageSize;
116 [image_ drawInRect:imageRect
122 imageRect.size = NSZeroSize;
127 textRect.origin.x = NSMaxX(imageRect);
/external/chromium_org/chrome/browser/ui/cocoa/omnibox/
Domnibox_popup_cell.mm63 NSRect imageRect = cellFrame;
64 imageRect.size = [image size];
65 imageRect.origin.y +=
66 std::floor((NSHeight(cellFrame) - NSHeight(imageRect)) / 2.0);
67 imageRect.origin.x += kImageXOffset;
68 [image drawInRect:imageRect
/external/chromium_org/chrome/browser/ui/cocoa/
Dhover_close_button.mm86 NSRect imageRect = NSZeroRect;
87 imageRect.size = [image size];
91 - (NSHeight(imageRect) / 2));
92 destRect.size = imageRect.size;
97 fromRect:imageRect
106 fromRect:imageRect
123 fromRect:imageRect
130 fromRect:imageRect
Dimage_button_cell.mm87 NSRect imageRect;
88 imageRect.size = [image size];
89 imageRect.origin.x = cellFrame.origin.x +
90 roundf((NSWidth(cellFrame) - NSWidth(imageRect)) / 2.0);
91 imageRect.origin.y = cellFrame.origin.y +
92 roundf((NSHeight(cellFrame) - NSHeight(imageRect)) / 2.0);
94 [image drawInRect:imageRect
Dgradient_button_cell.mm617 NSRect imageRect = NSZeroRect;
618 imageRect.size = [[self image] size];
621 fromRect:imageRect
639 NSRect imageRect = NSZeroRect;
640 imageRect.size = [overlayImage_ size];
642 fromRect:imageRect
/external/chromium_org/chrome/browser/ui/cocoa/autofill/
Ddown_arrow_popup_menu_cell.mm32 NSRect imageRect, titleRect;
34 cellFrame, &imageRect, &titleRect, [self imageSize].width, NSMaxXEdge);
35 [super drawWithFrame:imageRect inView:controlView];
/external/chromium_org/third_party/WebKit/Source/platform/graphics/filters/
DSourceAlpha.cpp61 FloatRect imageRect(FloatPoint(), absolutePaintRect().size()); in applySoftware() local
63 filterContext->fillRect(imageRect, Color::black); in applySoftware()
DFEColorMatrix.cpp155 IntRect imageRect(IntPoint(), absolutePaintRect().size()); in applySoftware() local
156 RefPtr<Uint8ClampedArray> pixelArray = resultImage->getUnmultipliedImageData(imageRect); in applySoftware()
176 …resultImage->putByteArray(Unmultiplied, pixelArray.get(), imageRect.size(), imageRect, IntPoint()); in applySoftware()
/external/chromium_org/chrome/browser/resources/file_manager/foreground/js/photo/
Dmosaic_mode.js595 var imageRect = tile.getImageRect();
597 if (imageRect && !imageRect.intersects(renderableRect))
608 var imageRect = tile.getImageRect();
610 if (!tile.isLoading(loadMode) && !tile.isLoaded(loadMode) && imageRect &&
611 imageRect.intersects(visibleRect)) {
621 var imageRect = tile.getImageRect();
623 if (!tile.isLoading() && !tile.isLoaded() && imageRect &&
624 imageRect.intersects(renderableRect)) {
638 Mosaic.prototype.transform = function(tileRect, imageRect, opt_instant) { argument
646 if (this.canZoom() && tileRect && imageRect) {
[all …]
/external/chromium/chrome/browser/ui/cocoa/bookmarks/
Dbookmark_button_cell.mm236 NSRect imageRect = NSZeroRect;
237 imageRect.size = [arrowImage_ size];
239 CGFloat dX = NSWidth(cellFrame) - NSWidth(imageRect);
240 CGFloat dY = (NSHeight(cellFrame) / 2.0) - (NSHeight(imageRect) / 2.0) +
242 NSRect drawRect = NSOffsetRect(imageRect, dX, dY);
244 fromRect:imageRect
/external/chromium_org/chrome/browser/ui/cocoa/bookmarks/
Dbookmark_button_cell.mm285 NSRect imageRect = NSZeroRect;
286 imageRect.size = [arrowImage_ size];
289 NSWidth(cellFrame) - NSWidth(imageRect) - kHierarchyButtonXMargin;
290 CGFloat dY = (NSHeight(cellFrame) / 2.0) - (NSHeight(imageRect) / 2.0) +
292 NSRect drawRect = NSOffsetRect(imageRect, dX, dY);
294 fromRect:imageRect
/external/chromium_org/ui/message_center/cocoa/
Dsettings_entry_view.mm79 NSRect imageRect = frame;
80 imageRect.origin.x += inset;
83 imageRect.origin.y += (NSHeight(frame) - kEntryIconSize) / 2;
84 imageRect.size = NSMakeSize(kEntryIconSize, kEntryIconSize);
85 [extraImage_ drawInRect:imageRect
/external/chromium_org/third_party/WebKit/Source/web/
DPopupListBox.cpp507 IntRect imageRect = image->rect(); in paintRow() local
508 remainingWidth -= (imageRect.width() + labelToIconPadding); in paintRow()
509 imageRect.setX(rowRect.width() - rightPadding - imageRect.width()); in paintRow()
510 imageRect.setY(rowRect.y() + (rowRect.height() - imageRect.height()) / 2); in paintRow()
511 gc->drawImage(image.get(), imageRect); in paintRow()
/external/chromium_org/chrome/browser/resources/file_manager/foreground/js/image_editor/
Dimage_view.js220 ImageView.prototype.paintDeviceRect = function(deviceRect, canvas, imageRect) { argument
230 imageRect = new Rect(imageRect.left * scaleX, imageRect.top * scaleY,
231 imageRect.width * scaleX, imageRect.height * scaleY);
233 this.screenImage_.getContext('2d'), canvas, deviceRect, imageRect);
Dcommands.js371 Command.Crop = function(imageRect) { argument
372 Command.call(this, 'crop' + imageRect.toString());
373 this.imageRect_ = imageRect;
/external/chromium_org/third_party/WebKit/Source/platform/
DCursor.cpp37 IntRect imageRect = image->rect(); in determineHotSpot() local
38 if (imageRect.contains(specifiedHotSpot)) in determineHotSpot()
44 if (imageHasIntrinsicHotSpot && imageRect.contains(intrinsicHotSpot)) in determineHotSpot()
/external/chromium_org/skia/ext/
Dskia_utils_ios.mm58 CGRect imageRect = CGRectMake(0.0, 0.0, size.width, size.height);
60 CGContextDrawImage(context, imageRect, image);
/external/chromium_org/chrome/browser/ui/cocoa/extensions/
Dbrowser_action_button.mm298 const NSRect imageRect =
302 [actionImage drawInRect:imageRect
340 const NSRect imageRect =
344 [self.image drawInRect:imageRect
/external/chromium_org/third_party/WebKit/Source/core/page/
DDragController.cpp805 …ment* element, Image* image, const IntPoint& dragOrigin, const IntRect& imageRect, IntPoint& dragL… in dragImageForImage() argument
812 IntSize originalSize = imageRect.size(); in dragImageForImage()
813 origin = imageRect.location(); in dragImageForImage()
815 dragImage->fitToMaxSize(imageRect.size(), maxDragImageSize()); in dragImageForImage()
896 …dragImage = dragImageForImage(element, image, dragOrigin, hitTestResult.imageRect(), dragLocation); in startDrag()
/external/chromium/chrome/browser/ui/cocoa/
Dgradient_button_cell.mm601 NSRect imageRect = NSZeroRect;
602 imageRect.size = [[self image] size];
605 fromRect:imageRect
624 NSRect imageRect = NSZeroRect;
625 imageRect.size = [overlayImage_ size];
627 fromRect:imageRect
/external/chromium_org/third_party/WebKit/Source/core/rendering/
DHitTestResult.h106 IntRect imageRect() const;
/external/chromium/chrome/browser/autocomplete/
Dautocomplete_popup_view_mac.mm605 NSRect imageRect = cellFrame;
606 imageRect.size = [image size];
607 imageRect.origin.y +=
608 std::floor((NSHeight(cellFrame) - NSHeight(imageRect)) / 2.0);
609 imageRect.origin.x += kImageXOffset;
610 [image drawInRect:imageRect
/external/chromium/chrome/browser/ui/cocoa/extensions/
Dbrowser_action_button.mm280 const NSRect imageRect =
284 [actionImage drawInRect:imageRect
/external/chromium_org/third_party/WebKit/Source/platform/graphics/skia/
DNativeImageSkia.cpp195 SkRect imageRect = SkRect::MakeWH(imageSize.width(), imageSize.height()); in extractScaledImageFragment() local
199 scaleTransform.setRectToRect(imageRect, scaledImageRect, SkMatrix::kFill_ScaleToFit); in extractScaledImageFragment()

12