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

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

Issue 376213002: DevTools: Make FrameConsole methods accept ConsoleMessage objects. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@scriptFailedToParse
Patch Set: Created 6 years, 5 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 916 matching lines...) Expand 10 before | Expand all | Expand 10 after
927 PassRefPtrWillBeRawPtr<Touch> createTouch(LocalDOMWindow*, EventTarget*, int identifier, double pageX, double pageY, double screenX, double screenY, double radiusX, double radiusY, float rotationAngle, float force) const; 927 PassRefPtrWillBeRawPtr<Touch> createTouch(LocalDOMWindow*, EventTarget*, int identifier, double pageX, double pageY, double screenX, double screenY, double radiusX, double radiusY, float rotationAngle, float force) const;
928 PassRefPtrWillBeRawPtr<TouchList> createTouchList(WillBeHeapVector<RefPtrWil lBeMember<Touch> >&) const; 928 PassRefPtrWillBeRawPtr<TouchList> createTouchList(WillBeHeapVector<RefPtrWil lBeMember<Touch> >&) const;
929 929
930 const DocumentTiming& timing() const { return m_documentTiming; } 930 const DocumentTiming& timing() const { return m_documentTiming; }
931 931
932 int requestAnimationFrame(PassOwnPtr<RequestAnimationFrameCallback>); 932 int requestAnimationFrame(PassOwnPtr<RequestAnimationFrameCallback>);
933 void cancelAnimationFrame(int id); 933 void cancelAnimationFrame(int id);
934 void serviceScriptedAnimations(double monotonicAnimationStartTime); 934 void serviceScriptedAnimations(double monotonicAnimationStartTime);
935 935
936 virtual EventTarget* errorEventTarget() OVERRIDE FINAL; 936 virtual EventTarget* errorEventTarget() OVERRIDE FINAL;
937 virtual void logExceptionToConsole(const String& errorMessage, const String& sourceURL, int lineNumber, int columnNumber, PassRefPtrWillBeRawPtr<ScriptCallS tack>) OVERRIDE FINAL; 937 virtual void logExceptionToConsole(PassRefPtr<ConsoleMessage>) OVERRIDE FINA L;
938 938
939 void initDNSPrefetch(); 939 void initDNSPrefetch();
940 940
941 bool isInDocumentWrite() { return m_writeRecursionDepth > 0; } 941 bool isInDocumentWrite() { return m_writeRecursionDepth > 0; }
942 942
943 IntSize initialViewportSize() const; 943 IntSize initialViewportSize() const;
944 944
945 // There are currently two parallel autosizing implementations: TextAutosize r and FastTextAutosizer. 945 // There are currently two parallel autosizing implementations: TextAutosize r and FastTextAutosizer.
946 // See http://tinyurl.com/chromium-fast-autosizer for more details. 946 // See http://tinyurl.com/chromium-fast-autosizer for more details.
947 TextAutosizer* textAutosizer(); 947 TextAutosizer* textAutosizer();
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
992 const WillBeHeapVector<RefPtrWillBeMember<Element> >& topLayerElements() con st { return m_topLayerElements; } 992 const WillBeHeapVector<RefPtrWillBeMember<Element> >& topLayerElements() con st { return m_topLayerElements; }
993 HTMLDialogElement* activeModalDialog() const; 993 HTMLDialogElement* activeModalDialog() const;
994 994
995 // A non-null m_templateDocumentHost implies that |this| was created by ensu reTemplateDocument(). 995 // A non-null m_templateDocumentHost implies that |this| was created by ensu reTemplateDocument().
996 bool isTemplateDocument() const { return !!m_templateDocumentHost; } 996 bool isTemplateDocument() const { return !!m_templateDocumentHost; }
997 Document& ensureTemplateDocument(); 997 Document& ensureTemplateDocument();
998 Document* templateDocumentHost() { return m_templateDocumentHost; } 998 Document* templateDocumentHost() { return m_templateDocumentHost; }
999 999
1000 void didAssociateFormControl(Element*); 1000 void didAssociateFormControl(Element*);
1001 1001
1002 void addConsoleMessageWithRequestIdentifier(MessageSource, MessageLevel, con st String& message, unsigned long requestIdentifier); 1002 void addConsoleMessageWithRequestIdentifier(PassRefPtr<ConsoleMessage>);
1003 1003
1004 virtual LocalDOMWindow* executingWindow() OVERRIDE FINAL; 1004 virtual LocalDOMWindow* executingWindow() OVERRIDE FINAL;
1005 LocalFrame* executingFrame(); 1005 LocalFrame* executingFrame();
1006 1006
1007 DocumentLifecycleNotifier& lifecycleNotifier(); 1007 DocumentLifecycleNotifier& lifecycleNotifier();
1008 DocumentLifecycle& lifecycle() { return m_lifecycle; } 1008 DocumentLifecycle& lifecycle() { return m_lifecycle; }
1009 bool isActive() const { return m_lifecycle.isActive(); } 1009 bool isActive() const { return m_lifecycle.isActive(); }
1010 bool isStopped() const { return m_lifecycle.state() == DocumentLifecycle::St opped; } 1010 bool isStopped() const { return m_lifecycle.state() == DocumentLifecycle::St opped; }
1011 bool isDisposed() const { return m_lifecycle.state() == DocumentLifecycle::D isposed; } 1011 bool isDisposed() const { return m_lifecycle.state() == DocumentLifecycle::D isposed; }
1012 1012
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
1091 1091
1092 #if !ENABLE(OILPAN) 1092 #if !ENABLE(OILPAN)
1093 virtual void refExecutionContext() OVERRIDE FINAL { ref(); } 1093 virtual void refExecutionContext() OVERRIDE FINAL { ref(); }
1094 virtual void derefExecutionContext() OVERRIDE FINAL { deref(); } 1094 virtual void derefExecutionContext() OVERRIDE FINAL { deref(); }
1095 #endif 1095 #endif
1096 1096
1097 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. 1097 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.
1098 virtual KURL virtualCompleteURL(const String&) const OVERRIDE FINAL; // Same as completeURL() for the same reason as above. 1098 virtual KURL virtualCompleteURL(const String&) const OVERRIDE FINAL; // Same as completeURL() for the same reason as above.
1099 1099
1100 virtual void reportBlockedScriptExecutionToInspector(const String& directive Text) OVERRIDE FINAL; 1100 virtual void reportBlockedScriptExecutionToInspector(const String& directive Text) OVERRIDE FINAL;
1101 virtual void addMessage(MessageSource, MessageLevel, const String& message, const String& sourceURL, unsigned lineNumber, ScriptState*) OVERRIDE FINAL; 1101 virtual void addMessage(PassRefPtr<ConsoleMessage>) OVERRIDE FINAL;
1102 void internalAddMessage(MessageSource, MessageLevel, const String& message, const String& sourceURL, unsigned lineNumber, PassRefPtrWillBeRawPtr<ScriptCallS tack>, ScriptState*); 1102 void internalAddMessage(PassRefPtr<ConsoleMessage>);
1103 1103
1104 virtual double timerAlignmentInterval() const OVERRIDE FINAL; 1104 virtual double timerAlignmentInterval() const OVERRIDE FINAL;
1105 1105
1106 void updateTitle(const String&); 1106 void updateTitle(const String&);
1107 void updateFocusAppearanceTimerFired(Timer<Document>*); 1107 void updateFocusAppearanceTimerFired(Timer<Document>*);
1108 void updateBaseURL(); 1108 void updateBaseURL();
1109 1109
1110 void executeScriptsWaitingForResourcesTimerFired(Timer<Document>*); 1110 void executeScriptsWaitingForResourcesTimerFired(Timer<Document>*);
1111 1111
1112 void loadEventDelayTimerFired(Timer<Document>*); 1112 void loadEventDelayTimerFired(Timer<Document>*);
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after
1409 Node* eventTargetNodeForDocument(Document*); 1409 Node* eventTargetNodeForDocument(Document*);
1410 1410
1411 } // namespace WebCore 1411 } // namespace WebCore
1412 1412
1413 #ifndef NDEBUG 1413 #ifndef NDEBUG
1414 // Outside the WebCore namespace for ease of invocation from gdb. 1414 // Outside the WebCore namespace for ease of invocation from gdb.
1415 void showLiveDocumentInstances(); 1415 void showLiveDocumentInstances();
1416 #endif 1416 #endif
1417 1417
1418 #endif // Document_h 1418 #endif // Document_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698