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

Side by Side Diff: third_party/WebKit/Source/core/html/HTMLFrameOwnerElement.h

Issue 2129863002: Handle focusability for plugin elements which has browsing context (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: use super class. Created 4 years, 5 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) 2006, 2007, 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2009 Apple Inc. All rights reserved.
3 * 3 *
4 * This library is free software; you can redistribute it and/or 4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public 5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either 6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version. 7 * version 2 of the License, or (at your option) any later version.
8 * 8 *
9 * This library is distributed in the hope that it will be useful, 9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 bool allowFullscreen() const override { return false; } 85 bool allowFullscreen() const override { return false; }
86 const WebVector<WebPermissionType>& delegatedPermissions() const override; 86 const WebVector<WebPermissionType>& delegatedPermissions() const override;
87 87
88 DECLARE_VIRTUAL_TRACE(); 88 DECLARE_VIRTUAL_TRACE();
89 89
90 protected: 90 protected:
91 HTMLFrameOwnerElement(const QualifiedName& tagName, Document&); 91 HTMLFrameOwnerElement(const QualifiedName& tagName, Document&);
92 void setSandboxFlags(SandboxFlags); 92 void setSandboxFlags(SandboxFlags);
93 93
94 bool loadOrRedirectSubframe(const KURL&, const AtomicString& frameName, bool replaceCurrentItem); 94 bool loadOrRedirectSubframe(const KURL&, const AtomicString& frameName, bool replaceCurrentItem);
95 bool isKeyboardFocusable() const override;
95 96
96 private: 97 private:
97 // Intentionally private to prevent redundant checks when the type is 98 // Intentionally private to prevent redundant checks when the type is
98 // already HTMLFrameOwnerElement. 99 // already HTMLFrameOwnerElement.
99 bool isLocal() const override { return true; } 100 bool isLocal() const override { return true; }
100 bool isRemote() const override { return false; } 101 bool isRemote() const override { return false; }
101 102
102 bool isKeyboardFocusable() const override;
103 bool isFrameOwnerElement() const final { return true; } 103 bool isFrameOwnerElement() const final { return true; }
104 104
105 virtual ReferrerPolicy referrerPolicyAttribute() { return ReferrerPolicyDefa ult; } 105 virtual ReferrerPolicy referrerPolicyAttribute() { return ReferrerPolicyDefa ult; }
106 106
107 Member<Frame> m_contentFrame; 107 Member<Frame> m_contentFrame;
108 Member<Widget> m_widget; 108 Member<Widget> m_widget;
109 SandboxFlags m_sandboxFlags; 109 SandboxFlags m_sandboxFlags;
110 }; 110 };
111 111
112 DEFINE_ELEMENT_TYPE_CASTS(HTMLFrameOwnerElement, isFrameOwnerElement()); 112 DEFINE_ELEMENT_TYPE_CASTS(HTMLFrameOwnerElement, isFrameOwnerElement());
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 CORE_EXPORT static SubtreeRootSet& disabledSubtreeRoots(); 146 CORE_EXPORT static SubtreeRootSet& disabledSubtreeRoots();
147 147
148 Member<Node> m_root; 148 Member<Node> m_root;
149 }; 149 };
150 150
151 DEFINE_TYPE_CASTS(HTMLFrameOwnerElement, FrameOwner, owner, owner->isLocal(), ow ner.isLocal()); 151 DEFINE_TYPE_CASTS(HTMLFrameOwnerElement, FrameOwner, owner, owner->isLocal(), ow ner.isLocal());
152 152
153 } // namespace blink 153 } // namespace blink
154 154
155 #endif // HTMLFrameOwnerElement_h 155 #endif // HTMLFrameOwnerElement_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698