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

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

Issue 2656633004: DevTools: migrate v8 console client to the new API. (Closed)
Patch Set: rebaselined Created 3 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
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 quitMessageLoopOnPause() override; 95 void quitMessageLoopOnPause() override;
96 void muteMetrics(int contextGroupId) override; 96 void muteMetrics(int contextGroupId) override;
97 void unmuteMetrics(int contextGroupId) override; 97 void unmuteMetrics(int contextGroupId) override;
98 v8::Local<v8::Context> ensureDefaultContextInGroup( 98 v8::Local<v8::Context> ensureDefaultContextInGroup(
99 int contextGroupId) override; 99 int contextGroupId) override;
100 void beginEnsureAllContextsInGroup(int contextGroupId) override; 100 void beginEnsureAllContextsInGroup(int contextGroupId) override;
101 void endEnsureAllContextsInGroup(int contextGroupId) override; 101 void endEnsureAllContextsInGroup(int contextGroupId) override;
102 bool canExecuteScripts(int contextGroupId) override; 102 bool canExecuteScripts(int contextGroupId) override;
103 void runIfWaitingForDebugger(int contextGroupId) override; 103 void runIfWaitingForDebugger(int contextGroupId) override;
104 void consoleAPIMessage(int contextGroupId, 104 void consoleAPIMessage(int contextGroupId,
105 v8_inspector::V8ConsoleAPIType, 105 v8::Isolate::MessageErrorLevel,
106 const v8_inspector::StringView& message, 106 const v8_inspector::StringView& message,
107 const v8_inspector::StringView& url, 107 const v8_inspector::StringView& url,
108 unsigned lineNumber, 108 unsigned lineNumber,
109 unsigned columnNumber, 109 unsigned columnNumber,
110 v8_inspector::V8StackTrace*) override; 110 v8_inspector::V8StackTrace*) override;
111 void consoleClear(int contextGroupId) override;
111 void installAdditionalCommandLineAPI(v8::Local<v8::Context>, 112 void installAdditionalCommandLineAPI(v8::Local<v8::Context>,
112 v8::Local<v8::Object>) override; 113 v8::Local<v8::Object>) override;
113 v8::MaybeLocal<v8::Value> memoryInfo(v8::Isolate*, 114 v8::MaybeLocal<v8::Value> memoryInfo(v8::Isolate*,
114 v8::Local<v8::Context>) override; 115 v8::Local<v8::Context>) override;
115 116
116 static void querySelectorCallback(const v8::FunctionCallbackInfo<v8::Value>&); 117 static void querySelectorCallback(const v8::FunctionCallbackInfo<v8::Value>&);
117 static void querySelectorAllCallback( 118 static void querySelectorAllCallback(
118 const v8::FunctionCallbackInfo<v8::Value>&); 119 const v8::FunctionCallbackInfo<v8::Value>&);
119 static void xpathSelectorCallback(const v8::FunctionCallbackInfo<v8::Value>&); 120 static void xpathSelectorCallback(const v8::FunctionCallbackInfo<v8::Value>&);
120 121
121 std::unique_ptr<ClientMessageLoop> m_clientMessageLoop; 122 std::unique_ptr<ClientMessageLoop> m_clientMessageLoop;
122 std::unique_ptr<InspectorTaskRunner> m_taskRunner; 123 std::unique_ptr<InspectorTaskRunner> m_taskRunner;
123 bool m_paused; 124 bool m_paused;
124 static MainThreadDebugger* s_instance; 125 static MainThreadDebugger* s_instance;
125 }; 126 };
126 127
127 } // namespace blink 128 } // namespace blink
128 129
129 #endif // MainThreadDebugger_h 130 #endif // MainThreadDebugger_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698