| OLD | NEW |
| 1 // Copyright (C) 2013 Google Inc. All rights reserved. | 1 // Copyright (C) 2013 Google Inc. All rights reserved. |
| 2 // | 2 // |
| 3 // Redistribution and use in source and binary forms, with or without | 3 // Redistribution and use in source and binary forms, with or without |
| 4 // modification, are permitted provided that the following conditions are | 4 // modification, are permitted provided that the following conditions are |
| 5 // met: | 5 // met: |
| 6 // | 6 // |
| 7 // * Redistributions of source code must retain the above copyright | 7 // * 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 // * Redistributions in binary form must reproduce the above | 9 // * Redistributions in binary form must reproduce the above |
| 10 // copyright notice, this list of conditions and the following disclaimer | 10 // copyright notice, this list of conditions and the following disclaimer |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | 23 // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
| 24 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 24 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| 25 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 25 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 26 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 26 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 27 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 27 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 28 | 28 |
| 29 #ifndef TextRunIterator_h | 29 #ifndef TextRunIterator_h |
| 30 #define TextRunIterator_h | 30 #define TextRunIterator_h |
| 31 | 31 |
| 32 #include "platform/text/TextRun.h" | 32 #include "platform/text/TextRun.h" |
| 33 #include "wtf/Allocator.h" | 33 #include "platform/wtf/Allocator.h" |
| 34 | 34 |
| 35 namespace blink { | 35 namespace blink { |
| 36 | 36 |
| 37 class TextRunIterator { | 37 class TextRunIterator { |
| 38 DISALLOW_NEW(); | 38 DISALLOW_NEW(); |
| 39 | 39 |
| 40 public: | 40 public: |
| 41 TextRunIterator() : m_textRun(0), m_offset(0), m_length(0) {} | 41 TextRunIterator() : m_textRun(0), m_offset(0), m_length(0) {} |
| 42 | 42 |
| 43 TextRunIterator(const TextRun* textRun, unsigned offset) | 43 TextRunIterator(const TextRun* textRun, unsigned offset) |
| (...skipping 22 matching lines...) Expand all Loading... |
| 66 | 66 |
| 67 private: | 67 private: |
| 68 const TextRun* m_textRun; | 68 const TextRun* m_textRun; |
| 69 unsigned m_offset; | 69 unsigned m_offset; |
| 70 unsigned m_length; | 70 unsigned m_length; |
| 71 }; | 71 }; |
| 72 | 72 |
| 73 } // namespace blink | 73 } // namespace blink |
| 74 | 74 |
| 75 #endif // TextRunIterator_h | 75 #endif // TextRunIterator_h |
| OLD | NEW |