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

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

Issue 2868783005: Make ETextSecurity an enum class. (Closed)
Patch Set: Rebase Created 3 years, 7 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 * (C) 1999 Lars Knoll (knoll@kde.org) 2 * (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 2000 Dirk Mueller (mueller@kde.org) 3 * (C) 2000 Dirk Mueller (mueller@kde.org)
4 * Copyright (C) 2004-2009, 2013 Apple Inc. All rights reserved. 4 * Copyright (C) 2004-2009, 2013 Apple Inc. All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 // True if we have inline text box children which implies rendered text (or 200 // True if we have inline text box children which implies rendered text (or
201 // whitespace) output. 201 // whitespace) output.
202 bool HasTextBoxes() const { return FirstTextBox(); } 202 bool HasTextBoxes() const { return FirstTextBox(); }
203 203
204 int CaretMinOffset() const override; 204 int CaretMinOffset() const override;
205 int CaretMaxOffset() const override; 205 int CaretMaxOffset() const override;
206 unsigned ResolvedTextLength() const; 206 unsigned ResolvedTextLength() const;
207 207
208 bool ContainsReversedText() const { return contains_reversed_text_; } 208 bool ContainsReversedText() const { return contains_reversed_text_; }
209 209
210 bool IsSecure() const { return Style()->TextSecurity() != TSNONE; } 210 bool IsSecure() const {
211 return Style()->TextSecurity() != ETextSecurity::kNone;
212 }
211 void MomentarilyRevealLastTypedCharacter( 213 void MomentarilyRevealLastTypedCharacter(
212 unsigned last_typed_character_offset); 214 unsigned last_typed_character_offset);
213 215
214 bool IsAllCollapsibleWhitespace() const; 216 bool IsAllCollapsibleWhitespace() const;
215 bool IsRenderedCharacter(int offset_in_node) const; 217 bool IsRenderedCharacter(int offset_in_node) const;
216 218
217 void RemoveAndDestroyTextBoxes(); 219 void RemoveAndDestroyTextBoxes();
218 220
219 PassRefPtr<AbstractInlineTextBox> FirstAbstractInlineTextBox(); 221 PassRefPtr<AbstractInlineTextBox> FirstAbstractInlineTextBox();
220 222
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
357 359
358 inline LayoutText* Text::GetLayoutObject() const { 360 inline LayoutText* Text::GetLayoutObject() const {
359 return ToLayoutText(CharacterData::GetLayoutObject()); 361 return ToLayoutText(CharacterData::GetLayoutObject());
360 } 362 }
361 363
362 void ApplyTextTransform(const ComputedStyle*, String&, UChar); 364 void ApplyTextTransform(const ComputedStyle*, String&, UChar);
363 365
364 } // namespace blink 366 } // namespace blink
365 367
366 #endif // LayoutText_h 368 #endif // LayoutText_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/editing/EditingUtilities.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutText.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698