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

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

Issue 22564003: Refactoring: Get rid of isDocument() check in EventTarget. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | Source/core/dom/EventTarget.h » ('j') | Source/core/dom/EventTarget.cpp » ('J')
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 1011 matching lines...) Expand 10 before | Expand all | Expand 10 after
1022 1022
1023 const Document* templateDocument() const; 1023 const Document* templateDocument() const;
1024 Document* ensureTemplateDocument(); 1024 Document* ensureTemplateDocument();
1025 void setTemplateDocumentHost(Document* templateDocumentHost) { m_templateDoc umentHost = templateDocumentHost; } 1025 void setTemplateDocumentHost(Document* templateDocumentHost) { m_templateDoc umentHost = templateDocumentHost; }
1026 Document* templateDocumentHost() { return m_templateDocumentHost; } 1026 Document* templateDocumentHost() { return m_templateDocumentHost; }
1027 1027
1028 void didAssociateFormControl(Element*); 1028 void didAssociateFormControl(Element*);
1029 1029
1030 virtual void addConsoleMessage(MessageSource, MessageLevel, const String& me ssage, unsigned long requestIdentifier = 0); 1030 virtual void addConsoleMessage(MessageSource, MessageLevel, const String& me ssage, unsigned long requestIdentifier = 0);
1031 1031
1032 virtual DOMWindow* browsingContext() OVERRIDE { return domWindow(); }
abarth-chromium 2013/08/09 16:25:53 This terminology doesn't match the HTML5 spec. T
1033 virtual void userEventWasHandled() OVERRIDE { resetLastHandledUserGestureTim estamp(); }
1034
1032 PassRefPtr<FontLoader> fontloader(); 1035 PassRefPtr<FontLoader> fontloader();
1033 DocumentLifecycleNotifier* lifecycleNotifier(); 1036 DocumentLifecycleNotifier* lifecycleNotifier();
1034 1037
1035 enum HttpRefreshType { 1038 enum HttpRefreshType {
1036 HttpRefreshFromHeader, 1039 HttpRefreshFromHeader,
1037 HttpRefreshFromMetaTag 1040 HttpRefreshFromMetaTag
1038 }; 1041 };
1039 void maybeHandleHttpRefresh(const String&, HttpRefreshType); 1042 void maybeHandleHttpRefresh(const String&, HttpRefreshType);
1040 1043
1041 protected: 1044 protected:
(...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after
1404 inline bool Node::isDocumentNode() const 1407 inline bool Node::isDocumentNode() const
1405 { 1408 {
1406 return this == documentInternal(); 1409 return this == documentInternal();
1407 } 1410 }
1408 1411
1409 Node* eventTargetNodeForDocument(Document*); 1412 Node* eventTargetNodeForDocument(Document*);
1410 1413
1411 } // namespace WebCore 1414 } // namespace WebCore
1412 1415
1413 #endif // Document_h 1416 #endif // Document_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/dom/EventTarget.h » ('j') | Source/core/dom/EventTarget.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698