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

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

Issue 135703002: Update inspector classes to use OVERRIDE / FINAL when needed (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: No change under web/ Created 6 years, 11 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
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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 class EventTarget; 46 class EventTarget;
47 class InspectorDOMAgent; 47 class InspectorDOMAgent;
48 class InspectorDebuggerAgent; 48 class InspectorDebuggerAgent;
49 class InspectorFrontend; 49 class InspectorFrontend;
50 class InstrumentingAgents; 50 class InstrumentingAgents;
51 class JSONObject; 51 class JSONObject;
52 class Node; 52 class Node;
53 53
54 typedef String ErrorString; 54 typedef String ErrorString;
55 55
56 class InspectorDOMDebuggerAgent : public InspectorBaseAgent<InspectorDOMDebugger Agent>, public InspectorDebuggerAgent::Listener, public InspectorBackendDispatch er::DOMDebuggerCommandHandler { 56 class InspectorDOMDebuggerAgent FINAL : public InspectorBaseAgent<InspectorDOMDe buggerAgent>, public InspectorDebuggerAgent::Listener, public InspectorBackendDi spatcher::DOMDebuggerCommandHandler {
57 WTF_MAKE_NONCOPYABLE(InspectorDOMDebuggerAgent); 57 WTF_MAKE_NONCOPYABLE(InspectorDOMDebuggerAgent);
58 public: 58 public:
59 static PassOwnPtr<InspectorDOMDebuggerAgent> create(InstrumentingAgents*, In spectorCompositeState*, InspectorDOMAgent*, InspectorDebuggerAgent*); 59 static PassOwnPtr<InspectorDOMDebuggerAgent> create(InstrumentingAgents*, In spectorCompositeState*, InspectorDOMAgent*, InspectorDebuggerAgent*);
60 60
61 virtual ~InspectorDOMDebuggerAgent(); 61 virtual ~InspectorDOMDebuggerAgent();
62 62
63 // DOMDebugger API for InspectorFrontend 63 // DOMDebugger API for InspectorFrontend
64 virtual void setXHRBreakpoint(ErrorString*, const String& url); 64 virtual void setXHRBreakpoint(ErrorString*, const String& url) OVERRIDE;
65 virtual void removeXHRBreakpoint(ErrorString*, const String& url); 65 virtual void removeXHRBreakpoint(ErrorString*, const String& url) OVERRIDE;
66 virtual void setEventListenerBreakpoint(ErrorString*, const String& eventNam e); 66 virtual void setEventListenerBreakpoint(ErrorString*, const String& eventNam e) OVERRIDE;
67 virtual void removeEventListenerBreakpoint(ErrorString*, const String& event Name); 67 virtual void removeEventListenerBreakpoint(ErrorString*, const String& event Name) OVERRIDE;
68 virtual void setInstrumentationBreakpoint(ErrorString*, const String& eventN ame); 68 virtual void setInstrumentationBreakpoint(ErrorString*, const String& eventN ame) OVERRIDE;
69 virtual void removeInstrumentationBreakpoint(ErrorString*, const String& eve ntName); 69 virtual void removeInstrumentationBreakpoint(ErrorString*, const String& eve ntName) OVERRIDE;
70 virtual void setDOMBreakpoint(ErrorString*, int nodeId, const String& type); 70 virtual void setDOMBreakpoint(ErrorString*, int nodeId, const String& type) OVERRIDE;
71 virtual void removeDOMBreakpoint(ErrorString*, int nodeId, const String& typ e); 71 virtual void removeDOMBreakpoint(ErrorString*, int nodeId, const String& typ e) OVERRIDE;
72 72
73 // InspectorInstrumentation API 73 // InspectorInstrumentation API
74 void willInsertDOMNode(Node* parent); 74 void willInsertDOMNode(Node* parent);
75 void didInvalidateStyleAttr(Node*); 75 void didInvalidateStyleAttr(Node*);
76 void didInsertDOMNode(Node*); 76 void didInsertDOMNode(Node*);
77 void willRemoveDOMNode(Node*); 77 void willRemoveDOMNode(Node*);
78 void didRemoveDOMNode(Node*); 78 void didRemoveDOMNode(Node*);
79 void willModifyDOMAttr(Element*, const AtomicString&, const AtomicString&); 79 void willModifyDOMAttr(Element*, const AtomicString&, const AtomicString&);
80 void willSendXMLHttpRequest(const String& url); 80 void willSendXMLHttpRequest(const String& url);
81 void didInstallTimer(ExecutionContext*, int timerId, int timeout, bool singl eShot); 81 void didInstallTimer(ExecutionContext*, int timerId, int timeout, bool singl eShot);
82 void didRemoveTimer(ExecutionContext*, int timerId); 82 void didRemoveTimer(ExecutionContext*, int timerId);
83 void willFireTimer(ExecutionContext*, int timerId); 83 void willFireTimer(ExecutionContext*, int timerId);
84 void didRequestAnimationFrame(Document*, int callbackId); 84 void didRequestAnimationFrame(Document*, int callbackId);
85 void didCancelAnimationFrame(Document*, int callbackId); 85 void didCancelAnimationFrame(Document*, int callbackId);
86 void willFireAnimationFrame(Document*, int callbackId); 86 void willFireAnimationFrame(Document*, int callbackId);
87 void willHandleEvent(EventTarget*, const AtomicString& eventType, EventListe ner*, bool useCapture); 87 void willHandleEvent(EventTarget*, const AtomicString& eventType, EventListe ner*, bool useCapture);
88 void didFireWebGLError(const String& errorName); 88 void didFireWebGLError(const String& errorName);
89 void didFireWebGLWarning(); 89 void didFireWebGLWarning();
90 void didFireWebGLErrorOrWarning(const String& message); 90 void didFireWebGLErrorOrWarning(const String& message);
91 void willExecuteCustomElementCallback(Element*); 91 void willExecuteCustomElementCallback(Element*);
92 92
93 void didProcessTask(); 93 void didProcessTask();
94 94
95 virtual void clearFrontend(); 95 virtual void clearFrontend() OVERRIDE;
96 virtual void discardAgent(); 96 virtual void discardAgent() OVERRIDE;
97 97
98 private: 98 private:
99 InspectorDOMDebuggerAgent(InstrumentingAgents*, InspectorCompositeState*, In spectorDOMAgent*, InspectorDebuggerAgent*); 99 InspectorDOMDebuggerAgent(InstrumentingAgents*, InspectorCompositeState*, In spectorDOMAgent*, InspectorDebuggerAgent*);
100 100
101 void pauseOnNativeEventIfNeeded(PassRefPtr<JSONObject> eventData, bool synch ronous); 101 void pauseOnNativeEventIfNeeded(PassRefPtr<JSONObject> eventData, bool synch ronous);
102 PassRefPtr<JSONObject> preparePauseOnNativeEventData(bool isDOMEvent, const String& eventName); 102 PassRefPtr<JSONObject> preparePauseOnNativeEventData(bool isDOMEvent, const String& eventName);
103 103
104 // InspectorDebuggerAgent::Listener implementation. 104 // InspectorDebuggerAgent::Listener implementation.
105 virtual void debuggerWasEnabled(); 105 virtual void debuggerWasEnabled() OVERRIDE;
106 virtual void debuggerWasDisabled(); 106 virtual void debuggerWasDisabled() OVERRIDE;
107 virtual void stepInto(); 107 virtual void stepInto() OVERRIDE;
108 virtual void didPause(); 108 virtual void didPause() OVERRIDE;
109 void disable(); 109 void disable();
110 110
111 void descriptionForDOMEvent(Node* target, int breakpointType, bool insertion , JSONObject* description); 111 void descriptionForDOMEvent(Node* target, int breakpointType, bool insertion , JSONObject* description);
112 void updateSubtreeBreakpoints(Node*, uint32_t rootMask, bool set); 112 void updateSubtreeBreakpoints(Node*, uint32_t rootMask, bool set);
113 bool hasBreakpoint(Node*, int type); 113 bool hasBreakpoint(Node*, int type);
114 void discardBindings(); 114 void discardBindings();
115 void setBreakpoint(ErrorString*, const String& eventName); 115 void setBreakpoint(ErrorString*, const String& eventName);
116 void removeBreakpoint(ErrorString*, const String& eventName); 116 void removeBreakpoint(ErrorString*, const String& eventName);
117 117
118 void clear(); 118 void clear();
119 119
120 InspectorDOMAgent* m_domAgent; 120 InspectorDOMAgent* m_domAgent;
121 InspectorDebuggerAgent* m_debuggerAgent; 121 InspectorDebuggerAgent* m_debuggerAgent;
122 HashMap<Node*, uint32_t> m_domBreakpoints; 122 HashMap<Node*, uint32_t> m_domBreakpoints;
123 bool m_pauseInNextEventListener; 123 bool m_pauseInNextEventListener;
124 }; 124 };
125 125
126 } // namespace WebCore 126 } // namespace WebCore
127 127
128 128
129 #endif // !defined(InspectorDOMDebuggerAgent_h) 129 #endif // !defined(InspectorDOMDebuggerAgent_h)
OLDNEW
« no previous file with comments | « Source/core/inspector/InspectorDOMAgent.h ('k') | Source/core/inspector/InspectorDOMStorageAgent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698