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

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

Issue 2260233002: [DevTools] Migrate v8_inspector/public from String16 to String{View,Buffer}. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: styling Created 4 years, 3 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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 void restore() override; 95 void restore() override;
96 void didCommitLoadForLocalFrame(LocalFrame*) override; 96 void didCommitLoadForLocalFrame(LocalFrame*) override;
97 97
98 private: 98 private:
99 void pauseOnNativeEventIfNeeded(std::unique_ptr<protocol::DictionaryValue> e ventData, bool synchronous); 99 void pauseOnNativeEventIfNeeded(std::unique_ptr<protocol::DictionaryValue> e ventData, bool synchronous);
100 std::unique_ptr<protocol::DictionaryValue> preparePauseOnNativeEventData(con st String& eventName, const String* targetName); 100 std::unique_ptr<protocol::DictionaryValue> preparePauseOnNativeEventData(con st String& eventName, const String* targetName);
101 101
102 protocol::DictionaryValue* eventListenerBreakpoints(); 102 protocol::DictionaryValue* eventListenerBreakpoints();
103 protocol::DictionaryValue* xhrBreakpoints(); 103 protocol::DictionaryValue* xhrBreakpoints();
104 104
105 void descriptionForDOMEvent(Node* target, int breakpointType, bool insertion , protocol::DictionaryValue* description); 105 void breakProgramOnDOMEvent(Node* target, int breakpointType, bool insertion );
106 void updateSubtreeBreakpoints(Node*, uint32_t rootMask, bool set); 106 void updateSubtreeBreakpoints(Node*, uint32_t rootMask, bool set);
107 bool hasBreakpoint(Node*, int type); 107 bool hasBreakpoint(Node*, int type);
108 void setBreakpoint(ErrorString*, const String& eventName, const String& targ etName); 108 void setBreakpoint(ErrorString*, const String& eventName, const String& targ etName);
109 void removeBreakpoint(ErrorString*, const String& eventName, const String& t argetName); 109 void removeBreakpoint(ErrorString*, const String& eventName, const String& t argetName);
110 110
111 void didAddBreakpoint(); 111 void didAddBreakpoint();
112 void didRemoveBreakpoint(); 112 void didRemoveBreakpoint();
113 void setEnabled(bool); 113 void setEnabled(bool);
114 114
115 void eventListeners(v8::Local<v8::Context>, v8::Local<v8::Value>, const Stri ng16& objectGroup, protocol::Array<protocol::DOMDebugger::EventListener>* listen ersArray); 115 std::unique_ptr<protocol::DOMDebugger::EventListener> buildObjectForEventLis tener(v8::Local<v8::Context>, const V8EventListenerInfo&, const v8_inspector::St ringView& objectGroupId);
116 std::unique_ptr<protocol::DOMDebugger::EventListener> buildObjectForEventLis tener(v8::Local<v8::Context>, const V8EventListenerInfo&, const String16& object GroupId);
117 116
118 v8::Isolate* m_isolate; 117 v8::Isolate* m_isolate;
119 Member<InspectorDOMAgent> m_domAgent; 118 Member<InspectorDOMAgent> m_domAgent;
120 v8_inspector::V8InspectorSession* m_v8Session; 119 v8_inspector::V8InspectorSession* m_v8Session;
121 HeapHashMap<Member<Node>, uint32_t> m_domBreakpoints; 120 HeapHashMap<Member<Node>, uint32_t> m_domBreakpoints;
122 }; 121 };
123 122
124 } // namespace blink 123 } // namespace blink
125 124
126 125
127 #endif // !defined(InspectorDOMDebuggerAgent_h) 126 #endif // !defined(InspectorDOMDebuggerAgent_h)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698