| 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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 v8::Local<v8::Context> context() const; | 118 v8::Local<v8::Context> context() const; |
| 119 void dispose(); | 119 void dispose(); |
| 120 | 120 |
| 121 private: | 121 private: |
| 122 friend InjectedScript* InjectedScriptManager::injectedScriptFor(v8::Local<v8
::Context>); | 122 friend InjectedScript* InjectedScriptManager::injectedScriptFor(v8::Local<v8
::Context>); |
| 123 InjectedScript(InjectedScriptManager*, v8::Local<v8::Context>, v8::Local<v8:
:Object>, V8DebuggerClient*, PassRefPtr<InjectedScriptNative>, int contextId); | 123 InjectedScript(InjectedScriptManager*, v8::Local<v8::Context>, v8::Local<v8:
:Object>, V8DebuggerClient*, PassRefPtr<InjectedScriptNative>, int contextId); |
| 124 | 124 |
| 125 bool canAccessInspectedWindow() const; | 125 bool canAccessInspectedWindow() const; |
| 126 v8::Local<v8::Value> v8Value() const; | 126 v8::Local<v8::Value> v8Value() const; |
| 127 v8::Local<v8::Value> callFunctionWithEvalEnabled(V8FunctionCall&, bool& hadE
xception) const; | 127 v8::Local<v8::Value> callFunctionWithEvalEnabled(V8FunctionCall&, bool& hadE
xception) const; |
| 128 void makeCall(V8FunctionCall&, RefPtr<protocol::Value>* result); | 128 PassOwnPtr<protocol::Value> makeCall(V8FunctionCall&); |
| 129 void makeEvalCall(ErrorString*, V8FunctionCall&, OwnPtr<protocol::Runtime::R
emoteObject>* result, Maybe<bool>* wasThrown, Maybe<protocol::Runtime::Exception
Details>* = 0); | 129 PassOwnPtr<protocol::Runtime::RemoteObject> makeEvalCall(ErrorString*, V8Fun
ctionCall&, Maybe<bool>* wasThrown, Maybe<protocol::Runtime::ExceptionDetails>*
= 0); |
| 130 void makeCallWithExceptionDetails(V8FunctionCall&, RefPtr<protocol::Value>*
result, Maybe<protocol::Runtime::ExceptionDetails>*); | 130 PassOwnPtr<protocol::Value> makeCallWithExceptionDetails(V8FunctionCall&, Ma
ybe<protocol::Runtime::ExceptionDetails>*); |
| 131 | 131 |
| 132 InjectedScriptManager* m_manager; | 132 InjectedScriptManager* m_manager; |
| 133 v8::Isolate* m_isolate; | 133 v8::Isolate* m_isolate; |
| 134 v8::Global<v8::Context> m_context; | 134 v8::Global<v8::Context> m_context; |
| 135 v8::Global<v8::Value> m_value; | 135 v8::Global<v8::Value> m_value; |
| 136 V8DebuggerClient* m_client; | 136 V8DebuggerClient* m_client; |
| 137 RefPtr<InjectedScriptNative> m_native; | 137 RefPtr<InjectedScriptNative> m_native; |
| 138 int m_contextId; | 138 int m_contextId; |
| 139 String m_origin; | 139 String m_origin; |
| 140 }; | 140 }; |
| 141 | 141 |
| 142 } // namespace blink | 142 } // namespace blink |
| 143 | 143 |
| 144 #endif | 144 #endif |
| OLD | NEW |