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

Side by Side Diff: Source/core/frame/LocalFrame.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/LocalDOMWindow.cpp ('k') | Source/core/frame/LocalFrame.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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 virtual ~LocalFrame(); 84 virtual ~LocalFrame();
85 DECLARE_VIRTUAL_TRACE(); 85 DECLARE_VIRTUAL_TRACE();
86 bool isLocalFrame() const override { return true; } 86 bool isLocalFrame() const override { return true; }
87 DOMWindow* domWindow() const override; 87 DOMWindow* domWindow() const override;
88 WindowProxy* windowProxy(DOMWrapperWorld&) override; 88 WindowProxy* windowProxy(DOMWrapperWorld&) override;
89 void navigate(Document& originDocument, const KURL&, bool lockBackForwar dList, UserGestureStatus) override; 89 void navigate(Document& originDocument, const KURL&, bool lockBackForwar dList, UserGestureStatus) override;
90 void navigate(const FrameLoadRequest&) override; 90 void navigate(const FrameLoadRequest&) override;
91 void reload(FrameLoadType, ClientRedirectPolicy) override; 91 void reload(FrameLoadType, ClientRedirectPolicy) override;
92 void detach(FrameDetachType) override; 92 void detach(FrameDetachType) override;
93 void disconnectOwnerElement() override; 93 void disconnectOwnerElement() override;
94 bool shouldClose() override;
94 SecurityContext* securityContext() const override; 95 SecurityContext* securityContext() const override;
95 void printNavigationErrorMessage(const Frame&, const char* reason) overr ide; 96 void printNavigationErrorMessage(const Frame&, const char* reason) overr ide;
96 bool prepareForCommit() override; 97 bool prepareForCommit() override;
97 98
98 void willDetachFrameHost(); 99 void willDetachFrameHost();
99 100
100 LocalDOMWindow* localDOMWindow() const; 101 LocalDOMWindow* localDOMWindow() const;
101 void setDOMWindow(PassRefPtrWillBeRawPtr<LocalDOMWindow>); 102 void setDOMWindow(PassRefPtrWillBeRawPtr<LocalDOMWindow>);
102 FrameView* view() const; 103 FrameView* view() const;
103 Document* document() const; 104 Document* document() const;
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
303 DEFINE_TYPE_CASTS(LocalFrame, Frame, localFrame, localFrame->isLocalFrame(), localFrame.isLocalFrame()); 304 DEFINE_TYPE_CASTS(LocalFrame, Frame, localFrame, localFrame->isLocalFrame(), localFrame.isLocalFrame());
304 305
305 } // namespace blink 306 } // namespace blink
306 307
307 // During refactoring, there are some places where we need to do type conversion s that 308 // During refactoring, there are some places where we need to do type conversion s that
308 // will not be needed once all instances of LocalFrame and RemoteFrame are sorte d out. 309 // will not be needed once all instances of LocalFrame and RemoteFrame are sorte d out.
309 // At that time this #define will be removed and all the uses of it will need to be corrected. 310 // At that time this #define will be removed and all the uses of it will need to be corrected.
310 #define toLocalFrameTemporary toLocalFrame 311 #define toLocalFrameTemporary toLocalFrame
311 312
312 #endif // LocalFrame_h 313 #endif // LocalFrame_h
OLDNEW
« no previous file with comments | « Source/core/frame/LocalDOMWindow.cpp ('k') | Source/core/frame/LocalFrame.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698