OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:badge_width
(Results
1 - 2
of
2
) sorted by null
/external/chromium/chrome/common/
badge_util.cc
81
int
badge_width
= icon.width();
local
82
if ((SkScalarRound(text_width) % 1) != (
badge_width
% 1))
83
badge_width
--;
87
new gfx::CanvasSkia(
badge_width
, icon.height(), false));
93
SkScalar x = (
badge_width
- text_width)/2;
/external/chromium/chrome/common/extensions/
extension_action.cc
134
int
badge_width
= SkScalarFloor(text_width) + kPadding * 2;
local
138
if (icon_width != 0 && (
badge_width
% 2 != GetIcon(tab_id).width() % 2))
139
badge_width
+= 1;
140
badge_width
= std::max(kBadgeHeight,
badge_width
);
147
if (
badge_width
>= kCenterAlignThreshold) {
151
SkIntToScalar(
badge_width
/ 2.0)));
152
rect.fRight = rect.fLeft + SkIntToScalar(
badge_width
);
155
rect.fLeft = rect.fRight -
badge_width
;
Completed in 3467 milliseconds