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

Side by Side Diff: Source/core/frame/Frame.h

Issue 59573002: Add Frame::isMainFrame and deploy it (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/frame/DOMWindow.cpp ('k') | Source/core/frame/Frame.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) 1998, 1999 Torben Weis <weis@kde.org> 2 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org>
3 * 1999-2001 Lars Knoll <knoll@kde.org> 3 * 1999-2001 Lars Knoll <knoll@kde.org>
4 * 1999-2001 Antti Koivisto <koivisto@kde.org> 4 * 1999-2001 Antti Koivisto <koivisto@kde.org>
5 * 2000-2001 Simon Hausmann <hausmann@kde.org> 5 * 2000-2001 Simon Hausmann <hausmann@kde.org>
6 * 2000-2001 Dirk Mueller <mueller@kde.org> 6 * 2000-2001 Dirk Mueller <mueller@kde.org>
7 * 2000 Stefan Schimanski <1Stein@gmx.de> 7 * 2000 Stefan Schimanski <1Stein@gmx.de>
8 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserved. 8 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserved.
9 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) 9 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies)
10 * Copyright (C) 2008 Eric Seidel <eric@webkit.org> 10 * Copyright (C) 2008 Eric Seidel <eric@webkit.org>
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 117
118 void addDestructionObserver(FrameDestructionObserver*); 118 void addDestructionObserver(FrameDestructionObserver*);
119 void removeDestructionObserver(FrameDestructionObserver*); 119 void removeDestructionObserver(FrameDestructionObserver*);
120 120
121 void willDetachPage(); 121 void willDetachPage();
122 void detachFromPage(); 122 void detachFromPage();
123 void disconnectOwnerElement(); 123 void disconnectOwnerElement();
124 124
125 Page* page() const; 125 Page* page() const;
126 HTMLFrameOwnerElement* ownerElement() const; 126 HTMLFrameOwnerElement* ownerElement() const;
127 bool isMainFrame() const;
127 128
128 void setDOMWindow(PassRefPtr<DOMWindow>); 129 void setDOMWindow(PassRefPtr<DOMWindow>);
129 DOMWindow* domWindow() const; 130 DOMWindow* domWindow() const;
130 Document* document() const; 131 Document* document() const;
131 FrameView* view() const; 132 FrameView* view() const;
132 133
133 Editor& editor() const; 134 Editor& editor() const;
134 EventHandler& eventHandler() const; 135 EventHandler& eventHandler() const;
135 FrameLoader& loader() const; 136 FrameLoader& loader() const;
136 NavigationScheduler& navigationScheduler() const; 137 NavigationScheduler& navigationScheduler() const;
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
317 318
318 inline EventHandler& Frame::eventHandler() const 319 inline EventHandler& Frame::eventHandler() const
319 { 320 {
320 ASSERT(m_eventHandler); 321 ASSERT(m_eventHandler);
321 return *m_eventHandler; 322 return *m_eventHandler;
322 } 323 }
323 324
324 } // namespace WebCore 325 } // namespace WebCore
325 326
326 #endif // Frame_h 327 #endif // Frame_h
OLDNEW
« no previous file with comments | « Source/core/frame/DOMWindow.cpp ('k') | Source/core/frame/Frame.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698