OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006 Apple Computer, Inc. | 2 * Copyright (C) 2006 Apple Computer, Inc. |
3 * | 3 * |
4 * This library is free software; you can redistribute it and/or | 4 * This library is free software; you can redistribute it and/or |
5 * modify it under the terms of the GNU Library General Public | 5 * modify it under the terms of the GNU Library General Public |
6 * License as published by the Free Software Foundation; either | 6 * License as published by the Free Software Foundation; either |
7 * version 2 of the License, or (at your option) any later version. | 7 * version 2 of the License, or (at your option) any later version. |
8 * | 8 * |
9 * This library is distributed in the hope that it will be useful, | 9 * This library is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 25 matching lines...) Expand all Loading... |
36 explicit FrameTree(Frame* this_frame); | 36 explicit FrameTree(Frame* this_frame); |
37 ~FrameTree(); | 37 ~FrameTree(); |
38 | 38 |
39 const AtomicString& GetName() const; | 39 const AtomicString& GetName() const; |
40 void SetName(const AtomicString&); | 40 void SetName(const AtomicString&); |
41 | 41 |
42 // TODO(andypaicu): remove this once we have gathered the data | 42 // TODO(andypaicu): remove this once we have gathered the data |
43 void ExperimentalSetNulledName(); | 43 void ExperimentalSetNulledName(); |
44 | 44 |
45 Frame* Parent() const; | 45 Frame* Parent() const; |
46 Frame* Top() const; | 46 Frame& Top() const; |
47 Frame* NextSibling() const; | 47 Frame* NextSibling() const; |
48 Frame* FirstChild() const; | 48 Frame* FirstChild() const; |
49 | 49 |
50 bool IsDescendantOf(const Frame* ancestor) const; | 50 bool IsDescendantOf(const Frame* ancestor) const; |
51 Frame* TraverseNext(const Frame* stay_within = nullptr) const; | 51 Frame* TraverseNext(const Frame* stay_within = nullptr) const; |
52 | 52 |
53 Frame* Find(const AtomicString& name) const; | 53 Frame* Find(const AtomicString& name) const; |
54 unsigned ChildCount() const; | 54 unsigned ChildCount() const; |
55 | 55 |
56 Frame* ScopedChild(unsigned index) const; | 56 Frame* ScopedChild(unsigned index) const; |
(...skipping 15 matching lines...) Expand all Loading... |
72 }; | 72 }; |
73 | 73 |
74 } // namespace blink | 74 } // namespace blink |
75 | 75 |
76 #ifndef NDEBUG | 76 #ifndef NDEBUG |
77 // Outside the WebCore namespace for ease of invocation from gdb. | 77 // Outside the WebCore namespace for ease of invocation from gdb. |
78 void showFrameTree(const blink::Frame*); | 78 void showFrameTree(const blink::Frame*); |
79 #endif | 79 #endif |
80 | 80 |
81 #endif // FrameTree_h | 81 #endif // FrameTree_h |
OLD | NEW |