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

Side by Side Diff: third_party/WebKit/Source/core/editing/PlainTextRange.h

Issue 2926043002: Rename PlainText::end() to PlainText::End() (Closed)
Patch Set: Created 3 years, 6 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) 2006, 2007, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008 Apple 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 29 matching lines...) Expand all
40 40
41 class CORE_EXPORT PlainTextRange { 41 class CORE_EXPORT PlainTextRange {
42 STACK_ALLOCATED(); 42 STACK_ALLOCATED();
43 43
44 public: 44 public:
45 PlainTextRange(); 45 PlainTextRange();
46 PlainTextRange(const PlainTextRange&); 46 PlainTextRange(const PlainTextRange&);
47 explicit PlainTextRange(int location); 47 explicit PlainTextRange(int location);
48 PlainTextRange(int start, int end); 48 PlainTextRange(int start, int end);
49 49
50 size_t end() const { 50 size_t End() const {
51 DCHECK(IsNotNull()); 51 DCHECK(IsNotNull());
52 return end_; 52 return end_;
53 } 53 }
54 size_t Start() const { 54 size_t Start() const {
55 DCHECK(IsNotNull()); 55 DCHECK(IsNotNull());
56 return start_; 56 return start_;
57 } 57 }
58 bool IsNull() const { return start_ == kNotFound; } 58 bool IsNull() const { return start_ == kNotFound; }
59 bool IsNotNull() const { return start_ != kNotFound; } 59 bool IsNotNull() const { return start_ != kNotFound; }
60 size_t length() const { 60 size_t length() const {
(...skipping 14 matching lines...) Expand all
75 enum GetRangeFor { kForGeneric, kForSelection }; 75 enum GetRangeFor { kForGeneric, kForSelection };
76 EphemeralRange CreateRangeFor(const ContainerNode& scope, GetRangeFor) const; 76 EphemeralRange CreateRangeFor(const ContainerNode& scope, GetRangeFor) const;
77 77
78 const size_t start_; 78 const size_t start_;
79 const size_t end_; 79 const size_t end_;
80 }; 80 };
81 81
82 } // namespace blink 82 } // namespace blink
83 83
84 #endif // PlainTextRange_h 84 #endif // PlainTextRange_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698