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

Side by Side Diff: Source/core/inspector/InjectedScriptHost.h

Issue 300393002: Merge DevTools Refactor CL to Blink36 (Closed) Base URL: svn://svn.chromium.org/blink/branches/dart/1985
Patch Set: PTAL Created 6 years, 6 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 | Annotate | Revision Log
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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 74
75 class InspectableObject { 75 class InspectableObject {
76 WTF_MAKE_FAST_ALLOCATED; 76 WTF_MAKE_FAST_ALLOCATED;
77 public: 77 public:
78 virtual ScriptValue get(ScriptState*); 78 virtual ScriptValue get(ScriptState*);
79 virtual ~InspectableObject() { } 79 virtual ~InspectableObject() { }
80 }; 80 };
81 void addInspectedObject(PassOwnPtr<InspectableObject>); 81 void addInspectedObject(PassOwnPtr<InspectableObject>);
82 void clearInspectedObjects(); 82 void clearInspectedObjects();
83 InspectableObject* inspectedObject(unsigned num); 83 InspectableObject* inspectedObject(unsigned num);
84 unsigned numInspectedObjects();
84 85
85 void inspectImpl(PassRefPtr<JSONValue> objectToInspect, PassRefPtr<JSONValue > hints); 86 void inspectImpl(PassRefPtr<JSONValue> objectToInspect, PassRefPtr<JSONValue > hints);
86 void getEventListenersImpl(EventTarget*, Vector<EventListenerInfo>& listener sArray); 87 void getEventListenersImpl(EventTarget*, Vector<EventListenerInfo>& listener sArray);
87 88
88 void clearConsoleMessages(); 89 void clearConsoleMessages();
89 void debugFunction(const String& scriptId, int lineNumber, int columnNumber) ; 90 void debugFunction(const String& scriptId, int lineNumber, int columnNumber) ;
90 void undebugFunction(const String& scriptId, int lineNumber, int columnNumbe r); 91 void undebugFunction(const String& scriptId, int lineNumber, int columnNumbe r);
91 void monitorFunction(const String& scriptId, int lineNumber, int columnNumbe r, const String& functionName); 92 void monitorFunction(const String& scriptId, int lineNumber, int columnNumbe r, const String& functionName);
92 void unmonitorFunction(const String& scriptId, int lineNumber, int columnNum ber); 93 void unmonitorFunction(const String& scriptId, int lineNumber, int columnNum ber);
93 94
94 ScriptDebugServer& scriptDebugServer() { return *m_scriptDebugServer; } 95 ScriptDebugServer& scriptDebugServer() { return *m_scriptDebugServer; }
95 96
96 private: 97 private:
97 InjectedScriptHost(); 98 InjectedScriptHost();
98 99
99 InstrumentingAgents* m_instrumentingAgents; 100 InstrumentingAgents* m_instrumentingAgents;
100 ScriptDebugServer* m_scriptDebugServer; 101 ScriptDebugServer* m_scriptDebugServer;
101 Vector<OwnPtr<InspectableObject> > m_inspectedObjects; 102 Vector<OwnPtr<InspectableObject> > m_inspectedObjects;
102 OwnPtr<InspectableObject> m_defaultInspectableObject; 103 OwnPtr<InspectableObject> m_defaultInspectableObject;
103 }; 104 };
104 105
105 } // namespace WebCore 106 } // namespace WebCore
106 107
107 #endif // !defined(InjectedScriptHost_h) 108 #endif // !defined(InjectedScriptHost_h)
OLDNEW
« no previous file with comments | « Source/core/inspector/InjectedScriptBase.cpp ('k') | Source/core/inspector/InjectedScriptHost.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698