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

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

Issue 1433103002: Use FocusParams in FocusController::setFocusedElement and Document::setFocusedElement arguments. (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 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 enum class SelectionBehaviorOnFocus; 171 enum class SelectionBehaviorOnFocus;
172 struct AnnotatedRegionValue; 172 struct AnnotatedRegionValue;
173 struct FocusParams;
173 struct IconURL; 174 struct IconURL;
174 175
175 using MouseEventWithHitTestResults = EventWithHitTestResults<PlatformMouseEvent> ; 176 using MouseEventWithHitTestResults = EventWithHitTestResults<PlatformMouseEvent> ;
176 using ExceptionCode = int; 177 using ExceptionCode = int;
177 178
178 enum StyleResolverUpdateMode { 179 enum StyleResolverUpdateMode {
179 // Discards the StyleResolver and rebuilds it. 180 // Discards the StyleResolver and rebuilds it.
180 FullStyleUpdate, 181 FullStyleUpdate,
181 // Attempts to use StyleInvalidationAnalysis to avoid discarding the entire StyleResolver. 182 // Attempts to use StyleInvalidationAnalysis to avoid discarding the entire StyleResolver.
182 AnalyzedStyleUpdate 183 AnalyzedStyleUpdate
(...skipping 392 matching lines...) Expand 10 before | Expand all | Expand 10 after
575 MouseEventWithHitTestResults prepareMouseEvent(const HitTestRequest&, const LayoutPoint&, const PlatformMouseEvent&); 576 MouseEventWithHitTestResults prepareMouseEvent(const HitTestRequest&, const LayoutPoint&, const PlatformMouseEvent&);
576 577
577 /* Newly proposed CSS3 mechanism for selecting alternate 578 /* Newly proposed CSS3 mechanism for selecting alternate
578 stylesheets using the DOM. May be subject to change as 579 stylesheets using the DOM. May be subject to change as
579 spec matures. - dwh 580 spec matures. - dwh
580 */ 581 */
581 String preferredStylesheetSet() const; 582 String preferredStylesheetSet() const;
582 String selectedStylesheetSet() const; 583 String selectedStylesheetSet() const;
583 void setSelectedStylesheetSet(const String&); 584 void setSelectedStylesheetSet(const String&);
584 585
585 bool setFocusedElement(PassRefPtrWillBeRawPtr<Element>, WebFocusType = WebFo cusTypeNone, InputDeviceCapabilities* sourceCapabilities = nullptr); 586 bool setFocusedElement(PassRefPtrWillBeRawPtr<Element>, const FocusParams&);
587 void clearFocusedElement();
586 Element* focusedElement() const { return m_focusedElement.get(); } 588 Element* focusedElement() const { return m_focusedElement.get(); }
587 UserActionElementSet& userActionElements() { return m_userActionElements; } 589 UserActionElementSet& userActionElements() { return m_userActionElements; }
588 const UserActionElementSet& userActionElements() const { return m_userAction Elements; } 590 const UserActionElementSet& userActionElements() const { return m_userAction Elements; }
589 void setNeedsFocusedElementCheck(); 591 void setNeedsFocusedElementCheck();
590 void setAutofocusElement(Element*); 592 void setAutofocusElement(Element*);
591 Element* autofocusElement() const { return m_autofocusElement.get(); } 593 Element* autofocusElement() const { return m_autofocusElement.get(); }
592 594
593 void setActiveHoverElement(PassRefPtrWillBeRawPtr<Element>); 595 void setActiveHoverElement(PassRefPtrWillBeRawPtr<Element>);
594 Element* activeHoverElement() const { return m_activeHoverElement.get(); } 596 Element* activeHoverElement() const { return m_activeHoverElement.get(); }
595 597
(...skipping 834 matching lines...) Expand 10 before | Expand all | Expand 10 after
1430 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); 1432 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true);
1431 1433
1432 } // namespace blink 1434 } // namespace blink
1433 1435
1434 #ifndef NDEBUG 1436 #ifndef NDEBUG
1435 // Outside the WebCore namespace for ease of invocation from gdb. 1437 // Outside the WebCore namespace for ease of invocation from gdb.
1436 CORE_EXPORT void showLiveDocumentInstances(); 1438 CORE_EXPORT void showLiveDocumentInstances();
1437 #endif 1439 #endif
1438 1440
1439 #endif // Document_h 1441 #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