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

Side by Side Diff: third_party/WebKit/Source/platform/v8_inspector/InjectedScriptHost.h

Issue 1917733002: [DevTools] Move part of CommandLineAPI to native (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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) 2007 Apple Inc. All rights reserved. 2 * Copyright (C) 2007 Apple Inc. All rights reserved.
3 * Copyright (C) 2009 Google Inc. All rights reserved. 3 * Copyright (C) 2009 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 public: 55 public:
56 static PassOwnPtr<InjectedScriptHost> create(V8DebuggerImpl*, V8InspectorSes sionImpl*); 56 static PassOwnPtr<InjectedScriptHost> create(V8DebuggerImpl*, V8InspectorSes sionImpl*);
57 ~InjectedScriptHost(); 57 ~InjectedScriptHost();
58 58
59 void addInspectedObject(PassOwnPtr<V8RuntimeAgent::Inspectable>); 59 void addInspectedObject(PassOwnPtr<V8RuntimeAgent::Inspectable>);
60 void clearInspectedObjects(); 60 void clearInspectedObjects();
61 V8RuntimeAgent::Inspectable* inspectedObject(unsigned num); 61 V8RuntimeAgent::Inspectable* inspectedObject(unsigned num);
62 62
63 void inspectImpl(PassOwnPtr<protocol::Value> objectToInspect, PassOwnPtr<pro tocol::Value> hints); 63 void inspectImpl(PassOwnPtr<protocol::Value> objectToInspect, PassOwnPtr<pro tocol::Value> hints);
64 64
65 void clearConsoleMessages();
66 void debugFunction(const String16& scriptId, int lineNumber, int columnNumbe r);
67 void undebugFunction(const String16& scriptId, int lineNumber, int columnNum ber);
68 void monitorFunction(const String16& scriptId, int lineNumber, int columnNum ber, const String16& functionName);
69 void unmonitorFunction(const String16& scriptId, int lineNumber, int columnN umber);
70
71 V8DebuggerImpl* debugger() { return m_debugger; } 65 V8DebuggerImpl* debugger() { return m_debugger; }
72 66
73 // FIXME: store this template in per isolate data 67 // FIXME: store this template in per isolate data
74 void setWrapperTemplate(v8::Local<v8::FunctionTemplate> wrapperTemplate, v8: :Isolate* isolate) { m_wrapperTemplate.Reset(isolate, wrapperTemplate); } 68 void setWrapperTemplate(v8::Local<v8::FunctionTemplate> wrapperTemplate, v8: :Isolate* isolate) { m_wrapperTemplate.Reset(isolate, wrapperTemplate); }
75 v8::Local<v8::FunctionTemplate> wrapperTemplate(v8::Isolate* isolate) { retu rn v8::Local<v8::FunctionTemplate>::New(isolate, m_wrapperTemplate); } 69 v8::Local<v8::FunctionTemplate> wrapperTemplate(v8::Isolate* isolate) { retu rn v8::Local<v8::FunctionTemplate>::New(isolate, m_wrapperTemplate); }
76 70
77 private: 71 private:
78 InjectedScriptHost(V8DebuggerImpl*, V8InspectorSessionImpl*); 72 InjectedScriptHost(V8DebuggerImpl*, V8InspectorSessionImpl*);
79 73
80 V8DebuggerImpl* m_debugger; 74 V8DebuggerImpl* m_debugger;
81 V8InspectorSessionImpl* m_session; 75 V8InspectorSessionImpl* m_session;
82 protocol::Vector<OwnPtr<V8RuntimeAgent::Inspectable>> m_inspectedObjects; 76 protocol::Vector<OwnPtr<V8RuntimeAgent::Inspectable>> m_inspectedObjects;
83 v8::Global<v8::FunctionTemplate> m_wrapperTemplate; 77 v8::Global<v8::FunctionTemplate> m_wrapperTemplate;
84 }; 78 };
85 79
86 } // namespace blink 80 } // namespace blink
87 81
88 #endif // InjectedScriptHost_h 82 #endif // InjectedScriptHost_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698