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

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

Issue 2531683002: Revert of Post tasks for sensitive input visibility notifications (Closed)
Patch Set: Created 4 years 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 1294 matching lines...) Expand 10 before | Expand all | Expand 10 after
1305 1305
1306 // Indicates whether the user has interacted with this particular Document. 1306 // Indicates whether the user has interacted with this particular Document.
1307 void setHasReceivedUserGesture() { m_hasReceivedUserGesture = true; } 1307 void setHasReceivedUserGesture() { m_hasReceivedUserGesture = true; }
1308 bool hasReceivedUserGesture() const { return m_hasReceivedUserGesture; } 1308 bool hasReceivedUserGesture() const { return m_hasReceivedUserGesture; }
1309 1309
1310 // Document maintains a counter of visible non-secure password 1310 // Document maintains a counter of visible non-secure password
1311 // fields in the page. Used to notify the embedder when all visible 1311 // fields in the page. Used to notify the embedder when all visible
1312 // non-secure passwords fields are no longer visible. 1312 // non-secure passwords fields are no longer visible.
1313 void incrementPasswordCount(); 1313 void incrementPasswordCount();
1314 void decrementPasswordCount(); 1314 void decrementPasswordCount();
1315 unsigned passwordCount() const;
1315 1316
1316 protected: 1317 protected:
1317 Document(const DocumentInit&, DocumentClassFlags = DefaultDocumentClass); 1318 Document(const DocumentInit&, DocumentClassFlags = DefaultDocumentClass);
1318 1319
1319 void didUpdateSecurityOrigin() final; 1320 void didUpdateSecurityOrigin() final;
1320 1321
1321 void clearXMLVersion() { m_xmlVersion = String(); } 1322 void clearXMLVersion() { m_xmlVersion = String(); }
1322 1323
1323 virtual Document* cloneDocumentWithoutChildren(); 1324 virtual Document* cloneDocumentWithoutChildren();
1324 1325
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
1417 using EventFactorySet = HashSet<std::unique_ptr<EventFactoryBase>>; 1418 using EventFactorySet = HashSet<std::unique_ptr<EventFactoryBase>>;
1418 static EventFactorySet& eventFactories(); 1419 static EventFactorySet& eventFactories();
1419 1420
1420 void setNthIndexCache(NthIndexCache* nthIndexCache) { 1421 void setNthIndexCache(NthIndexCache* nthIndexCache) {
1421 DCHECK(!m_nthIndexCache || !nthIndexCache); 1422 DCHECK(!m_nthIndexCache || !nthIndexCache);
1422 m_nthIndexCache = nthIndexCache; 1423 m_nthIndexCache = nthIndexCache;
1423 } 1424 }
1424 1425
1425 const OriginAccessEntry& accessEntryFromURL(); 1426 const OriginAccessEntry& accessEntryFromURL();
1426 1427
1427 void sendSensitiveInputVisibility();
1428 void sendSensitiveInputVisibilityInternal();
1429
1430 DocumentLifecycle m_lifecycle; 1428 DocumentLifecycle m_lifecycle;
1431 1429
1432 bool m_hasNodesWithPlaceholderStyle; 1430 bool m_hasNodesWithPlaceholderStyle;
1433 bool m_evaluateMediaQueriesOnStyleRecalc; 1431 bool m_evaluateMediaQueriesOnStyleRecalc;
1434 1432
1435 // If we do ignore the pending stylesheet count, then we need to add a boolean 1433 // If we do ignore the pending stylesheet count, then we need to add a boolean
1436 // to track that this happened so that we can do a full repaint when the 1434 // to track that this happened so that we can do a full repaint when the
1437 // stylesheets do eventually load. 1435 // stylesheets do eventually load.
1438 PendingSheetLayout m_pendingSheetLayout; 1436 PendingSheetLayout m_pendingSheetLayout;
1439 1437
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
1660 1658
1661 bool m_mayContainV0Shadow = false; 1659 bool m_mayContainV0Shadow = false;
1662 1660
1663 Member<SnapCoordinator> m_snapCoordinator; 1661 Member<SnapCoordinator> m_snapCoordinator;
1664 1662
1665 WouldLoadReason m_wouldLoadReason; 1663 WouldLoadReason m_wouldLoadReason;
1666 1664
1667 Member<PropertyRegistry> m_propertyRegistry; 1665 Member<PropertyRegistry> m_propertyRegistry;
1668 1666
1669 unsigned m_passwordCount; 1667 unsigned m_passwordCount;
1670
1671 TaskHandle m_sensitiveInputVisibilityTask;
1672 }; 1668 };
1673 1669
1674 extern template class CORE_EXTERN_TEMPLATE_EXPORT Supplement<Document>; 1670 extern template class CORE_EXTERN_TEMPLATE_EXPORT Supplement<Document>;
1675 1671
1676 inline bool Document::shouldOverrideLegacyDescription( 1672 inline bool Document::shouldOverrideLegacyDescription(
1677 ViewportDescription::Type origin) const { 1673 ViewportDescription::Type origin) const {
1678 // The different (legacy) meta tags have different priorities based on the 1674 // The different (legacy) meta tags have different priorities based on the
1679 // type regardless of which order they appear in the DOM. The priority is 1675 // type regardless of which order they appear in the DOM. The priority is
1680 // given by the ViewportDescription::Type enum. 1676 // given by the ViewportDescription::Type enum.
1681 return origin >= m_legacyViewportDescription.type; 1677 return origin >= m_legacyViewportDescription.type;
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
1716 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); 1712 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true);
1717 1713
1718 } // namespace blink 1714 } // namespace blink
1719 1715
1720 #ifndef NDEBUG 1716 #ifndef NDEBUG
1721 // Outside the WebCore namespace for ease of invocation from gdb. 1717 // Outside the WebCore namespace for ease of invocation from gdb.
1722 CORE_EXPORT void showLiveDocumentInstances(); 1718 CORE_EXPORT void showLiveDocumentInstances();
1723 #endif 1719 #endif
1724 1720
1725 #endif // Document_h 1721 #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