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

Side by Side Diff: ui/gfx/render_text.h

Issue 1024543006: [RenderText] added test for AppendText (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added baseline breaklist test Created 5 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
« no previous file with comments | « no previous file | ui/gfx/render_text_unittest.cc » ('j') | ui/gfx/render_text_unittest.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_GFX_RENDER_TEXT_H_ 5 #ifndef UI_GFX_RENDER_TEXT_H_
6 #define UI_GFX_RENDER_TEXT_H_ 6 #define UI_GFX_RENDER_TEXT_H_
7 7
8 #include <algorithm> 8 #include <algorithm>
9 #include <cstring> 9 #include <cstring>
10 #include <string> 10 #include <string>
(...skipping 600 matching lines...) Expand 10 before | Expand all | Expand 10 after
611 // is within the given range. 611 // is within the given range.
612 static bool RangeContainsCaret(const Range& range, 612 static bool RangeContainsCaret(const Range& range,
613 size_t caret_pos, 613 size_t caret_pos,
614 LogicalCursorDirection caret_affinity); 614 LogicalCursorDirection caret_affinity);
615 615
616 private: 616 private:
617 friend class RenderTextTest; 617 friend class RenderTextTest;
618 FRIEND_TEST_ALL_PREFIXES(RenderTextTest, DefaultStyles); 618 FRIEND_TEST_ALL_PREFIXES(RenderTextTest, DefaultStyles);
619 FRIEND_TEST_ALL_PREFIXES(RenderTextTest, SetStyles); 619 FRIEND_TEST_ALL_PREFIXES(RenderTextTest, SetStyles);
620 FRIEND_TEST_ALL_PREFIXES(RenderTextTest, ApplyStyles); 620 FRIEND_TEST_ALL_PREFIXES(RenderTextTest, ApplyStyles);
621 FRIEND_TEST_ALL_PREFIXES(RenderTextTest, AppendText);
621 FRIEND_TEST_ALL_PREFIXES(RenderTextTest, ObscuredText); 622 FRIEND_TEST_ALL_PREFIXES(RenderTextTest, ObscuredText);
622 FRIEND_TEST_ALL_PREFIXES(RenderTextTest, RevealObscuredText); 623 FRIEND_TEST_ALL_PREFIXES(RenderTextTest, RevealObscuredText);
623 FRIEND_TEST_ALL_PREFIXES(RenderTextTest, ElidedText); 624 FRIEND_TEST_ALL_PREFIXES(RenderTextTest, ElidedText);
624 FRIEND_TEST_ALL_PREFIXES(RenderTextTest, ElidedObscuredText); 625 FRIEND_TEST_ALL_PREFIXES(RenderTextTest, ElidedObscuredText);
625 FRIEND_TEST_ALL_PREFIXES(RenderTextTest, TruncatedText); 626 FRIEND_TEST_ALL_PREFIXES(RenderTextTest, TruncatedText);
626 FRIEND_TEST_ALL_PREFIXES(RenderTextTest, TruncatedObscuredText); 627 FRIEND_TEST_ALL_PREFIXES(RenderTextTest, TruncatedObscuredText);
627 FRIEND_TEST_ALL_PREFIXES(RenderTextTest, GraphemePositions); 628 FRIEND_TEST_ALL_PREFIXES(RenderTextTest, GraphemePositions);
628 FRIEND_TEST_ALL_PREFIXES(RenderTextTest, MinLineHeight); 629 FRIEND_TEST_ALL_PREFIXES(RenderTextTest, MinLineHeight);
629 FRIEND_TEST_ALL_PREFIXES(RenderTextTest, EdgeSelectionModels); 630 FRIEND_TEST_ALL_PREFIXES(RenderTextTest, EdgeSelectionModels);
630 FRIEND_TEST_ALL_PREFIXES(RenderTextTest, GetTextOffset); 631 FRIEND_TEST_ALL_PREFIXES(RenderTextTest, GetTextOffset);
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
799 // Lines computed by EnsureLayout. These should be invalidated upon 800 // Lines computed by EnsureLayout. These should be invalidated upon
800 // OnLayoutTextAttributeChanged and OnDisplayTextAttributeChanged calls. 801 // OnLayoutTextAttributeChanged and OnDisplayTextAttributeChanged calls.
801 std::vector<internal::Line> lines_; 802 std::vector<internal::Line> lines_;
802 803
803 DISALLOW_COPY_AND_ASSIGN(RenderText); 804 DISALLOW_COPY_AND_ASSIGN(RenderText);
804 }; 805 };
805 806
806 } // namespace gfx 807 } // namespace gfx
807 808
808 #endif // UI_GFX_RENDER_TEXT_H_ 809 #endif // UI_GFX_RENDER_TEXT_H_
OLDNEW
« no previous file with comments | « no previous file | ui/gfx/render_text_unittest.cc » ('j') | ui/gfx/render_text_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698