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

Side by Side Diff: sky/engine/core/dom/Document.h

Issue 754043004: Remove autofocus. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 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 | sky/engine/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 342 matching lines...) Expand 10 before | Expand all | Expand 10 after
353 353
354 TextLinkColors& textLinkColors() { return m_textLinkColors; } 354 TextLinkColors& textLinkColors() { return m_textLinkColors; }
355 355
356 MouseEventWithHitTestResults prepareMouseEvent(const HitTestRequest&, const LayoutPoint&, const PlatformMouseEvent&); 356 MouseEventWithHitTestResults prepareMouseEvent(const HitTestRequest&, const LayoutPoint&, const PlatformMouseEvent&);
357 357
358 bool setFocusedElement(PassRefPtr<Element>, FocusType = FocusTypeNone); 358 bool setFocusedElement(PassRefPtr<Element>, FocusType = FocusTypeNone);
359 Element* focusedElement() const { return m_focusedElement.get(); } 359 Element* focusedElement() const { return m_focusedElement.get(); }
360 UserActionElementSet& userActionElements() { return m_userActionElements; } 360 UserActionElementSet& userActionElements() { return m_userActionElements; }
361 const UserActionElementSet& userActionElements() const { return m_userAction Elements; } 361 const UserActionElementSet& userActionElements() const { return m_userAction Elements; }
362 void setNeedsFocusedElementCheck(); 362 void setNeedsFocusedElementCheck();
363 void setAutofocusElement(Element*);
364 Element* autofocusElement() const { return m_autofocusElement.get(); }
365 363
366 void setActiveHoverElement(PassRefPtr<Element>); 364 void setActiveHoverElement(PassRefPtr<Element>);
367 Element* activeHoverElement() const { return m_activeHoverElement.get(); } 365 Element* activeHoverElement() const { return m_activeHoverElement.get(); }
368 366
369 void removeFocusedElementOfSubtree(Node*, bool amongChildrenOnly = false); 367 void removeFocusedElementOfSubtree(Node*, bool amongChildrenOnly = false);
370 void hoveredNodeDetached(Node*); 368 void hoveredNodeDetached(Node*);
371 void activeChainNodeDetached(Node*); 369 void activeChainNodeDetached(Node*);
372 370
373 void updateHoverActiveState(const HitTestRequest&, Element*, const PlatformM ouseEvent* = 0); 371 void updateHoverActiveState(const HitTestRequest&, Element*, const PlatformM ouseEvent* = 0);
374 372
(...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after
668 666
669 // Note that dispatching a window load event may cause the LocalDOMWindow to be detached from 667 // Note that dispatching a window load event may cause the LocalDOMWindow to be detached from
670 // the LocalFrame, so callers should take a reference to the LocalDOMWindow (which owns us) to 668 // the LocalFrame, so callers should take a reference to the LocalDOMWindow (which owns us) to
671 // prevent the Document from getting blown away from underneath them. 669 // prevent the Document from getting blown away from underneath them.
672 void dispatchWindowLoadEvent(); 670 void dispatchWindowLoadEvent();
673 671
674 void addListenerType(ListenerType listenerType) { m_listenerTypes |= listene rType; } 672 void addListenerType(ListenerType listenerType) { m_listenerTypes |= listene rType; }
675 673
676 void clearFocusedElementSoon(); 674 void clearFocusedElementSoon();
677 void clearFocusedElementTimerFired(Timer<Document>*); 675 void clearFocusedElementTimerFired(Timer<Document>*);
678 void focusAutofocusElementTimerFired(Timer<Document>*);
679 676
680 void setHoverNode(PassRefPtr<Node>); 677 void setHoverNode(PassRefPtr<Node>);
681 Node* hoverNode() const { return m_hoverNode.get(); } 678 Node* hoverNode() const { return m_hoverNode.get(); }
682 679
683 typedef HashSet<OwnPtr<EventFactoryBase> > EventFactorySet; 680 typedef HashSet<OwnPtr<EventFactoryBase> > EventFactorySet;
684 static EventFactorySet& eventFactories(); 681 static EventFactorySet& eventFactories();
685 682
686 DocumentLifecycle m_lifecycle; 683 DocumentLifecycle m_lifecycle;
687 684
688 AbstractModule* m_module; 685 AbstractModule* m_module;
(...skipping 21 matching lines...) Expand all
710 KURL m_url; // Document.URL: The URL from which this document was retrieved. 707 KURL m_url; // Document.URL: The URL from which this document was retrieved.
711 KURL m_baseURL; // Node.baseURI: The URL to use when resolving relative URLs . 708 KURL m_baseURL; // Node.baseURI: The URL to use when resolving relative URLs .
712 709
713 // Mime-type of the document in case it was cloned or created by XHR. 710 // Mime-type of the document in case it was cloned or created by XHR.
714 AtomicString m_mimeType; 711 AtomicString m_mimeType;
715 712
716 RefPtr<CSSStyleSheet> m_elemSheet; 713 RefPtr<CSSStyleSheet> m_elemSheet;
717 714
718 Timer<Document> m_executeScriptsWaitingForResourcesTimer; 715 Timer<Document> m_executeScriptsWaitingForResourcesTimer;
719 716
720 bool m_hasAutofocused;
721 Timer<Document> m_clearFocusedElementTimer; 717 Timer<Document> m_clearFocusedElementTimer;
722 Timer<Document> m_focusAutofocusElementTimer;
723 RefPtr<Element> m_autofocusElement;
724 RefPtr<Element> m_focusedElement; 718 RefPtr<Element> m_focusedElement;
725 RefPtr<Node> m_hoverNode; 719 RefPtr<Node> m_hoverNode;
726 RefPtr<Element> m_activeHoverElement; 720 RefPtr<Element> m_activeHoverElement;
727 RefPtr<Element> m_documentElement; 721 RefPtr<Element> m_documentElement;
728 UserActionElementSet m_userActionElements; 722 UserActionElementSet m_userActionElements;
729 723
730 typedef HashSet<RawPtr<Range> > AttachedRangeSet; 724 typedef HashSet<RawPtr<Range> > AttachedRangeSet;
731 AttachedRangeSet m_ranges; 725 AttachedRangeSet m_ranges;
732 726
733 unsigned short m_listenerTypes; 727 unsigned short m_listenerTypes;
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
838 Node* eventTargetNodeForDocument(Document*); 832 Node* eventTargetNodeForDocument(Document*);
839 833
840 } // namespace blink 834 } // namespace blink
841 835
842 #ifndef NDEBUG 836 #ifndef NDEBUG
843 // Outside the WebCore namespace for ease of invocation from gdb. 837 // Outside the WebCore namespace for ease of invocation from gdb.
844 void showLiveDocumentInstances(); 838 void showLiveDocumentInstances();
845 #endif 839 #endif
846 840
847 #endif // SKY_ENGINE_CORE_DOM_DOCUMENT_H_ 841 #endif // SKY_ENGINE_CORE_DOM_DOCUMENT_H_
OLDNEW
« no previous file with comments | « no previous file | sky/engine/core/dom/Document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698