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

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

Issue 300393002: Merge DevTools Refactor CL to Blink36 (Closed) Base URL: svn://svn.chromium.org/blink/branches/dart/1985
Patch Set: PTAL Created 6 years, 6 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
« no previous file with comments | « Source/core/inspector/PageRuntimeAgent.cpp ('k') | Source/core/inspector/WorkerDebuggerAgent.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2008 Apple Inc. All rights reserved.
3 * Copyright (C) 2010 Google Inc. All rights reserved. 3 * Copyright (C) 2010 Google Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 20 matching lines...) Expand all
31 #define ScriptDebugListener_h 31 #define ScriptDebugListener_h
32 32
33 33
34 #include "bindings/common/ScriptState.h" 34 #include "bindings/common/ScriptState.h"
35 #include "wtf/Forward.h" 35 #include "wtf/Forward.h"
36 #include "wtf/Vector.h" 36 #include "wtf/Vector.h"
37 #include "wtf/text/WTFString.h" 37 #include "wtf/text/WTFString.h"
38 38
39 namespace WebCore { 39 namespace WebCore {
40 class ScriptValue; 40 class ScriptValue;
41 class JavaScriptCallFrame; 41 class StackTrace;
42 class ScriptCallFrame;
42 43
43 class ScriptDebugListener { 44 class ScriptDebugListener {
44 public: 45 public:
45 class Script { 46 class Script {
46 public: 47 public:
47 Script() 48 Script()
48 : startLine(0) 49 : startLine(0)
49 , startColumn(0) 50 , startColumn(0)
50 , endLine(0) 51 , endLine(0)
51 , endColumn(0) 52 , endColumn(0)
(...skipping 11 matching lines...) Expand all
63 int endColumn; 64 int endColumn;
64 bool isContentScript; 65 bool isContentScript;
65 String language; 66 String language;
66 int libraryId; 67 int libraryId;
67 }; 68 };
68 69
69 virtual ~ScriptDebugListener() { } 70 virtual ~ScriptDebugListener() { }
70 71
71 virtual void didParseSource(const String& scriptId, const Script&) = 0; 72 virtual void didParseSource(const String& scriptId, const Script&) = 0;
72 virtual void failedToParseSource(const String& url, const String& data, int firstLine, int errorLine, const String& errorMessage) = 0; 73 virtual void failedToParseSource(const String& url, const String& data, int firstLine, int errorLine, const String& errorMessage) = 0;
73 virtual void didPause(ScriptState*, const ScriptValue& callFrames, const Scr iptValue& exception, const Vector<String>& hitBreakpoints) = 0; 74 virtual void didPause(ScriptState*, const StackTrace& callFrames, const Scri ptValue& exception, const Vector<String>& hitBreakpoints) = 0;
74 virtual void didContinue() = 0; 75 virtual void didContinue() = 0;
75 76
76 enum SkipPauseRequest { 77 enum SkipPauseRequest {
77 NoSkip, 78 NoSkip,
78 Continue, 79 Continue,
79 StepInto, 80 StepInto,
80 StepOut 81 StepOut
81 }; 82 };
82 83
83 virtual SkipPauseRequest shouldSkipExceptionPause(RefPtr<JavaScriptCallFrame >& topFrame) = 0; 84 virtual SkipPauseRequest shouldSkipExceptionPause(const ScriptCallFrame& top Frame) = 0;
84 virtual SkipPauseRequest shouldSkipBreakpointPause(RefPtr<JavaScriptCallFram e>& topFrame) = 0; 85 virtual SkipPauseRequest shouldSkipBreakpointPause(const ScriptCallFrame& to pFrame) = 0;
85 virtual SkipPauseRequest shouldSkipStepPause(RefPtr<JavaScriptCallFrame>& to pFrame) = 0; 86 virtual SkipPauseRequest shouldSkipStepPause(const ScriptCallFrame& topFrame ) = 0;
86 }; 87 };
87 88
88 } // namespace WebCore 89 } // namespace WebCore
89 90
90 91
91 #endif // ScriptDebugListener_h 92 #endif // ScriptDebugListener_h
OLDNEW
« no previous file with comments | « Source/core/inspector/PageRuntimeAgent.cpp ('k') | Source/core/inspector/WorkerDebuggerAgent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698