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

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

Issue 1420693006: Introduce a struct to store arguments of Element::focus(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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 r ights reserved. 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All r ights reserved.
7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/) 7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/)
8 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) 8 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
9 * Copyright (C) 2011 Google Inc. All rights reserved. 9 * Copyright (C) 2011 Google Inc. All rights reserved.
10 * 10 *
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 class StyleSheet; 161 class StyleSheet;
162 class StyleSheetList; 162 class StyleSheetList;
163 class Text; 163 class Text;
164 class TextAutosizer; 164 class TextAutosizer;
165 class Touch; 165 class Touch;
166 class TouchList; 166 class TouchList;
167 class TransformSource; 167 class TransformSource;
168 class TreeWalker; 168 class TreeWalker;
169 class VisitedLinkState; 169 class VisitedLinkState;
170 class WebGLRenderingContext; 170 class WebGLRenderingContext;
171 171 enum class SelectionBehaviorOnFocus;
172 struct AnnotatedRegionValue; 172 struct AnnotatedRegionValue;
173 struct IconURL; 173 struct IconURL;
174 174
175 using MouseEventWithHitTestResults = EventWithHitTestResults<PlatformMouseEvent> ; 175 using MouseEventWithHitTestResults = EventWithHitTestResults<PlatformMouseEvent> ;
176 using ExceptionCode = int; 176 using ExceptionCode = int;
177 177
178 enum StyleResolverUpdateMode { 178 enum StyleResolverUpdateMode {
179 // Discards the StyleResolver and rebuilds it. 179 // Discards the StyleResolver and rebuilds it.
180 FullStyleUpdate, 180 FullStyleUpdate,
181 // Attempts to use StyleInvalidationAnalysis to avoid discarding the entire StyleResolver. 181 // Attempts to use StyleInvalidationAnalysis to avoid discarding the entire StyleResolver.
(...skipping 614 matching lines...) Expand 10 before | Expand all | Expand 10 after
796 796
797 Color themeColor() const; 797 Color themeColor() const;
798 798
799 // Returns the HTMLLinkElement currently in use for the Web Manifest. 799 // Returns the HTMLLinkElement currently in use for the Web Manifest.
800 // Returns null if there is no such element. 800 // Returns null if there is no such element.
801 HTMLLinkElement* linkManifest() const; 801 HTMLLinkElement* linkManifest() const;
802 802
803 void setUseSecureKeyboardEntryWhenActive(bool); 803 void setUseSecureKeyboardEntryWhenActive(bool);
804 bool useSecureKeyboardEntryWhenActive() const; 804 bool useSecureKeyboardEntryWhenActive() const;
805 805
806 void updateFocusAppearanceSoon(bool restorePreviousSelection); 806 void updateFocusAppearanceSoon(SelectionBehaviorOnFocus);
807 void cancelFocusAppearanceUpdate(); 807 void cancelFocusAppearanceUpdate();
808 808
809 bool isDNSPrefetchEnabled() const { return m_isDNSPrefetchEnabled; } 809 bool isDNSPrefetchEnabled() const { return m_isDNSPrefetchEnabled; }
810 void parseDNSPrefetchControlHeader(const String&); 810 void parseDNSPrefetchControlHeader(const String&);
811 811
812 // FIXME(crbug.com/305497): This should be removed once LocalDOMWindow is an ExecutionContext. 812 // FIXME(crbug.com/305497): This should be removed once LocalDOMWindow is an ExecutionContext.
813 void postTask(const WebTraceLocation&, PassOwnPtr<ExecutionContextTask>) ove rride; // Executes the task on context's thread asynchronously. 813 void postTask(const WebTraceLocation&, PassOwnPtr<ExecutionContextTask>) ove rride; // Executes the task on context's thread asynchronously.
814 void postInspectorTask(const WebTraceLocation&, PassOwnPtr<ExecutionContextT ask>); 814 void postInspectorTask(const WebTraceLocation&, PassOwnPtr<ExecutionContextT ask>);
815 815
816 void tasksWereSuspended() final; 816 void tasksWereSuspended() final;
(...skipping 422 matching lines...) Expand 10 before | Expand all | Expand 10 after
1239 const OwnPtrWillBeMember<VisitedLinkState> m_visitedLinkState; 1239 const OwnPtrWillBeMember<VisitedLinkState> m_visitedLinkState;
1240 1240
1241 bool m_visuallyOrdered; 1241 bool m_visuallyOrdered;
1242 ReadyState m_readyState; 1242 ReadyState m_readyState;
1243 ParsingState m_parsingState; 1243 ParsingState m_parsingState;
1244 1244
1245 bool m_gotoAnchorNeededAfterStylesheetsLoad; 1245 bool m_gotoAnchorNeededAfterStylesheetsLoad;
1246 bool m_isDNSPrefetchEnabled; 1246 bool m_isDNSPrefetchEnabled;
1247 bool m_haveExplicitlyDisabledDNSPrefetch; 1247 bool m_haveExplicitlyDisabledDNSPrefetch;
1248 bool m_containsValidityStyleRules; 1248 bool m_containsValidityStyleRules;
1249 bool m_updateFocusAppearanceRestoresSelection;
1250 bool m_containsPlugins; 1249 bool m_containsPlugins;
1250 SelectionBehaviorOnFocus m_updateFocusAppearanceSelectionBahavior;
1251 1251
1252 // http://www.whatwg.org/specs/web-apps/current-work/#ignore-destructive-wri tes-counter 1252 // http://www.whatwg.org/specs/web-apps/current-work/#ignore-destructive-wri tes-counter
1253 unsigned m_ignoreDestructiveWriteCount; 1253 unsigned m_ignoreDestructiveWriteCount;
1254 1254
1255 String m_title; 1255 String m_title;
1256 String m_rawTitle; 1256 String m_rawTitle;
1257 RefPtrWillBeMember<Element> m_titleElement; 1257 RefPtrWillBeMember<Element> m_titleElement;
1258 1258
1259 PersistentWillBeMember<AXObjectCache> m_axObjectCache; 1259 PersistentWillBeMember<AXObjectCache> m_axObjectCache;
1260 OwnPtrWillBeMember<DocumentMarkerController> m_markers; 1260 OwnPtrWillBeMember<DocumentMarkerController> m_markers;
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
1435 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); 1435 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true);
1436 1436
1437 } // namespace blink 1437 } // namespace blink
1438 1438
1439 #ifndef NDEBUG 1439 #ifndef NDEBUG
1440 // Outside the WebCore namespace for ease of invocation from gdb. 1440 // Outside the WebCore namespace for ease of invocation from gdb.
1441 CORE_EXPORT void showLiveDocumentInstances(); 1441 CORE_EXPORT void showLiveDocumentInstances();
1442 #endif 1442 #endif
1443 1443
1444 #endif // Document_h 1444 #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