#include <limits.h>
#include <stddef.h>
#include <stdint.h>
#include <memory>
#include <utility>
#include "build/build_config.h"
#include "cc/paint/paint_canvas.h"
#include "ui/gfx/canvas.h"
#include "ui/gfx/geometry/insets.h"
#include "ui/gfx/geometry/skia_conversions.h"
#include "ui/gfx/render_text.h"
#include "ui/gfx/text_elider.h"
#include "ui/gfx/text_utils.h"
namespace gfx {
namespace {
Range StripAcceleratorChars(int flags, std::u16string* text) { … }
void ElideTextAndAdjustRange(const FontList& font_list,
float width,
std::u16string* text,
Range* range) { … }
void UpdateRenderText(const Rect& rect,
const std::u16string& text,
const FontList& font_list,
int flags,
SkColor color,
RenderText* render_text) { … }
}
void Canvas::SizeStringFloat(const std::u16string& text,
const FontList& font_list,
float* width,
float* height,
int line_height,
int flags) { … }
void Canvas::DrawStringRectWithFlags(const std::u16string& text,
const FontList& font_list,
SkColor color,
const Rect& text_bounds,
int flags) { … }
}