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

Side by Side Diff: Source/core/page/FrameTree.h

Issue 218693003: Generate FrameTree::uniqueName with a URL attribute value. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: remove unload handler Created 6 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « LayoutTests/svg/as-object/resources/right.svg ('k') | Source/core/page/FrameTree.cpp » ('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 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 17 matching lines...) Expand all
28 class TreeScope; 28 class TreeScope;
29 29
30 class FrameTree { 30 class FrameTree {
31 WTF_MAKE_NONCOPYABLE(FrameTree); 31 WTF_MAKE_NONCOPYABLE(FrameTree);
32 public: 32 public:
33 explicit FrameTree(LocalFrame* thisFrame); 33 explicit FrameTree(LocalFrame* thisFrame);
34 ~FrameTree(); 34 ~FrameTree();
35 35
36 const AtomicString& name() const { return m_name; } 36 const AtomicString& name() const { return m_name; }
37 const AtomicString& uniqueName() const { return m_uniqueName; } 37 const AtomicString& uniqueName() const { return m_uniqueName; }
38 void setName(const AtomicString&); 38 // If |name| is not empty, |fallbackName| is ignored. Otherwise,
39 // |fallbackName| is used as a source of uniqueName.
40 void setName(const AtomicString& name, const AtomicString& fallbackName = nullAtom);
39 41
40 LocalFrame* parent() const; 42 LocalFrame* parent() const;
41 LocalFrame* top() const; 43 LocalFrame* top() const;
42 LocalFrame* previousSibling() const; 44 LocalFrame* previousSibling() const;
43 LocalFrame* nextSibling() const; 45 LocalFrame* nextSibling() const;
44 LocalFrame* firstChild() const; 46 LocalFrame* firstChild() const;
45 LocalFrame* lastChild() const; 47 LocalFrame* lastChild() const;
46 48
47 bool isDescendantOf(const LocalFrame* ancestor) const; 49 bool isDescendantOf(const LocalFrame* ancestor) const;
48 LocalFrame* traversePreviousWithWrap(bool) const; 50 LocalFrame* traversePreviousWithWrap(bool) const;
(...skipping 24 matching lines...) Expand all
73 }; 75 };
74 76
75 } // namespace WebCore 77 } // namespace WebCore
76 78
77 #ifndef NDEBUG 79 #ifndef NDEBUG
78 // Outside the WebCore namespace for ease of invocation from gdb. 80 // Outside the WebCore namespace for ease of invocation from gdb.
79 void showFrameTree(const WebCore::LocalFrame*); 81 void showFrameTree(const WebCore::LocalFrame*);
80 #endif 82 #endif
81 83
82 #endif // FrameTree_h 84 #endif // FrameTree_h
OLDNEW
« no previous file with comments | « LayoutTests/svg/as-object/resources/right.svg ('k') | Source/core/page/FrameTree.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698