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

Side by Side Diff: sky/engine/core/editing/PlainTextRange.h

Issue 673403002: Remove compiler feature detection for = delete (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Don't remove #define for FINAL Created 6 years, 1 month 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 | « sky/engine/core/dom/shadow/InsertionPoint.h ('k') | sky/engine/core/html/HTMLElement.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 bool isNull() const { return m_start == kNotFound; } 47 bool isNull() const { return m_start == kNotFound; }
48 bool isNotNull() const { return m_start != kNotFound; } 48 bool isNotNull() const { return m_start != kNotFound; }
49 size_t length() const { ASSERT(!isNull()); return m_end - m_start; } 49 size_t length() const { ASSERT(!isNull()); return m_end - m_start; }
50 50
51 PassRefPtrWillBeRawPtr<Range> createRange(const ContainerNode& scope) const; 51 PassRefPtrWillBeRawPtr<Range> createRange(const ContainerNode& scope) const;
52 PassRefPtrWillBeRawPtr<Range> createRangeForSelection(const ContainerNode& s cope) const; 52 PassRefPtrWillBeRawPtr<Range> createRangeForSelection(const ContainerNode& s cope) const;
53 53
54 static PlainTextRange create(const ContainerNode& scope, const Range&); 54 static PlainTextRange create(const ContainerNode& scope, const Range&);
55 55
56 private: 56 private:
57 PlainTextRange& operator=(const PlainTextRange&) WTF_DELETED_FUNCTION; 57 PlainTextRange& operator=(const PlainTextRange&) = delete;
58 58
59 enum GetRangeFor { ForGeneric, ForSelection }; 59 enum GetRangeFor { ForGeneric, ForSelection };
60 PassRefPtrWillBeRawPtr<Range> createRangeFor(const ContainerNode& scope, Get RangeFor) const; 60 PassRefPtrWillBeRawPtr<Range> createRangeFor(const ContainerNode& scope, Get RangeFor) const;
61 61
62 const size_t m_start; 62 const size_t m_start;
63 const size_t m_end; 63 const size_t m_end;
64 }; 64 };
65 65
66 } // namespace blink 66 } // namespace blink
67 67
68 #endif // PlainTextRange_h 68 #endif // PlainTextRange_h
OLDNEW
« no previous file with comments | « sky/engine/core/dom/shadow/InsertionPoint.h ('k') | sky/engine/core/html/HTMLElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698