Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
| 4 * (C) 2001 Dirk Mueller (mueller@kde.org) | 4 * (C) 2001 Dirk Mueller (mueller@kde.org) |
| 5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) | 5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) |
| 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All |
| 7 * rights reserved. | 7 * rights reserved. |
| 8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. | 8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. |
| 9 * (http://www.torchmobile.com/) | 9 * (http://www.torchmobile.com/) |
| 10 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) | 10 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 56 #include "core/page/PageVisibilityState.h" | 56 #include "core/page/PageVisibilityState.h" |
| 57 #include "platform/Length.h" | 57 #include "platform/Length.h" |
| 58 #include "platform/Timer.h" | 58 #include "platform/Timer.h" |
| 59 #include "platform/WebTaskRunner.h" | 59 #include "platform/WebTaskRunner.h" |
| 60 #include "platform/loader/fetch/ClientHintsPreferences.h" | 60 #include "platform/loader/fetch/ClientHintsPreferences.h" |
| 61 #include "platform/scroll/ScrollTypes.h" | 61 #include "platform/scroll/ScrollTypes.h" |
| 62 #include "platform/weborigin/KURL.h" | 62 #include "platform/weborigin/KURL.h" |
| 63 #include "platform/weborigin/ReferrerPolicy.h" | 63 #include "platform/weborigin/ReferrerPolicy.h" |
| 64 #include "public/platform/WebFocusType.h" | 64 #include "public/platform/WebFocusType.h" |
| 65 #include "public/platform/WebInsecureRequestPolicy.h" | 65 #include "public/platform/WebInsecureRequestPolicy.h" |
| 66 #include "public/platform/site_engagement.mojom-blink.h" | |
| 67 #include "wtf/Compiler.h" | 66 #include "wtf/Compiler.h" |
| 68 #include "wtf/HashSet.h" | 67 #include "wtf/HashSet.h" |
| 69 #include "wtf/PassRefPtr.h" | 68 #include "wtf/PassRefPtr.h" |
| 70 #include <memory> | 69 #include <memory> |
| 71 | 70 |
| 72 namespace blink { | 71 namespace blink { |
| 73 | 72 |
| 73 namespace mojom { | |
| 74 enum class EngagementLevel; | |
|
tapted
2017/02/06 03:29:23
This is implicitly `int` -- see "(3)" at http://en
| |
| 75 } | |
| 76 | |
| 74 class AnimationClock; | 77 class AnimationClock; |
| 75 class DocumentTimeline; | 78 class DocumentTimeline; |
| 76 class AXObjectCache; | 79 class AXObjectCache; |
| 77 class Attr; | 80 class Attr; |
| 78 class CDATASection; | 81 class CDATASection; |
| 79 class CSSStyleSheet; | 82 class CSSStyleSheet; |
| 80 class CanvasFontCache; | 83 class CanvasFontCache; |
| 81 class CharacterData; | 84 class CharacterData; |
| 82 class ChromeClient; | 85 class ChromeClient; |
| 83 class CompositorPendingAnimations; | 86 class CompositorPendingAnimations; |
| (...skipping 1110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1194 return m_topLayerElements; | 1197 return m_topLayerElements; |
| 1195 } | 1198 } |
| 1196 HTMLDialogElement* activeModalDialog() const; | 1199 HTMLDialogElement* activeModalDialog() const; |
| 1197 | 1200 |
| 1198 // A non-null m_templateDocumentHost implies that |this| was created by | 1201 // A non-null m_templateDocumentHost implies that |this| was created by |
| 1199 // ensureTemplateDocument(). | 1202 // ensureTemplateDocument(). |
| 1200 bool isTemplateDocument() const { return !!m_templateDocumentHost; } | 1203 bool isTemplateDocument() const { return !!m_templateDocumentHost; } |
| 1201 Document& ensureTemplateDocument(); | 1204 Document& ensureTemplateDocument(); |
| 1202 Document* templateDocumentHost() { return m_templateDocumentHost; } | 1205 Document* templateDocumentHost() { return m_templateDocumentHost; } |
| 1203 | 1206 |
| 1204 mojom::blink::EngagementLevel getEngagementLevel() const { | 1207 mojom::EngagementLevel getEngagementLevel() const { |
| 1205 return m_engagementLevel; | 1208 return m_engagementLevel; |
| 1206 } | 1209 } |
| 1207 void setEngagementLevel(mojom::blink::EngagementLevel level) { | 1210 void setEngagementLevel(mojom::EngagementLevel level) { |
| 1208 m_engagementLevel = level; | 1211 m_engagementLevel = level; |
| 1209 } | 1212 } |
| 1210 | 1213 |
| 1211 // TODO(thestig): Rename these and related functions, since we can call them | 1214 // TODO(thestig): Rename these and related functions, since we can call them |
| 1212 // for controls outside of forms as well. | 1215 // for controls outside of forms as well. |
| 1213 void didAssociateFormControl(Element*); | 1216 void didAssociateFormControl(Element*); |
| 1214 | 1217 |
| 1215 void addConsoleMessage(ConsoleMessage*) final; | 1218 void addConsoleMessage(ConsoleMessage*) final; |
| 1216 | 1219 |
| 1217 LocalDOMWindow* executingWindow() const final; | 1220 LocalDOMWindow* executingWindow() const final; |
| (...skipping 503 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1721 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); | 1724 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); |
| 1722 | 1725 |
| 1723 } // namespace blink | 1726 } // namespace blink |
| 1724 | 1727 |
| 1725 #ifndef NDEBUG | 1728 #ifndef NDEBUG |
| 1726 // Outside the WebCore namespace for ease of invocation from gdb. | 1729 // Outside the WebCore namespace for ease of invocation from gdb. |
| 1727 CORE_EXPORT void showLiveDocumentInstances(); | 1730 CORE_EXPORT void showLiveDocumentInstances(); |
| 1728 #endif | 1731 #endif |
| 1729 | 1732 |
| 1730 #endif // Document_h | 1733 #endif // Document_h |
| OLD | NEW |