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

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: Fixed Nits 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;
80
81 // InspectorInstrumentation API 80 // InspectorInstrumentation API
82 void willInsertDOMNode(Node* parent); 81 void willInsertDOMNode(Node* parent);
83 void didInvalidateStyleAttr(Node*); 82 void didInvalidateStyleAttr(Node*);
84 void didInsertDOMNode(Node*); 83 void didInsertDOMNode(Node*);
85 void willRemoveDOMNode(Node*); 84 void willRemoveDOMNode(Node*);
86 void didRemoveDOMNode(Node*); 85 void didRemoveDOMNode(Node*);
87 void willModifyDOMAttr(Element*, const AtomicString&, const AtomicString&); 86 void willModifyDOMAttr(Element*, const AtomicString&, const AtomicString&);
88 void willSendXMLHttpRequest(const String& url); 87 void willSendXMLHttpRequest(const String& url);
89 void didInstallTimer(ExecutionContext*, int timerId, int timeout, bool singl eShot); 88 void didInstallTimer(ExecutionContext*, int timerId, int timeout, bool singl eShot);
90 void didRemoveTimer(ExecutionContext*, int timerId); 89 void didRemoveTimer(ExecutionContext*, int timerId);
91 void willFireTimer(ExecutionContext*, int timerId); 90 void willFireTimer(ExecutionContext*, int timerId);
92 void didRequestAnimationFrame(Document*, int callbackId); 91 void didRequestAnimationFrame(Document*, int callbackId);
93 void didCancelAnimationFrame(Document*, int callbackId); 92 void didCancelAnimationFrame(Document*, int callbackId);
94 void willFireAnimationFrame(Document*, int callbackId); 93 void willFireAnimationFrame(Document*, int callbackId);
95 void willHandleEvent(EventTarget*, Event*, EventListener*, bool useCapture); 94 void willHandleEvent(EventTarget*, Event*, EventListener*, bool useCapture);
96 void didFireWebGLError(const String& errorName); 95 void didFireWebGLError(const String& errorName);
97 void didFireWebGLWarning(); 96 void didFireWebGLWarning();
98 void didFireWebGLErrorOrWarning(const String& message); 97 void didFireWebGLErrorOrWarning(const String& message);
99 void willExecuteCustomElementCallback(Element*); 98 void willExecuteCustomElementCallback(Element*);
100 void willCloseWindow(); 99 void willCloseWindow();
101 100
102 void didProcessTask(); 101 void didProcessTask();
103 102
104 virtual void clearFrontend() OVERRIDE; 103 virtual void clearFrontend() override;
105 virtual void discardAgent() OVERRIDE; 104 virtual void discardAgent() override;
106 105
107 private: 106 private:
108 InspectorDOMDebuggerAgent(InspectorDOMAgent*, InspectorDebuggerAgent*); 107 InspectorDOMDebuggerAgent(InspectorDOMAgent*, InspectorDebuggerAgent*);
109 108
110 void pauseOnNativeEventIfNeeded(PassRefPtr<JSONObject> eventData, bool synch ronous); 109 void pauseOnNativeEventIfNeeded(PassRefPtr<JSONObject> eventData, bool synch ronous);
111 PassRefPtr<JSONObject> preparePauseOnNativeEventData(const String& eventName , const String* targetName); 110 PassRefPtr<JSONObject> preparePauseOnNativeEventData(const String& eventName , const String* targetName);
112 111
113 // InspectorDOMAgent::Listener implementation. 112 // InspectorDOMAgent::Listener implementation.
114 virtual void domAgentWasEnabled() OVERRIDE; 113 virtual void domAgentWasEnabled() override;
115 virtual void domAgentWasDisabled() OVERRIDE; 114 virtual void domAgentWasDisabled() override;
116 115
117 // InspectorDebuggerAgent::Listener implementation. 116 // InspectorDebuggerAgent::Listener implementation.
118 virtual void debuggerWasEnabled() OVERRIDE; 117 virtual void debuggerWasEnabled() override;
119 virtual void debuggerWasDisabled() OVERRIDE; 118 virtual void debuggerWasDisabled() override;
120 virtual void stepInto() OVERRIDE; 119 virtual void stepInto() override;
121 virtual void didPause() OVERRIDE; 120 virtual void didPause() override;
122 virtual bool canPauseOnPromiseEvent() OVERRIDE; 121 virtual bool canPauseOnPromiseEvent() override;
123 virtual void didCreatePromise() OVERRIDE; 122 virtual void didCreatePromise() override;
124 virtual void didResolvePromise() OVERRIDE; 123 virtual void didResolvePromise() override;
125 virtual void didRejectPromise() OVERRIDE; 124 virtual void didRejectPromise() override;
126 void disable(); 125 void disable();
127 126
128 void descriptionForDOMEvent(Node* target, int breakpointType, bool insertion , JSONObject* description); 127 void descriptionForDOMEvent(Node* target, int breakpointType, bool insertion , JSONObject* description);
129 void updateSubtreeBreakpoints(Node*, uint32_t rootMask, bool set); 128 void updateSubtreeBreakpoints(Node*, uint32_t rootMask, bool set);
130 bool hasBreakpoint(Node*, int type); 129 bool hasBreakpoint(Node*, int type);
131 void setBreakpoint(ErrorString*, const String& eventName, const String* targ etName); 130 void setBreakpoint(ErrorString*, const String& eventName, const String* targ etName);
132 void removeBreakpoint(ErrorString*, const String& eventName, const String* t argetName); 131 void removeBreakpoint(ErrorString*, const String& eventName, const String* t argetName);
133 132
134 void clear(); 133 void clear();
135 134
136 RawPtrWillBeMember<InspectorDOMAgent> m_domAgent; 135 RawPtrWillBeMember<InspectorDOMAgent> m_domAgent;
137 RawPtrWillBeMember<InspectorDebuggerAgent> m_debuggerAgent; 136 RawPtrWillBeMember<InspectorDebuggerAgent> m_debuggerAgent;
138 WillBeHeapHashMap<RawPtrWillBeMember<Node>, uint32_t> m_domBreakpoints; 137 WillBeHeapHashMap<RawPtrWillBeMember<Node>, uint32_t> m_domBreakpoints;
139 bool m_pauseInNextEventListener; 138 bool m_pauseInNextEventListener;
140 }; 139 };
141 140
142 } // namespace blink 141 } // namespace blink
143 142
144 143
145 #endif // !defined(InspectorDOMDebuggerAgent_h) 144 #endif // !defined(InspectorDOMDebuggerAgent_h)
OLDNEW
« no previous file with comments | « Source/core/inspector/InspectorDOMAgent.cpp ('k') | Source/core/inspector/InspectorDOMStorageAgent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698