OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 | 106 |
107 PassRefPtr<TypeBuilder::Runtime::RemoteObject> wrapObject(const ScriptValue&
, const String& groupName, bool generatePreview = false) const; | 107 PassRefPtr<TypeBuilder::Runtime::RemoteObject> wrapObject(const ScriptValue&
, const String& groupName, bool generatePreview = false) const; |
108 PassRefPtr<TypeBuilder::Runtime::RemoteObject> wrapTable(const ScriptValue&
table, const ScriptValue& columns) const; | 108 PassRefPtr<TypeBuilder::Runtime::RemoteObject> wrapTable(const ScriptValue&
table, const ScriptValue& columns) const; |
109 v8::Local<v8::Value> findObject(const RemoteObjectId&) const; | 109 v8::Local<v8::Value> findObject(const RemoteObjectId&) const; |
110 | 110 |
111 String objectIdToObjectGroupName(const String& objectId) const; | 111 String objectIdToObjectGroupName(const String& objectId) const; |
112 void releaseObjectGroup(const String&); | 112 void releaseObjectGroup(const String&); |
113 | 113 |
114 void setCustomObjectFormatterEnabled(bool); | 114 void setCustomObjectFormatterEnabled(bool); |
115 | 115 |
| 116 v8::Local<v8::Array> frameworksEventListeners(v8::Local<v8::Value>); |
| 117 v8::Local<v8::Set> frameworksEventHandlers(v8::Local<v8::Value>); |
| 118 |
116 private: | 119 private: |
117 friend InjectedScript InjectedScriptManager::injectedScriptFor(ScriptState*)
; | 120 friend InjectedScript InjectedScriptManager::injectedScriptFor(ScriptState*)
; |
118 using InspectedStateAccessCheck = bool (*)(ScriptState*); | 121 using InspectedStateAccessCheck = bool (*)(ScriptState*); |
119 InjectedScript(ScriptValue, InspectedStateAccessCheck, PassRefPtr<InjectedSc
riptNative>); | 122 InjectedScript(ScriptValue, InspectedStateAccessCheck, PassRefPtr<InjectedSc
riptNative>); |
120 | 123 |
121 void initialize(ScriptValue, InspectedStateAccessCheck); | 124 void initialize(ScriptValue, InspectedStateAccessCheck); |
122 bool canAccessInspectedWindow() const; | 125 bool canAccessInspectedWindow() const; |
123 const ScriptValue& injectedScriptObject() const; | 126 const ScriptValue& injectedScriptObject() const; |
124 ScriptValue callFunctionWithEvalEnabled(ScriptFunctionCall&, bool& hadExcept
ion) const; | 127 ScriptValue callFunctionWithEvalEnabled(ScriptFunctionCall&, bool& hadExcept
ion) const; |
125 void makeCall(ScriptFunctionCall&, RefPtr<JSONValue>* result); | 128 void makeCall(ScriptFunctionCall&, RefPtr<JSONValue>* result); |
126 void makeEvalCall(ErrorString*, ScriptFunctionCall&, RefPtr<TypeBuilder::Run
time::RemoteObject>* result, TypeBuilder::OptOutput<bool>* wasThrown, RefPtr<Typ
eBuilder::Debugger::ExceptionDetails>* = 0); | 129 void makeEvalCall(ErrorString*, ScriptFunctionCall&, RefPtr<TypeBuilder::Run
time::RemoteObject>* result, TypeBuilder::OptOutput<bool>* wasThrown, RefPtr<Typ
eBuilder::Debugger::ExceptionDetails>* = 0); |
127 void makeCallWithExceptionDetails(ScriptFunctionCall&, RefPtr<JSONValue>* re
sult, RefPtr<TypeBuilder::Debugger::ExceptionDetails>*); | 130 void makeCallWithExceptionDetails(ScriptFunctionCall&, RefPtr<JSONValue>* re
sult, RefPtr<TypeBuilder::Debugger::ExceptionDetails>*); |
128 | 131 |
129 ScriptValue m_injectedScriptObject; | 132 ScriptValue m_injectedScriptObject; |
130 InspectedStateAccessCheck m_inspectedStateAccessCheck; | 133 InspectedStateAccessCheck m_inspectedStateAccessCheck; |
131 RefPtr<InjectedScriptNative> m_native; | 134 RefPtr<InjectedScriptNative> m_native; |
132 }; | 135 }; |
133 | 136 |
134 } // namespace blink | 137 } // namespace blink |
135 | 138 |
136 #endif | 139 #endif |
OLD | NEW |