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

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

Issue 2883033003: Propagate inert state to OOPIFs when a modal dialog is active (Closed)
Patch Set: Set Frame's inert bit on style calculation Created 3 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
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 8 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights
9 * reserved. 9 * reserved.
10 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) 10 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies)
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 bool HasReceivedUserGesture() const { return has_received_user_gesture_; } 149 bool HasReceivedUserGesture() const { return has_received_user_gesture_; }
150 150
151 bool IsAttached() const { 151 bool IsAttached() const {
152 return lifecycle_.GetState() == FrameLifecycle::kAttached; 152 return lifecycle_.GetState() == FrameLifecycle::kAttached;
153 } 153 }
154 154
155 // Tests whether the feature-policy controlled feature is enabled by policy in 155 // Tests whether the feature-policy controlled feature is enabled by policy in
156 // the given frame. 156 // the given frame.
157 bool IsFeatureEnabled(WebFeaturePolicyFeature) const; 157 bool IsFeatureEnabled(WebFeaturePolicyFeature) const;
158 158
159 // Called to make a frame inert or non-inert. A frame is inert when there
160 // is a modal dialog displayed within an ancestor frame, and this frame
161 // itself is not within the dialog.
162 virtual void SetIsInert(bool) = 0;
163 virtual bool IsInert() const = 0;
164
159 protected: 165 protected:
160 Frame(FrameClient*, Page&, FrameOwner*, WindowProxyManager*); 166 Frame(FrameClient*, Page&, FrameOwner*, WindowProxyManager*);
161 167
162 mutable FrameTree tree_node_; 168 mutable FrameTree tree_node_;
163 169
164 Member<Page> page_; 170 Member<Page> page_;
165 Member<FrameOwner> owner_; 171 Member<FrameOwner> owner_;
166 Member<DOMWindow> dom_window_; 172 Member<DOMWindow> dom_window_;
167 173
168 bool has_received_user_gesture_ = false; 174 bool has_received_user_gesture_ = false;
(...skipping 19 matching lines...) Expand all
188 return tree_node_; 194 return tree_node_;
189 } 195 }
190 196
191 // Allow equality comparisons of Frames by reference or pointer, 197 // Allow equality comparisons of Frames by reference or pointer,
192 // interchangeably. 198 // interchangeably.
193 DEFINE_COMPARISON_OPERATORS_WITH_REFERENCES(Frame) 199 DEFINE_COMPARISON_OPERATORS_WITH_REFERENCES(Frame)
194 200
195 } // namespace blink 201 } // namespace blink
196 202
197 #endif // Frame_h 203 #endif // Frame_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698