OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google 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 are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 21 matching lines...) Expand all Loading... |
32 #define WebRange_h | 32 #define WebRange_h |
33 | 33 |
34 #include "WebFrame.h" | 34 #include "WebFrame.h" |
35 #include "public/platform/WebCommon.h" | 35 #include "public/platform/WebCommon.h" |
36 #include "public/platform/WebPrivatePtr.h" | 36 #include "public/platform/WebPrivatePtr.h" |
37 #include "public/platform/WebVector.h" | 37 #include "public/platform/WebVector.h" |
38 | 38 |
39 namespace blink { | 39 namespace blink { |
40 | 40 |
41 class Range; | 41 class Range; |
42 class WebNode; | |
43 class WebString; | 42 class WebString; |
44 | 43 |
45 // Provides readonly access to some properties of a DOM range. | 44 // Provides readonly access to some properties of a DOM range. |
46 class WebRange { | 45 class WebRange { |
47 public: | 46 public: |
48 ~WebRange() { reset(); } | 47 ~WebRange() { reset(); } |
49 | 48 |
50 WebRange() { } | 49 WebRange() { } |
51 WebRange(const WebRange& r) { assign(r); } | 50 WebRange(const WebRange& r) { assign(r); } |
52 WebRange& operator=(const WebRange& r) | 51 WebRange& operator=(const WebRange& r) |
(...skipping 18 matching lines...) Expand all Loading... |
71 operator PassRefPtrWillBeRawPtr<Range>() const; | 70 operator PassRefPtrWillBeRawPtr<Range>() const; |
72 #endif | 71 #endif |
73 | 72 |
74 private: | 73 private: |
75 WebPrivatePtr<Range> m_private; | 74 WebPrivatePtr<Range> m_private; |
76 }; | 75 }; |
77 | 76 |
78 } // namespace blink | 77 } // namespace blink |
79 | 78 |
80 #endif | 79 #endif |
OLD | NEW |