Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(484)

Side by Side Diff: third_party/WebKit/Source/core/layout/line/AbstractInlineTextBox.h

Issue 1741073002: Rename enums/functions that collide in chromium style in core/layout/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@get-names-6
Patch Set: get-names-7: rebase Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 68
69 enum Direction { 69 enum Direction {
70 LeftToRight, 70 LeftToRight,
71 RightToLeft, 71 RightToLeft,
72 TopToBottom, 72 TopToBottom,
73 BottomToTop 73 BottomToTop
74 }; 74 };
75 75
76 ~AbstractInlineTextBox(); 76 ~AbstractInlineTextBox();
77 77
78 LineLayoutText lineLayoutItem() const { return m_lineLayoutItem; } 78 LineLayoutText getLineLayoutItem() const { return m_lineLayoutItem; }
79 79
80 PassRefPtr<AbstractInlineTextBox> nextInlineTextBox() const; 80 PassRefPtr<AbstractInlineTextBox> nextInlineTextBox() const;
81 LayoutRect bounds() const; 81 LayoutRect bounds() const;
82 unsigned len() const; 82 unsigned len() const;
83 Direction direction() const; 83 Direction direction() const;
84 void characterWidths(Vector<float>&) const; 84 void characterWidths(Vector<float>&) const;
85 void wordBoundaries(Vector<WordBoundaries>&) const; 85 void wordBoundaries(Vector<WordBoundaries>&) const;
86 String text() const; 86 String text() const;
87 bool isFirst() const; 87 bool isFirst() const;
88 bool isLast() const; 88 bool isLast() const;
89 PassRefPtr<AbstractInlineTextBox> nextOnLine() const; 89 PassRefPtr<AbstractInlineTextBox> nextOnLine() const;
90 PassRefPtr<AbstractInlineTextBox> previousOnLine() const; 90 PassRefPtr<AbstractInlineTextBox> previousOnLine() const;
91 91
92 private: 92 private:
93 void detach(); 93 void detach();
94 94
95 // Weak ptrs; these are nulled when InlineTextBox::destroy() calls AbstractI nlineTextBox::willDestroy. 95 // Weak ptrs; these are nulled when InlineTextBox::destroy() calls AbstractI nlineTextBox::willDestroy.
96 LineLayoutText m_lineLayoutItem; 96 LineLayoutText m_lineLayoutItem;
97 InlineTextBox* m_inlineTextBox; 97 InlineTextBox* m_inlineTextBox;
98 98
99 typedef HashMap<InlineTextBox*, RefPtr<AbstractInlineTextBox>> InlineToAbstr actInlineTextBoxHashMap; 99 typedef HashMap<InlineTextBox*, RefPtr<AbstractInlineTextBox>> InlineToAbstr actInlineTextBoxHashMap;
100 static InlineToAbstractInlineTextBoxHashMap* gAbstractInlineTextBoxMap; 100 static InlineToAbstractInlineTextBoxHashMap* gAbstractInlineTextBoxMap;
101 }; 101 };
102 102
103 } // namespace blink 103 } // namespace blink
104 104
105 #endif // AbstractInlineTextBox_h 105 #endif // AbstractInlineTextBox_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698