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

Side by Side Diff: Source/core/inspector/InspectorDOMDebuggerAgent.h

Issue 638553002: Replace FINAL and OVERRIDE with their C++11 counterparts in Source/core/inspector (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 2 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) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 class EventTarget; 48 class EventTarget;
49 class InspectorDOMAgent; 49 class InspectorDOMAgent;
50 class InspectorDebuggerAgent; 50 class InspectorDebuggerAgent;
51 class InspectorFrontend; 51 class InspectorFrontend;
52 class InstrumentingAgents; 52 class InstrumentingAgents;
53 class JSONObject; 53 class JSONObject;
54 class Node; 54 class Node;
55 55
56 typedef String ErrorString; 56 typedef String ErrorString;
57 57
58 class InspectorDOMDebuggerAgent FINAL 58 class InspectorDOMDebuggerAgent final
59 : public InspectorBaseAgent<InspectorDOMDebuggerAgent> 59 : public InspectorBaseAgent<InspectorDOMDebuggerAgent>
60 , public InspectorDebuggerAgent::Listener 60 , public InspectorDebuggerAgent::Listener
61 , public InspectorDOMAgent::Listener 61 , public InspectorDOMAgent::Listener
62 , public InspectorBackendDispatcher::DOMDebuggerCommandHandler { 62 , public InspectorBackendDispatcher::DOMDebuggerCommandHandler {
63 WTF_MAKE_NONCOPYABLE(InspectorDOMDebuggerAgent); 63 WTF_MAKE_NONCOPYABLE(InspectorDOMDebuggerAgent);
64 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(InspectorDOMDebuggerAgent); 64 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(InspectorDOMDebuggerAgent);
65 public: 65 public:
66 static PassOwnPtrWillBeRawPtr<InspectorDOMDebuggerAgent> create(InspectorDOM Agent*, InspectorDebuggerAgent*); 66 static PassOwnPtrWillBeRawPtr<InspectorDOMDebuggerAgent> create(InspectorDOM Agent*, InspectorDebuggerAgent*);
67 67
68 virtual ~InspectorDOMDebuggerAgent(); 68 virtual ~InspectorDOMDebuggerAgent();
69 virtual void trace(Visitor*) OVERRIDE; 69 virtual void trace(Visitor*) override;
70 70
71 // DOMDebugger API for InspectorFrontend 71 // DOMDebugger API for InspectorFrontend
72 virtual void setXHRBreakpoint(ErrorString*, const String& url) OVERRIDE; 72 virtual void setXHRBreakpoint(ErrorString*, const String& url) override;
73 virtual void removeXHRBreakpoint(ErrorString*, const String& url) OVERRIDE; 73 virtual void removeXHRBreakpoint(ErrorString*, const String& url) override;
74 virtual void setEventListenerBreakpoint(ErrorString*, const String& eventNam e, const String* targetName) OVERRIDE; 74 virtual void setEventListenerBreakpoint(ErrorString*, const String& eventNam e, const String* targetName) override;
75 virtual void removeEventListenerBreakpoint(ErrorString*, const String& event Name, const String* targetName) OVERRIDE; 75 virtual void removeEventListenerBreakpoint(ErrorString*, const String& event Name, const String* targetName) override;
76 virtual void setInstrumentationBreakpoint(ErrorString*, const String& eventN ame) OVERRIDE; 76 virtual void setInstrumentationBreakpoint(ErrorString*, const String& eventN ame) override;
77 virtual void removeInstrumentationBreakpoint(ErrorString*, const String& eve ntName) OVERRIDE; 77 virtual void removeInstrumentationBreakpoint(ErrorString*, const String& eve ntName) override;
78 virtual void setDOMBreakpoint(ErrorString*, int nodeId, const String& type) OVERRIDE; 78 virtual void setDOMBreakpoint(ErrorString*, int nodeId, const String& type) override;
79 virtual void removeDOMBreakpoint(ErrorString*, int nodeId, const String& typ e) OVERRIDE; 79 virtual void removeDOMBreakpoint(ErrorString*, int nodeId, const String& typ e) override;
Mike West 2014/10/07 13:37:15 Nit: Trailing whitespace?
MRV 2014/10/07 13:59:48 Done.
80 80
81 // InspectorInstrumentation API 81 // InspectorInstrumentation API
82 void willInsertDOMNode(Node* parent); 82 void willInsertDOMNode(Node* parent);
83 void didInvalidateStyleAttr(Node*); 83 void didInvalidateStyleAttr(Node*);
84 void didInsertDOMNode(Node*); 84 void didInsertDOMNode(Node*);
85 void willRemoveDOMNode(Node*); 85 void willRemoveDOMNode(Node*);
86 void didRemoveDOMNode(Node*); 86 void didRemoveDOMNode(Node*);
87 void willModifyDOMAttr(Element*, const AtomicString&, const AtomicString&); 87 void willModifyDOMAttr(Element*, const AtomicString&, const AtomicString&);
88 void willSendXMLHttpRequest(const String& url); 88 void willSendXMLHttpRequest(const String& url);
89 void didInstallTimer(ExecutionContext*, int timerId, int timeout, bool singl eShot); 89 void didInstallTimer(ExecutionContext*, int timerId, int timeout, bool singl eShot);
90 void didRemoveTimer(ExecutionContext*, int timerId); 90 void didRemoveTimer(ExecutionContext*, int timerId);
91 void willFireTimer(ExecutionContext*, int timerId); 91 void willFireTimer(ExecutionContext*, int timerId);
92 void didRequestAnimationFrame(Document*, int callbackId); 92 void didRequestAnimationFrame(Document*, int callbackId);
93 void didCancelAnimationFrame(Document*, int callbackId); 93 void didCancelAnimationFrame(Document*, int callbackId);
94 void willFireAnimationFrame(Document*, int callbackId); 94 void willFireAnimationFrame(Document*, int callbackId);
95 void willHandleEvent(EventTarget*, Event*, EventListener*, bool useCapture); 95 void willHandleEvent(EventTarget*, Event*, EventListener*, bool useCapture);
96 void didFireWebGLError(const String& errorName); 96 void didFireWebGLError(const String& errorName);
97 void didFireWebGLWarning(); 97 void didFireWebGLWarning();
98 void didFireWebGLErrorOrWarning(const String& message); 98 void didFireWebGLErrorOrWarning(const String& message);
99 void willExecuteCustomElementCallback(Element*); 99 void willExecuteCustomElementCallback(Element*);
100 void willCloseWindow(); 100 void willCloseWindow();
101 101
102 void didProcessTask(); 102 void didProcessTask();
103 103
104 virtual void clearFrontend() OVERRIDE; 104 virtual void clearFrontend() override;
105 virtual void discardAgent() OVERRIDE; 105 virtual void discardAgent() override;
106 106
107 private: 107 private:
108 InspectorDOMDebuggerAgent(InspectorDOMAgent*, InspectorDebuggerAgent*); 108 InspectorDOMDebuggerAgent(InspectorDOMAgent*, InspectorDebuggerAgent*);
109 109
110 void pauseOnNativeEventIfNeeded(PassRefPtr<JSONObject> eventData, bool synch ronous); 110 void pauseOnNativeEventIfNeeded(PassRefPtr<JSONObject> eventData, bool synch ronous);
111 PassRefPtr<JSONObject> preparePauseOnNativeEventData(const String& eventName , const String* targetName); 111 PassRefPtr<JSONObject> preparePauseOnNativeEventData(const String& eventName , const String* targetName);
112 112
113 // InspectorDOMAgent::Listener implementation. 113 // InspectorDOMAgent::Listener implementation.
114 virtual void domAgentWasEnabled() OVERRIDE; 114 virtual void domAgentWasEnabled() override;
115 virtual void domAgentWasDisabled() OVERRIDE; 115 virtual void domAgentWasDisabled() override;
116 116
117 // InspectorDebuggerAgent::Listener implementation. 117 // InspectorDebuggerAgent::Listener implementation.
118 virtual void debuggerWasEnabled() OVERRIDE; 118 virtual void debuggerWasEnabled() override;
119 virtual void debuggerWasDisabled() OVERRIDE; 119 virtual void debuggerWasDisabled() override;
120 virtual void stepInto() OVERRIDE; 120 virtual void stepInto() override;
121 virtual void didPause() OVERRIDE; 121 virtual void didPause() override;
122 virtual bool canPauseOnPromiseEvent() OVERRIDE; 122 virtual bool canPauseOnPromiseEvent() override;
123 virtual void didCreatePromise() OVERRIDE; 123 virtual void didCreatePromise() override;
124 virtual void didResolvePromise() OVERRIDE; 124 virtual void didResolvePromise() override;
125 virtual void didRejectPromise() OVERRIDE; 125 virtual void didRejectPromise() override;
126 void disable(); 126 void disable();
127 127
128 void descriptionForDOMEvent(Node* target, int breakpointType, bool insertion , JSONObject* description); 128 void descriptionForDOMEvent(Node* target, int breakpointType, bool insertion , JSONObject* description);
129 void updateSubtreeBreakpoints(Node*, uint32_t rootMask, bool set); 129 void updateSubtreeBreakpoints(Node*, uint32_t rootMask, bool set);
130 bool hasBreakpoint(Node*, int type); 130 bool hasBreakpoint(Node*, int type);
131 void setBreakpoint(ErrorString*, const String& eventName, const String* targ etName); 131 void setBreakpoint(ErrorString*, const String& eventName, const String* targ etName);
132 void removeBreakpoint(ErrorString*, const String& eventName, const String* t argetName); 132 void removeBreakpoint(ErrorString*, const String& eventName, const String* t argetName);
133 133
134 void clear(); 134 void clear();
135 135
136 RawPtrWillBeMember<InspectorDOMAgent> m_domAgent; 136 RawPtrWillBeMember<InspectorDOMAgent> m_domAgent;
137 RawPtrWillBeMember<InspectorDebuggerAgent> m_debuggerAgent; 137 RawPtrWillBeMember<InspectorDebuggerAgent> m_debuggerAgent;
138 WillBeHeapHashMap<RawPtrWillBeMember<Node>, uint32_t> m_domBreakpoints; 138 WillBeHeapHashMap<RawPtrWillBeMember<Node>, uint32_t> m_domBreakpoints;
139 bool m_pauseInNextEventListener; 139 bool m_pauseInNextEventListener;
140 }; 140 };
141 141
142 } // namespace blink 142 } // namespace blink
143 143
144 144
145 #endif // !defined(InspectorDOMDebuggerAgent_h) 145 #endif // !defined(InspectorDOMDebuggerAgent_h)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698