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

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

Issue 1176843006: Move window.close implementation to DOMWindow (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove resetting of the main view. Created 5 years, 6 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 | « Source/core/frame/DOMWindow.cpp ('k') | Source/core/frame/FrameClient.h » ('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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 74
75 virtual void navigate(Document& originDocument, const KURL&, bool lockBackFo rwardList, UserGestureStatus) = 0; 75 virtual void navigate(Document& originDocument, const KURL&, bool lockBackFo rwardList, UserGestureStatus) = 0;
76 // This version of Frame::navigate assumes the resulting navigation is not 76 // This version of Frame::navigate assumes the resulting navigation is not
77 // to be started on a timer. Use the method above in such cases. 77 // to be started on a timer. Use the method above in such cases.
78 virtual void navigate(const FrameLoadRequest&) = 0; 78 virtual void navigate(const FrameLoadRequest&) = 0;
79 virtual void reload(FrameLoadType, ClientRedirectPolicy) = 0; 79 virtual void reload(FrameLoadType, ClientRedirectPolicy) = 0;
80 80
81 virtual void detach(FrameDetachType); 81 virtual void detach(FrameDetachType);
82 void detachChildren(); 82 void detachChildren();
83 virtual void disconnectOwnerElement(); 83 virtual void disconnectOwnerElement();
84 virtual bool shouldClose() = 0;
84 85
85 FrameClient* client() const; 86 FrameClient* client() const;
86 87
87 // NOTE: Page is moving out of Blink up into the browser process as 88 // NOTE: Page is moving out of Blink up into the browser process as
88 // part of the site-isolation (out of process iframes) work. 89 // part of the site-isolation (out of process iframes) work.
89 // FrameHost should be used instead where possible. 90 // FrameHost should be used instead where possible.
90 Page* page() const; 91 Page* page() const;
91 FrameHost* host() const; // Null when the frame is detached. 92 FrameHost* host() const; // Null when the frame is detached.
92 93
93 bool isMainFrame() const; 94 bool isMainFrame() const;
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 { 160 {
160 return m_treeNode; 161 return m_treeNode;
161 } 162 }
162 163
163 // Allow equality comparisons of Frames by reference or pointer, interchangeably . 164 // Allow equality comparisons of Frames by reference or pointer, interchangeably .
164 DEFINE_COMPARISON_OPERATORS_WITH_REFERENCES_REFCOUNTED(Frame) 165 DEFINE_COMPARISON_OPERATORS_WITH_REFERENCES_REFCOUNTED(Frame)
165 166
166 } // namespace blink 167 } // namespace blink
167 168
168 #endif // Frame_h 169 #endif // Frame_h
OLDNEW
« no previous file with comments | « Source/core/frame/DOMWindow.cpp ('k') | Source/core/frame/FrameClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698