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

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

Issue 419203004: DevTools: wrapping arguments addConsoleMessage in ConsoleMessage (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@wrap-not-all-console-args
Patch Set: Created 6 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
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 28 matching lines...) Expand all
39 #include "core/dom/DocumentSupplementable.h" 39 #include "core/dom/DocumentSupplementable.h"
40 #include "core/dom/DocumentTiming.h" 40 #include "core/dom/DocumentTiming.h"
41 #include "core/dom/ExecutionContext.h" 41 #include "core/dom/ExecutionContext.h"
42 #include "core/dom/MutationObserver.h" 42 #include "core/dom/MutationObserver.h"
43 #include "core/dom/TextLinkColors.h" 43 #include "core/dom/TextLinkColors.h"
44 #include "core/dom/TreeScope.h" 44 #include "core/dom/TreeScope.h"
45 #include "core/dom/UserActionElementSet.h" 45 #include "core/dom/UserActionElementSet.h"
46 #include "core/dom/ViewportDescription.h" 46 #include "core/dom/ViewportDescription.h"
47 #include "core/dom/custom/CustomElement.h" 47 #include "core/dom/custom/CustomElement.h"
48 #include "core/html/CollectionType.h" 48 #include "core/html/CollectionType.h"
49 #include "core/inspector/ConsoleMessage.h"
49 #include "core/page/FocusType.h" 50 #include "core/page/FocusType.h"
50 #include "core/page/PageVisibilityState.h" 51 #include "core/page/PageVisibilityState.h"
51 #include "platform/Length.h" 52 #include "platform/Length.h"
52 #include "platform/Timer.h" 53 #include "platform/Timer.h"
53 #include "platform/heap/Handle.h" 54 #include "platform/heap/Handle.h"
54 #include "platform/weborigin/KURL.h" 55 #include "platform/weborigin/KURL.h"
55 #include "platform/weborigin/ReferrerPolicy.h" 56 #include "platform/weborigin/ReferrerPolicy.h"
56 #include "wtf/HashSet.h" 57 #include "wtf/HashSet.h"
57 #include "wtf/OwnPtr.h" 58 #include "wtf/OwnPtr.h"
58 #include "wtf/PassOwnPtr.h" 59 #include "wtf/PassOwnPtr.h"
(...skipping 948 matching lines...) Expand 10 before | Expand all | Expand 10 after
1007 const WillBeHeapVector<RefPtrWillBeMember<Element> >& topLayerElements() con st { return m_topLayerElements; } 1008 const WillBeHeapVector<RefPtrWillBeMember<Element> >& topLayerElements() con st { return m_topLayerElements; }
1008 HTMLDialogElement* activeModalDialog() const; 1009 HTMLDialogElement* activeModalDialog() const;
1009 1010
1010 // A non-null m_templateDocumentHost implies that |this| was created by ensu reTemplateDocument(). 1011 // A non-null m_templateDocumentHost implies that |this| was created by ensu reTemplateDocument().
1011 bool isTemplateDocument() const { return !!m_templateDocumentHost; } 1012 bool isTemplateDocument() const { return !!m_templateDocumentHost; }
1012 Document& ensureTemplateDocument(); 1013 Document& ensureTemplateDocument();
1013 Document* templateDocumentHost() { return m_templateDocumentHost; } 1014 Document* templateDocumentHost() { return m_templateDocumentHost; }
1014 1015
1015 void didAssociateFormControl(Element*); 1016 void didAssociateFormControl(Element*);
1016 1017
1017 void addConsoleMessageWithRequestIdentifier(MessageSource, MessageLevel, con st String& message, unsigned long requestIdentifier); 1018 virtual void addMessage(PassRefPtr<ConsoleMessage>) OVERRIDE FINAL;
1018 1019
1019 virtual LocalDOMWindow* executingWindow() OVERRIDE FINAL; 1020 virtual LocalDOMWindow* executingWindow() OVERRIDE FINAL;
1020 LocalFrame* executingFrame(); 1021 LocalFrame* executingFrame();
1021 1022
1022 DocumentLifecycleNotifier& lifecycleNotifier(); 1023 DocumentLifecycleNotifier& lifecycleNotifier();
1023 DocumentLifecycle& lifecycle() { return m_lifecycle; } 1024 DocumentLifecycle& lifecycle() { return m_lifecycle; }
1024 bool isActive() const { return m_lifecycle.isActive(); } 1025 bool isActive() const { return m_lifecycle.isActive(); }
1025 bool isStopped() const { return m_lifecycle.state() == DocumentLifecycle::St opped; } 1026 bool isStopped() const { return m_lifecycle.state() == DocumentLifecycle::St opped; }
1026 bool isDisposed() const { return m_lifecycle.state() == DocumentLifecycle::D isposed; } 1027 bool isDisposed() const { return m_lifecycle.state() == DocumentLifecycle::D isposed; }
1027 1028
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
1110 1111
1111 #if !ENABLE(OILPAN) 1112 #if !ENABLE(OILPAN)
1112 virtual void refExecutionContext() OVERRIDE FINAL { ref(); } 1113 virtual void refExecutionContext() OVERRIDE FINAL { ref(); }
1113 virtual void derefExecutionContext() OVERRIDE FINAL { deref(); } 1114 virtual void derefExecutionContext() OVERRIDE FINAL { deref(); }
1114 #endif 1115 #endif
1115 1116
1116 virtual const KURL& virtualURL() const OVERRIDE FINAL; // Same as url(), but needed for ExecutionContext to implement it without a performance loss for dire ct calls. 1117 virtual const KURL& virtualURL() const OVERRIDE FINAL; // Same as url(), but needed for ExecutionContext to implement it without a performance loss for dire ct calls.
1117 virtual KURL virtualCompleteURL(const String&) const OVERRIDE FINAL; // Same as completeURL() for the same reason as above. 1118 virtual KURL virtualCompleteURL(const String&) const OVERRIDE FINAL; // Same as completeURL() for the same reason as above.
1118 1119
1119 virtual void reportBlockedScriptExecutionToInspector(const String& directive Text) OVERRIDE FINAL; 1120 virtual void reportBlockedScriptExecutionToInspector(const String& directive Text) OVERRIDE FINAL;
1120 virtual void addMessage(MessageSource, MessageLevel, const String& message, const String& sourceURL, unsigned lineNumber, ScriptState*) OVERRIDE FINAL;
1121 void internalAddMessage(MessageSource, MessageLevel, const String& message, const String& sourceURL, unsigned lineNumber, PassRefPtrWillBeRawPtr<ScriptCallS tack>, ScriptState*);
1122 1121
1123 virtual double timerAlignmentInterval() const OVERRIDE FINAL; 1122 virtual double timerAlignmentInterval() const OVERRIDE FINAL;
1124 1123
1125 void updateTitle(const String&); 1124 void updateTitle(const String&);
1126 void updateFocusAppearanceTimerFired(Timer<Document>*); 1125 void updateFocusAppearanceTimerFired(Timer<Document>*);
1127 void updateBaseURL(); 1126 void updateBaseURL();
1128 1127
1129 void executeScriptsWaitingForResourcesTimerFired(Timer<Document>*); 1128 void executeScriptsWaitingForResourcesTimerFired(Timer<Document>*);
1130 1129
1131 void loadEventDelayTimerFired(Timer<Document>*); 1130 void loadEventDelayTimerFired(Timer<Document>*);
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after
1424 Node* eventTargetNodeForDocument(Document*); 1423 Node* eventTargetNodeForDocument(Document*);
1425 1424
1426 } // namespace blink 1425 } // namespace blink
1427 1426
1428 #ifndef NDEBUG 1427 #ifndef NDEBUG
1429 // Outside the WebCore namespace for ease of invocation from gdb. 1428 // Outside the WebCore namespace for ease of invocation from gdb.
1430 void showLiveDocumentInstances(); 1429 void showLiveDocumentInstances();
1431 #endif 1430 #endif
1432 1431
1433 #endif // Document_h 1432 #endif // Document_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698