| OLD | NEW |
| 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 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 bool HasReceivedUserGesture() const { return has_received_user_gesture_; } | 146 bool HasReceivedUserGesture() const { return has_received_user_gesture_; } |
| 147 | 147 |
| 148 bool IsAttached() const { | 148 bool IsAttached() const { |
| 149 return lifecycle_.GetState() == FrameLifecycle::kAttached; | 149 return lifecycle_.GetState() == FrameLifecycle::kAttached; |
| 150 } | 150 } |
| 151 | 151 |
| 152 // Tests whether the feature-policy controlled feature is enabled by policy in | 152 // Tests whether the feature-policy controlled feature is enabled by policy in |
| 153 // the given frame. | 153 // the given frame. |
| 154 bool IsFeatureEnabled(WebFeaturePolicyFeature) const; | 154 bool IsFeatureEnabled(WebFeaturePolicyFeature) const; |
| 155 | 155 |
| 156 // Called to make a frame inert or non-inert. A frame is inert when there |
| 157 // is a modal dialog displayed within an ancestor frame, and this frame |
| 158 // itself is not within the dialog. |
| 159 virtual void SetIsInert(bool) = 0; |
| 160 |
| 156 protected: | 161 protected: |
| 157 Frame(FrameClient*, Page&, FrameOwner*, WindowProxyManager*); | 162 Frame(FrameClient*, Page&, FrameOwner*, WindowProxyManager*); |
| 158 | 163 |
| 159 mutable FrameTree tree_node_; | 164 mutable FrameTree tree_node_; |
| 160 | 165 |
| 161 Member<Page> page_; | 166 Member<Page> page_; |
| 162 Member<FrameOwner> owner_; | 167 Member<FrameOwner> owner_; |
| 163 Member<DOMWindow> dom_window_; | 168 Member<DOMWindow> dom_window_; |
| 164 | 169 |
| 165 bool has_received_user_gesture_ = false; | 170 bool has_received_user_gesture_ = false; |
| (...skipping 21 matching lines...) Expand all Loading... |
| 187 return tree_node_; | 192 return tree_node_; |
| 188 } | 193 } |
| 189 | 194 |
| 190 // Allow equality comparisons of Frames by reference or pointer, | 195 // Allow equality comparisons of Frames by reference or pointer, |
| 191 // interchangeably. | 196 // interchangeably. |
| 192 DEFINE_COMPARISON_OPERATORS_WITH_REFERENCES(Frame) | 197 DEFINE_COMPARISON_OPERATORS_WITH_REFERENCES(Frame) |
| 193 | 198 |
| 194 } // namespace blink | 199 } // namespace blink |
| 195 | 200 |
| 196 #endif // Frame_h | 201 #endif // Frame_h |
| OLD | NEW |