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

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: Applied the rename. 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') | 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 1023 matching lines...) Expand 10 before | Expand all | Expand 10 after
1034 1034
1035 const Document* templateDocument() const; 1035 const Document* templateDocument() const;
1036 Document* ensureTemplateDocument(); 1036 Document* ensureTemplateDocument();
1037 void setTemplateDocumentHost(Document* templateDocumentHost) { m_templateDoc umentHost = templateDocumentHost; } 1037 void setTemplateDocumentHost(Document* templateDocumentHost) { m_templateDoc umentHost = templateDocumentHost; }
1038 Document* templateDocumentHost() { return m_templateDocumentHost; } 1038 Document* templateDocumentHost() { return m_templateDocumentHost; }
1039 1039
1040 void didAssociateFormControl(Element*); 1040 void didAssociateFormControl(Element*);
1041 1041
1042 virtual void addConsoleMessage(MessageSource, MessageLevel, const String& me ssage, unsigned long requestIdentifier = 0); 1042 virtual void addConsoleMessage(MessageSource, MessageLevel, const String& me ssage, unsigned long requestIdentifier = 0);
1043 1043
1044 virtual DOMWindow* executingWindow() OVERRIDE { return domWindow(); }
1045 virtual void userEventWasHandled() OVERRIDE { resetLastHandledUserGestureTim estamp(); }
1046
1044 PassRefPtr<FontLoader> fontloader(); 1047 PassRefPtr<FontLoader> fontloader();
1045 DocumentLifecycleNotifier* lifecycleNotifier(); 1048 DocumentLifecycleNotifier* lifecycleNotifier();
1046 1049
1047 enum HttpRefreshType { 1050 enum HttpRefreshType {
1048 HttpRefreshFromHeader, 1051 HttpRefreshFromHeader,
1049 HttpRefreshFromMetaTag 1052 HttpRefreshFromMetaTag
1050 }; 1053 };
1051 void maybeHandleHttpRefresh(const String&, HttpRefreshType); 1054 void maybeHandleHttpRefresh(const String&, HttpRefreshType);
1052 1055
1053 protected: 1056 protected:
(...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after
1411 inline bool Node::isDocumentNode() const 1414 inline bool Node::isDocumentNode() const
1412 { 1415 {
1413 return this == documentInternal(); 1416 return this == documentInternal();
1414 } 1417 }
1415 1418
1416 Node* eventTargetNodeForDocument(Document*); 1419 Node* eventTargetNodeForDocument(Document*);
1417 1420
1418 } // namespace WebCore 1421 } // namespace WebCore
1419 1422
1420 #endif // Document_h 1423 #endif // Document_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/dom/EventTarget.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698