| OLD | NEW |
| 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 void init(InspectorConsoleAgent* consoleAgent, InspectorDebuggerAgent* debug
gerAgent, PassOwnPtr<InspectCallback> inspectCallback, ScriptDebugServer* script
DebugServer) | 69 void init(InspectorConsoleAgent* consoleAgent, InspectorDebuggerAgent* debug
gerAgent, PassOwnPtr<InspectCallback> inspectCallback, ScriptDebugServer* script
DebugServer) |
| 70 { | 70 { |
| 71 m_consoleAgent = consoleAgent; | 71 m_consoleAgent = consoleAgent; |
| 72 m_debuggerAgent = debuggerAgent; | 72 m_debuggerAgent = debuggerAgent; |
| 73 m_inspectCallback = inspectCallback; | 73 m_inspectCallback = inspectCallback; |
| 74 m_scriptDebugServer = scriptDebugServer; | 74 m_scriptDebugServer = scriptDebugServer; |
| 75 } | 75 } |
| 76 | 76 |
| 77 static Node* scriptValueAsNode(ScriptState*, ScriptValue); | 77 static Node* scriptValueAsNode(ScriptState*, ScriptValue); |
| 78 static ScriptValue nodeAsScriptValue(ScriptState*, Node*); | 78 static ScriptValue nodeAsScriptValue(ScriptState*, Node*); |
| 79 static EventTarget* scriptValueAsEventTarget(ScriptState*, ScriptValue); |
| 79 | 80 |
| 80 void disconnect(); | 81 void disconnect(); |
| 81 | 82 |
| 82 class InspectableObject { | 83 class InspectableObject { |
| 83 WTF_MAKE_FAST_ALLOCATED(InspectableObject); | 84 WTF_MAKE_FAST_ALLOCATED(InspectableObject); |
| 84 public: | 85 public: |
| 85 virtual ScriptValue get(ScriptState*); | 86 virtual ScriptValue get(ScriptState*); |
| 86 virtual ~InspectableObject() { } | 87 virtual ~InspectableObject() { } |
| 87 }; | 88 }; |
| 88 void addInspectedObject(PassOwnPtr<InspectableObject>); | 89 void addInspectedObject(PassOwnPtr<InspectableObject>); |
| (...skipping 18 matching lines...) Expand all Loading... |
| 107 RawPtrWillBeMember<InspectorDebuggerAgent> m_debuggerAgent; | 108 RawPtrWillBeMember<InspectorDebuggerAgent> m_debuggerAgent; |
| 108 OwnPtr<InspectCallback> m_inspectCallback; | 109 OwnPtr<InspectCallback> m_inspectCallback; |
| 109 RawPtrWillBeMember<ScriptDebugServer> m_scriptDebugServer; | 110 RawPtrWillBeMember<ScriptDebugServer> m_scriptDebugServer; |
| 110 Vector<OwnPtr<InspectableObject> > m_inspectedObjects; | 111 Vector<OwnPtr<InspectableObject> > m_inspectedObjects; |
| 111 OwnPtr<InspectableObject> m_defaultInspectableObject; | 112 OwnPtr<InspectableObject> m_defaultInspectableObject; |
| 112 }; | 113 }; |
| 113 | 114 |
| 114 } // namespace blink | 115 } // namespace blink |
| 115 | 116 |
| 116 #endif // InjectedScriptHost_h | 117 #endif // InjectedScriptHost_h |
| OLD | NEW |