OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
4 * (C) 2007 David Smith (catfish.man@gmail.com) | 4 * (C) 2007 David Smith (catfish.man@gmail.com) |
5 * Copyright (C) 2003-2013 Apple Inc. All rights reserved. | 5 * Copyright (C) 2003-2013 Apple Inc. All rights reserved. |
6 * Copyright (C) Research In Motion Limited 2010. All rights reserved. | 6 * Copyright (C) Research In Motion Limited 2010. All rights reserved. |
7 * Copyright (C) 2013 Google Inc. All rights reserved. | 7 * Copyright (C) 2013 Google Inc. All rights reserved. |
8 * | 8 * |
9 * Redistribution and use in source and binary forms, with or without | 9 * Redistribution and use in source and binary forms, with or without |
10 * modification, are permitted provided that the following conditions are | 10 * modification, are permitted provided that the following conditions are |
(...skipping 28 matching lines...) Expand all Loading... |
39 #include "platform/text/TextDirection.h" | 39 #include "platform/text/TextDirection.h" |
40 #include "platform/text/TextRun.h" | 40 #include "platform/text/TextRun.h" |
41 #include "wtf/text/WTFString.h" | 41 #include "wtf/text/WTFString.h" |
42 #include "wtf/unicode/Unicode.h" | 42 #include "wtf/unicode/Unicode.h" |
43 | 43 |
44 namespace blink { | 44 namespace blink { |
45 | 45 |
46 class Font; | 46 class Font; |
47 class LayoutObject; | 47 class LayoutObject; |
48 class LayoutStyle; | 48 class LayoutStyle; |
49 class RenderText; | 49 class LayoutText; |
50 | 50 |
51 enum TextRunFlag { | 51 enum TextRunFlag { |
52 DefaultTextRunFlags = 0, | 52 DefaultTextRunFlags = 0, |
53 RespectDirection = 1 << 0, | 53 RespectDirection = 1 << 0, |
54 RespectDirectionOverride = 1 << 1 | 54 RespectDirectionOverride = 1 << 1 |
55 }; | 55 }; |
56 | 56 |
57 typedef unsigned TextRunFlags; | 57 typedef unsigned TextRunFlags; |
58 | 58 |
59 // Direction resolved from string value. | 59 // Direction resolved from string value. |
60 TextRun constructTextRun(LayoutObject* context, const Font&, const String&, cons
t LayoutStyle&, TextRunFlags = DefaultTextRunFlags); | 60 TextRun constructTextRun(LayoutObject* context, const Font&, const String&, cons
t LayoutStyle&, TextRunFlags = DefaultTextRunFlags); |
61 TextRun constructTextRun(LayoutObject* context, const Font&, const RenderText*,
unsigned offset, unsigned length, const LayoutStyle&); | 61 TextRun constructTextRun(LayoutObject* context, const Font&, const LayoutText*,
unsigned offset, unsigned length, const LayoutStyle&); |
62 | 62 |
63 // Explicit direction. | 63 // Explicit direction. |
64 TextRun constructTextRun(LayoutObject*, const Font&, const String&, const Layout
Style&, TextDirection, TextRunFlags = DefaultTextRunFlags); | 64 TextRun constructTextRun(LayoutObject*, const Font&, const String&, const Layout
Style&, TextDirection, TextRunFlags = DefaultTextRunFlags); |
65 TextRun constructTextRun(LayoutObject*, const Font&, const RenderText*, const La
youtStyle&, TextDirection); | 65 TextRun constructTextRun(LayoutObject*, const Font&, const LayoutText*, const La
youtStyle&, TextDirection); |
66 TextRun constructTextRun(LayoutObject*, const Font&, const RenderText*, unsigned
offset, unsigned length, const LayoutStyle&, TextDirection); | 66 TextRun constructTextRun(LayoutObject*, const Font&, const LayoutText*, unsigned
offset, unsigned length, const LayoutStyle&, TextDirection); |
67 TextRun constructTextRun(LayoutObject*, const Font&, const LChar*, int length, c
onst LayoutStyle&, TextDirection); | 67 TextRun constructTextRun(LayoutObject*, const Font&, const LChar*, int length, c
onst LayoutStyle&, TextDirection); |
68 TextRun constructTextRun(LayoutObject*, const Font&, const UChar*, int length, c
onst LayoutStyle&, TextDirection); | 68 TextRun constructTextRun(LayoutObject*, const Font&, const UChar*, int length, c
onst LayoutStyle&, TextDirection); |
69 | 69 |
70 } // namespace blink | 70 } // namespace blink |
71 | 71 |
72 #endif | 72 #endif |
OLD | NEW |