Home
last modified time | relevance | path

Searched refs:text_rect (Results 1 – 2 of 2) sorted by relevance

/external/chromium_org/chrome/browser/ui/cocoa/location_bar/
Dlocation_bar_decoration.mm86 NSRect text_rect = frame;
87 text_rect.size.height = [str size].height;
88 text_rect.origin.y = roundf(NSMidY(frame) - NSHeight(text_rect) / 2.0) - 1;
89 [str drawInRect:text_rect];
/external/chromium_org/ui/gfx/
Drender_text.cc97 void AddFadeEffect(const Rect& text_rect, in AddFadeEffect() argument
103 const SkScalar left = static_cast<SkScalar>(fade_rect.x() - text_rect.x()); in AddFadeEffect()
105 const SkScalar p0 = left / text_rect.width(); in AddFadeEffect()
106 const SkScalar p1 = (left + width) / text_rect.width(); in AddFadeEffect()
120 skia::RefPtr<SkShader> CreateFadeShader(const Rect& text_rect, in CreateFadeShader() argument
130 AddFadeEffect(text_rect, left_part, fade_color, color, in CreateFadeShader()
133 AddFadeEffect(text_rect, right_part, color, fade_color, in CreateFadeShader()
144 points[0].iset(text_rect.x(), text_rect.y()); in CreateFadeShader()
145 points[1].iset(text_rect.right(), text_rect.y()); in CreateFadeShader()
1053 Rect text_rect = display_rect(); in ApplyFadeEffects() local
[all …]