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

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

Issue 2035653006: [DevTools] Move Console to v8 inspector. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: improved api a bit Created 4 years, 5 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 bool isWorker() override { return false; } 65 bool isWorker() override { return false; }
66 void setClientMessageLoop(std::unique_ptr<ClientMessageLoop>); 66 void setClientMessageLoop(std::unique_ptr<ClientMessageLoop>);
67 int contextGroupId(LocalFrame*); 67 int contextGroupId(LocalFrame*);
68 void didClearContextsForFrame(LocalFrame*); 68 void didClearContextsForFrame(LocalFrame*);
69 void contextCreated(ScriptState*, LocalFrame*, SecurityOrigin*); 69 void contextCreated(ScriptState*, LocalFrame*, SecurityOrigin*);
70 void contextWillBeDestroyed(ScriptState*); 70 void contextWillBeDestroyed(ScriptState*);
71 71
72 void installAdditionalCommandLineAPI(v8::Local<v8::Context>, v8::Local<v8::O bject>) override; 72 void installAdditionalCommandLineAPI(v8::Local<v8::Context>, v8::Local<v8::O bject>) override;
73 73
74 v8::MaybeLocal<v8::Value> memoryInfo(v8::Isolate*, v8::Local<v8::Context>) o verride; 74 v8::MaybeLocal<v8::Value> memoryInfo(v8::Isolate*, v8::Local<v8::Context>) o verride;
75 protected: 75 void messageAddedToConsole(int contextGroupId, MessageSource, MessageLevel, const String16& message, const String16& url, unsigned lineNumber, unsigned colu mnNumber, V8StackTrace*) override;
76 void reportMessageToConsole(v8::Local<v8::Context>, ConsoleMessage*) overrid e;
77 76
78 private: 77 private:
79 // V8DebuggerClient implementation. 78 // V8DebuggerClient implementation.
80 void runMessageLoopOnPause(int contextGroupId) override; 79 void runMessageLoopOnPause(int contextGroupId) override;
81 void quitMessageLoopOnPause() override; 80 void quitMessageLoopOnPause() override;
82 void muteWarningsAndDeprecations() override; 81 void muteWarningsAndDeprecations() override;
83 void unmuteWarningsAndDeprecations() override; 82 void unmuteWarningsAndDeprecations() override;
84 void muteConsole() override;
85 void unmuteConsole() override;
86 bool callingContextCanAccessContext(v8::Local<v8::Context> calling, v8::Loca l<v8::Context> target) override; 83 bool callingContextCanAccessContext(v8::Local<v8::Context> calling, v8::Loca l<v8::Context> target) override;
87 int ensureDefaultContextInGroup(int contextGroupId) override; 84 v8::Local<v8::Context> ensureDefaultContextInGroup(int contextGroupId) overr ide;
88 85
89 std::unique_ptr<ClientMessageLoop> m_clientMessageLoop; 86 std::unique_ptr<ClientMessageLoop> m_clientMessageLoop;
90 std::unique_ptr<InspectorTaskRunner> m_taskRunner; 87 std::unique_ptr<InspectorTaskRunner> m_taskRunner;
91 88
92 static MainThreadDebugger* s_instance; 89 static MainThreadDebugger* s_instance;
93 90
94 static void querySelectorCallback(const v8::FunctionCallbackInfo<v8::Value>& ); 91 static void querySelectorCallback(const v8::FunctionCallbackInfo<v8::Value>& );
95 static void querySelectorAllCallback(const v8::FunctionCallbackInfo<v8::Valu e>&); 92 static void querySelectorAllCallback(const v8::FunctionCallbackInfo<v8::Valu e>&);
96 static void xpathSelectorCallback(const v8::FunctionCallbackInfo<v8::Value>& ); 93 static void xpathSelectorCallback(const v8::FunctionCallbackInfo<v8::Value>& );
97 }; 94 };
98 95
99 } // namespace blink 96 } // namespace blink
100 97
101 98
102 #endif // MainThreadDebugger_h 99 #endif // MainThreadDebugger_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698