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

Side by Side Diff: third_party/WebKit/Source/core/dom/Document.h

Issue 2698853002: [merge-m57] Forward declare blink::mojom::EngagementLevel in Document.h (Closed)
Patch Set: Created 3 years, 10 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/Document.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
56 #include "core/html/parser/ParserSynchronizationPolicy.h" 56 #include "core/html/parser/ParserSynchronizationPolicy.h"
57 #include "core/page/PageVisibilityState.h" 57 #include "core/page/PageVisibilityState.h"
58 #include "platform/Length.h" 58 #include "platform/Length.h"
59 #include "platform/Timer.h" 59 #include "platform/Timer.h"
60 #include "platform/WebTaskRunner.h" 60 #include "platform/WebTaskRunner.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 : int32_t;
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 1109 matching lines...) Expand 10 before | Expand all | Expand 10 after
1193 return m_topLayerElements; 1196 return m_topLayerElements;
1194 } 1197 }
1195 HTMLDialogElement* activeModalDialog() const; 1198 HTMLDialogElement* activeModalDialog() const;
1196 1199
1197 // A non-null m_templateDocumentHost implies that |this| was created by 1200 // A non-null m_templateDocumentHost implies that |this| was created by
1198 // ensureTemplateDocument(). 1201 // ensureTemplateDocument().
1199 bool isTemplateDocument() const { return !!m_templateDocumentHost; } 1202 bool isTemplateDocument() const { return !!m_templateDocumentHost; }
1200 Document& ensureTemplateDocument(); 1203 Document& ensureTemplateDocument();
1201 Document* templateDocumentHost() { return m_templateDocumentHost; } 1204 Document* templateDocumentHost() { return m_templateDocumentHost; }
1202 1205
1203 mojom::blink::EngagementLevel getEngagementLevel() const { 1206 mojom::EngagementLevel getEngagementLevel() const {
1204 return m_engagementLevel; 1207 return m_engagementLevel;
1205 } 1208 }
1206 void setEngagementLevel(mojom::blink::EngagementLevel level) { 1209 void setEngagementLevel(mojom::EngagementLevel level) {
1207 m_engagementLevel = level; 1210 m_engagementLevel = level;
1208 } 1211 }
1209 1212
1210 // TODO(thestig): Rename these and related functions, since we can call them 1213 // TODO(thestig): Rename these and related functions, since we can call them
1211 // for controls outside of forms as well. 1214 // for controls outside of forms as well.
1212 void didAssociateFormControl(Element*); 1215 void didAssociateFormControl(Element*);
1213 1216
1214 void addConsoleMessage(ConsoleMessage*) final; 1217 void addConsoleMessage(ConsoleMessage*) final;
1215 1218
1216 LocalDOMWindow* executingWindow() const final; 1219 LocalDOMWindow* executingWindow() const final;
(...skipping 503 matching lines...) Expand 10 before | Expand all | Expand 10 after
1720 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); 1723 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true);
1721 1724
1722 } // namespace blink 1725 } // namespace blink
1723 1726
1724 #ifndef NDEBUG 1727 #ifndef NDEBUG
1725 // Outside the WebCore namespace for ease of invocation from gdb. 1728 // Outside the WebCore namespace for ease of invocation from gdb.
1726 CORE_EXPORT void showLiveDocumentInstances(); 1729 CORE_EXPORT void showLiveDocumentInstances();
1727 #endif 1730 #endif
1728 1731
1729 #endif // Document_h 1732 #endif // Document_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/Document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698