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

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

Issue 799923006: Make canNavigate() OOPI-friendly (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years 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
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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 79
80 FrameOwner* owner() const; 80 FrameOwner* owner() const;
81 void setOwner(FrameOwner* owner) { m_owner = owner; } 81 void setOwner(FrameOwner* owner) { m_owner = owner; }
82 HTMLFrameOwnerElement* deprecatedLocalOwner() const; 82 HTMLFrameOwnerElement* deprecatedLocalOwner() const;
83 83
84 FrameTree& tree() const; 84 FrameTree& tree() const;
85 ChromeClient& chromeClient() const; 85 ChromeClient& chromeClient() const;
86 86
87 virtual SecurityContext* securityContext() const = 0; 87 virtual SecurityContext* securityContext() const = 0;
88 88
89 Frame* findFrameForNavigation(const AtomicString& name, Frame* activeFrame);
90
91 bool canNavigate(const Frame&);
92 virtual void printNavigationErrorMessage(const Frame&, const char* reason) { }
dcheng 2014/12/13 01:55:48 Perhaps keep this pure virtual for consistency? Th
Nate Chapin 2014/12/20 00:09:14 Done.
93
89 RenderPart* ownerRenderer() const; // Renderer for the element that contains this frame. 94 RenderPart* ownerRenderer() const; // Renderer for the element that contains this frame.
90 95
91 // FIXME: These should move to RemoteFrame when that is instantiated. 96 // FIXME: These should move to RemoteFrame when that is instantiated.
92 void setRemotePlatformLayer(WebLayer*); 97 void setRemotePlatformLayer(WebLayer*);
93 WebLayer* remotePlatformLayer() const { return m_remotePlatformLayer; } 98 WebLayer* remotePlatformLayer() const { return m_remotePlatformLayer; }
94 99
95 Settings* settings() const; // can be null 100 Settings* settings() const; // can be null
96 101
97 // FIXME: This method identifies a LocalFrame that is acting as a RemoteFram e. 102 // FIXME: This method identifies a LocalFrame that is acting as a RemoteFram e.
98 // It is necessary only until we can instantiate a RemoteFrame, at which poi nt 103 // It is necessary only until we can instantiate a RemoteFrame, at which poi nt
(...skipping 28 matching lines...) Expand all
127 { 132 {
128 return m_treeNode; 133 return m_treeNode;
129 } 134 }
130 135
131 // Allow equality comparisons of Frames by reference or pointer, interchangeably . 136 // Allow equality comparisons of Frames by reference or pointer, interchangeably .
132 DEFINE_COMPARISON_OPERATORS_WITH_REFERENCES_REFCOUNTED(Frame) 137 DEFINE_COMPARISON_OPERATORS_WITH_REFERENCES_REFCOUNTED(Frame)
133 138
134 } // namespace blink 139 } // namespace blink
135 140
136 #endif // Frame_h 141 #endif // Frame_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698