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

Unified Diff: third_party/WebKit/Source/platform/v8_inspector/V8Console.h

Issue 2295913003: [DevTools] Switch from platform/v8_inspector to v8/v8-inspector.h. (Closed)
Patch Set: rebase Created 4 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/platform/v8_inspector/V8Console.h
diff --git a/third_party/WebKit/Source/platform/v8_inspector/V8Console.h b/third_party/WebKit/Source/platform/v8_inspector/V8Console.h
deleted file mode 100644
index 1b82058a9385e776756e5816a0f70cd4d8ffdb3f..0000000000000000000000000000000000000000
--- a/third_party/WebKit/Source/platform/v8_inspector/V8Console.h
+++ /dev/null
@@ -1,90 +0,0 @@
-// Copyright 2016 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef V8Console_h
-#define V8Console_h
-
-#include "platform/v8_inspector/Allocator.h"
-
-#include <v8.h>
-
-namespace v8_inspector {
-
-class InspectedContext;
-
-// Console API
-// https://console.spec.whatwg.org/#console-interface
-class V8Console {
-public:
- static v8::Local<v8::Object> createConsole(InspectedContext*, bool hasMemoryAttribute);
- static void clearInspectedContextIfNeeded(v8::Local<v8::Context>, v8::Local<v8::Object> console);
- static v8::Local<v8::Object> createCommandLineAPI(InspectedContext*);
-
- class CommandLineAPIScope {
- V8_INSPECTOR_DISALLOW_COPY(CommandLineAPIScope);
- public:
- CommandLineAPIScope(v8::Local<v8::Context>, v8::Local<v8::Object> commandLineAPI, v8::Local<v8::Object> global);
- ~CommandLineAPIScope();
-
- private:
- static void accessorGetterCallback(v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>&);
- static void accessorSetterCallback(v8::Local<v8::Name>, v8::Local<v8::Value>, const v8::PropertyCallbackInfo<void>&);
-
- v8::Local<v8::Context> m_context;
- v8::Local<v8::Object> m_commandLineAPI;
- v8::Local<v8::Object> m_global;
- v8::Local<v8::Set> m_installedMethods;
- bool m_cleanup;
- };
-
-private:
- static void debugCallback(const v8::FunctionCallbackInfo<v8::Value>&);
- static void errorCallback(const v8::FunctionCallbackInfo<v8::Value>&);
- static void infoCallback(const v8::FunctionCallbackInfo<v8::Value>&);
- static void logCallback(const v8::FunctionCallbackInfo<v8::Value>&);
- static void warnCallback(const v8::FunctionCallbackInfo<v8::Value>&);
- static void dirCallback(const v8::FunctionCallbackInfo<v8::Value>&);
- static void dirxmlCallback(const v8::FunctionCallbackInfo<v8::Value>&);
- static void tableCallback(const v8::FunctionCallbackInfo<v8::Value>&);
- static void traceCallback(const v8::FunctionCallbackInfo<v8::Value>&);
- static void groupCallback(const v8::FunctionCallbackInfo<v8::Value>&);
- static void groupCollapsedCallback(const v8::FunctionCallbackInfo<v8::Value>&);
- static void groupEndCallback(const v8::FunctionCallbackInfo<v8::Value>&);
- static void clearCallback(const v8::FunctionCallbackInfo<v8::Value>&);
- static void countCallback(const v8::FunctionCallbackInfo<v8::Value>&);
- static void assertCallback(const v8::FunctionCallbackInfo<v8::Value>&);
- static void markTimelineCallback(const v8::FunctionCallbackInfo<v8::Value>&);
- static void profileCallback(const v8::FunctionCallbackInfo<v8::Value>&);
- static void profileEndCallback(const v8::FunctionCallbackInfo<v8::Value>&);
- static void timelineCallback(const v8::FunctionCallbackInfo<v8::Value>&);
- static void timelineEndCallback(const v8::FunctionCallbackInfo<v8::Value>&);
- static void timeCallback(const v8::FunctionCallbackInfo<v8::Value>&);
- static void timeEndCallback(const v8::FunctionCallbackInfo<v8::Value>&);
- static void timeStampCallback(const v8::FunctionCallbackInfo<v8::Value>&);
- // TODO(foolip): There is no spec for the Memory Info API, see blink-dev:
- // https://groups.google.com/a/chromium.org/d/msg/blink-dev/g5YRCGpC9vs/b4OJz71NmPwJ
- static void memoryGetterCallback(const v8::FunctionCallbackInfo<v8::Value>&);
- static void memorySetterCallback(const v8::FunctionCallbackInfo<v8::Value>&);
-
- // CommandLineAPI
- static void keysCallback(const v8::FunctionCallbackInfo<v8::Value>&);
- static void valuesCallback(const v8::FunctionCallbackInfo<v8::Value>&);
- static void debugFunctionCallback(const v8::FunctionCallbackInfo<v8::Value>&);
- static void undebugFunctionCallback(const v8::FunctionCallbackInfo<v8::Value>&);
- static void monitorFunctionCallback(const v8::FunctionCallbackInfo<v8::Value>&);
- static void unmonitorFunctionCallback(const v8::FunctionCallbackInfo<v8::Value>&);
- static void lastEvaluationResultCallback(const v8::FunctionCallbackInfo<v8::Value>&);
- static void inspectCallback(const v8::FunctionCallbackInfo<v8::Value>&);
- static void copyCallback(const v8::FunctionCallbackInfo<v8::Value>&);
- static void inspectedObject(const v8::FunctionCallbackInfo<v8::Value>&, unsigned num);
- static void inspectedObject0(const v8::FunctionCallbackInfo<v8::Value>& info) { inspectedObject(info, 0); }
- static void inspectedObject1(const v8::FunctionCallbackInfo<v8::Value>& info) { inspectedObject(info, 1); }
- static void inspectedObject2(const v8::FunctionCallbackInfo<v8::Value>& info) { inspectedObject(info, 2); }
- static void inspectedObject3(const v8::FunctionCallbackInfo<v8::Value>& info) { inspectedObject(info, 3); }
- static void inspectedObject4(const v8::FunctionCallbackInfo<v8::Value>& info) { inspectedObject(info, 4); }
-};
-
-} // namespace v8_inspector
-
-#endif // V8Console_h

Powered by Google App Engine
This is Rietveld 408576698