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

Side by Side Diff: Source/bindings/v8/ScriptDebugServer.h

Issue 272613002: DevTools: implemented scriptFailedToParse protocol event (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 7 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) 2010, Google Inc. All rights reserved. 2 * Copyright (c) 2010, 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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 virtual void quitMessageLoopOnPause() = 0; 117 virtual void quitMessageLoopOnPause() = 0;
118 118
119 static void breakProgramCallback(const v8::FunctionCallbackInfo<v8::Value>&) ; 119 static void breakProgramCallback(const v8::FunctionCallbackInfo<v8::Value>&) ;
120 void handleProgramBreak(v8::Handle<v8::Object> executionState, v8::Handle<v8 ::Value> exception, v8::Handle<v8::Array> hitBreakpoints); 120 void handleProgramBreak(v8::Handle<v8::Object> executionState, v8::Handle<v8 ::Value> exception, v8::Handle<v8::Array> hitBreakpoints);
121 void handleProgramBreak(const v8::Debug::EventDetails&, v8::Handle<v8::Value > exception, v8::Handle<v8::Array> hitBreakpointNumbers); 121 void handleProgramBreak(const v8::Debug::EventDetails&, v8::Handle<v8::Value > exception, v8::Handle<v8::Array> hitBreakpointNumbers);
122 122
123 static void v8DebugEventCallback(const v8::Debug::EventDetails& eventDetails ); 123 static void v8DebugEventCallback(const v8::Debug::EventDetails& eventDetails );
124 void handleV8DebugEvent(const v8::Debug::EventDetails& eventDetails); 124 void handleV8DebugEvent(const v8::Debug::EventDetails& eventDetails);
125 125
126 void dispatchDidParseSource(ScriptDebugListener* listener, v8::Handle<v8::Ob ject> sourceObject); 126 void dispatchDidParseSource(ScriptDebugListener* listener, v8::Handle<v8::Ob ject> sourceObject);
127 void dispatchFailedToParseSource(ScriptDebugListener*, v8::Handle<v8::Object > sourceObject);
127 128
128 void ensureDebuggerScriptCompiled(); 129 void ensureDebuggerScriptCompiled();
129 130
130 PauseOnExceptionsState m_pauseOnExceptionsState; 131 PauseOnExceptionsState m_pauseOnExceptionsState;
131 ScopedPersistent<v8::Object> m_debuggerScript; 132 ScopedPersistent<v8::Object> m_debuggerScript;
132 ScopedPersistent<v8::Object> m_executionState; 133 ScopedPersistent<v8::Object> m_executionState;
133 v8::Handle<v8::Context> m_pausedContext; 134 v8::Handle<v8::Context> m_pausedContext;
134 bool m_breakpointsActivated; 135 bool m_breakpointsActivated;
135 ScopedPersistent<v8::FunctionTemplate> m_breakProgramCallbackTemplate; 136 ScopedPersistent<v8::FunctionTemplate> m_breakProgramCallbackTemplate;
136 HashMap<String, OwnPtr<ScopedPersistent<v8::Script> > > m_compiledScripts; 137 HashMap<String, OwnPtr<ScopedPersistent<v8::Script> > > m_compiledScripts;
(...skipping 12 matching lines...) Expand all
149 PassRefPtr<JavaScriptCallFrame> wrapCallFrames(v8::Handle<v8::Object> execut ionState, int maximumLimit, ScopeInfoDetails); 150 PassRefPtr<JavaScriptCallFrame> wrapCallFrames(v8::Handle<v8::Object> execut ionState, int maximumLimit, ScopeInfoDetails);
150 bool executeSkipPauseRequest(ScriptDebugListener::SkipPauseRequest, v8::Hand le<v8::Object> executionState); 151 bool executeSkipPauseRequest(ScriptDebugListener::SkipPauseRequest, v8::Hand le<v8::Object> executionState);
151 152
152 bool m_runningNestedMessageLoop; 153 bool m_runningNestedMessageLoop;
153 }; 154 };
154 155
155 } // namespace WebCore 156 } // namespace WebCore
156 157
157 158
158 #endif // ScriptDebugServer_h 159 #endif // ScriptDebugServer_h
OLDNEW
« no previous file with comments | « no previous file | Source/bindings/v8/ScriptDebugServer.cpp » ('j') | Source/bindings/v8/ScriptDebugServer.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698