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

Side by Side Diff: src/inspector/injected-script.h

Issue 2396193002: [inspector] move changeBreakpointState from debugger-script to native (Closed)
Patch Set: rebased Created 4 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
« no previous file with comments | « src/inspector/debugger_script_externs.js ('k') | src/inspector/injected-script.cc » ('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) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 virtual ~Scope(); 119 virtual ~Scope();
120 virtual void findInjectedScript(V8InspectorSessionImpl*) = 0; 120 virtual void findInjectedScript(V8InspectorSessionImpl*) = 0;
121 121
122 ErrorString* m_errorString; 122 ErrorString* m_errorString;
123 V8InspectorImpl* m_inspector; 123 V8InspectorImpl* m_inspector;
124 int m_contextGroupId; 124 int m_contextGroupId;
125 InjectedScript* m_injectedScript; 125 InjectedScript* m_injectedScript;
126 126
127 private: 127 private:
128 void cleanup(); 128 void cleanup();
129 V8Debugger::PauseOnExceptionsState setPauseOnExceptionsState( 129 v8::DebugInterface::ExceptionBreakState setPauseOnExceptionsState(
130 V8Debugger::PauseOnExceptionsState); 130 v8::DebugInterface::ExceptionBreakState);
131 131
132 v8::HandleScope m_handleScope; 132 v8::HandleScope m_handleScope;
133 v8::TryCatch m_tryCatch; 133 v8::TryCatch m_tryCatch;
134 v8::Local<v8::Context> m_context; 134 v8::Local<v8::Context> m_context;
135 std::unique_ptr<V8Console::CommandLineAPIScope> m_commandLineAPIScope; 135 std::unique_ptr<V8Console::CommandLineAPIScope> m_commandLineAPIScope;
136 bool m_ignoreExceptionsAndMuteConsole; 136 bool m_ignoreExceptionsAndMuteConsole;
137 V8Debugger::PauseOnExceptionsState m_previousPauseOnExceptionsState; 137 v8::DebugInterface::ExceptionBreakState m_previousPauseOnExceptionsState;
138 bool m_userGesture; 138 bool m_userGesture;
139 }; 139 };
140 140
141 class ContextScope : public Scope { 141 class ContextScope : public Scope {
142 public: 142 public:
143 ContextScope(ErrorString*, V8InspectorImpl*, int contextGroupId, 143 ContextScope(ErrorString*, V8InspectorImpl*, int contextGroupId,
144 int executionContextId); 144 int executionContextId);
145 ~ContextScope(); 145 ~ContextScope();
146 146
147 private: 147 private:
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 v8::Global<v8::Value> m_lastEvaluationResult; 198 v8::Global<v8::Value> m_lastEvaluationResult;
199 std::unique_ptr<InjectedScriptNative> m_native; 199 std::unique_ptr<InjectedScriptNative> m_native;
200 v8::Global<v8::Object> m_commandLineAPI; 200 v8::Global<v8::Object> m_commandLineAPI;
201 201
202 DISALLOW_COPY_AND_ASSIGN(InjectedScript); 202 DISALLOW_COPY_AND_ASSIGN(InjectedScript);
203 }; 203 };
204 204
205 } // namespace v8_inspector 205 } // namespace v8_inspector
206 206
207 #endif // V8_INSPECTOR_INJECTEDSCRIPT_H_ 207 #endif // V8_INSPECTOR_INJECTEDSCRIPT_H_
OLDNEW
« no previous file with comments | « src/inspector/debugger_script_externs.js ('k') | src/inspector/injected-script.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698