| 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 23 matching lines...) Expand all Loading... |
| 34 #include "bindings/core/v8/ScriptValue.h" | 34 #include "bindings/core/v8/ScriptValue.h" |
| 35 #include "core/InspectorTypeBuilder.h" | 35 #include "core/InspectorTypeBuilder.h" |
| 36 #include "core/inspector/InjectedScriptBase.h" | 36 #include "core/inspector/InjectedScriptBase.h" |
| 37 #include "core/inspector/InjectedScriptManager.h" | 37 #include "core/inspector/InjectedScriptManager.h" |
| 38 #include "core/inspector/InjectedScriptNative.h" | 38 #include "core/inspector/InjectedScriptNative.h" |
| 39 #include "wtf/Forward.h" | 39 #include "wtf/Forward.h" |
| 40 #include "wtf/Vector.h" | 40 #include "wtf/Vector.h" |
| 41 | 41 |
| 42 namespace blink { | 42 namespace blink { |
| 43 | 43 |
| 44 class InjectedScriptModule; | |
| 45 class Node; | 44 class Node; |
| 46 | 45 |
| 47 class InjectedScript final : public InjectedScriptBase { | 46 class InjectedScript final : public InjectedScriptBase { |
| 48 public: | 47 public: |
| 49 InjectedScript(); | 48 InjectedScript(); |
| 50 virtual ~InjectedScript() { } | 49 virtual ~InjectedScript() { } |
| 51 | 50 |
| 52 void evaluate( | 51 void evaluate( |
| 53 ErrorString*, | 52 ErrorString*, |
| 54 const String& expression, | 53 const String& expression, |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 PassRefPtr<TypeBuilder::Runtime::RemoteObject> wrapObject(const ScriptValue&
, const String& groupName, bool generatePreview = false) const; | 96 PassRefPtr<TypeBuilder::Runtime::RemoteObject> wrapObject(const ScriptValue&
, const String& groupName, bool generatePreview = false) const; |
| 98 PassRefPtr<TypeBuilder::Runtime::RemoteObject> wrapTable(const ScriptValue&
table, const ScriptValue& columns) const; | 97 PassRefPtr<TypeBuilder::Runtime::RemoteObject> wrapTable(const ScriptValue&
table, const ScriptValue& columns) const; |
| 99 PassRefPtr<TypeBuilder::Runtime::RemoteObject> wrapNode(Node*, const String&
groupName); | 98 PassRefPtr<TypeBuilder::Runtime::RemoteObject> wrapNode(Node*, const String&
groupName); |
| 100 ScriptValue findObjectById(const String& objectId) const; | 99 ScriptValue findObjectById(const String& objectId) const; |
| 101 | 100 |
| 102 void releaseObjectGroup(const String&); | 101 void releaseObjectGroup(const String&); |
| 103 | 102 |
| 104 void setCustomObjectFormatterEnabled(bool); | 103 void setCustomObjectFormatterEnabled(bool); |
| 105 | 104 |
| 106 private: | 105 private: |
| 107 friend class InjectedScriptModule; | |
| 108 friend InjectedScript InjectedScriptManager::injectedScriptFor(ScriptState*)
; | 106 friend InjectedScript InjectedScriptManager::injectedScriptFor(ScriptState*)
; |
| 109 InjectedScript(ScriptValue, InspectedStateAccessCheck, PassRefPtr<InjectedSc
riptNative>); | 107 InjectedScript(ScriptValue, InspectedStateAccessCheck, PassRefPtr<InjectedSc
riptNative>); |
| 110 | 108 |
| 111 ScriptValue nodeAsScriptValue(Node*); | 109 ScriptValue nodeAsScriptValue(Node*); |
| 112 | 110 |
| 113 RefPtr<InjectedScriptNative> m_native; | 111 RefPtr<InjectedScriptNative> m_native; |
| 114 }; | 112 }; |
| 115 | 113 |
| 116 } // namespace blink | 114 } // namespace blink |
| 117 | 115 |
| 118 #endif | 116 #endif |
| OLD | NEW |