Searched refs:badge_width (Results 1 – 2 of 2) sorted by relevance
134 int badge_width = SkScalarFloor(text_width) + kPadding * 2; in PaintBadge() local138 if (icon_width != 0 && (badge_width % 2 != GetIcon(tab_id).width() % 2)) in PaintBadge()139 badge_width += 1; in PaintBadge()140 badge_width = std::max(kBadgeHeight, badge_width); in PaintBadge()147 if (badge_width >= kCenterAlignThreshold) { in PaintBadge()151 SkIntToScalar(badge_width / 2.0))); in PaintBadge()152 rect.fRight = rect.fLeft + SkIntToScalar(badge_width); in PaintBadge()155 rect.fLeft = rect.fRight - badge_width; in PaintBadge()
81 int badge_width = icon.width(); in DrawBadgeIconOverlay() local82 if ((SkScalarRound(text_width) % 1) != (badge_width % 1)) in DrawBadgeIconOverlay()83 badge_width--; in DrawBadgeIconOverlay()87 new gfx::CanvasSkia(badge_width, icon.height(), false)); in DrawBadgeIconOverlay()93 SkScalar x = (badge_width - text_width)/2; in DrawBadgeIconOverlay()