mirror of
https://github.com/status-im/react-native.git
synced 2025-01-28 02:04:55 +00:00
add isInspectable property
Reviewed By: Hypuk Differential Revision: D6578737 fbshipit-source-id: 05143e4cf59b5be9e20ab79b83efbfaa7da059d8
This commit is contained in:
parent
2668dc8e1b
commit
3852c42ad8
@ -644,6 +644,10 @@ namespace facebook {
|
|||||||
return m_context;
|
return m_context;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool JSCExecutor::isInspectable() {
|
||||||
|
return canUseInspector(m_context);
|
||||||
|
}
|
||||||
|
|
||||||
#ifdef WITH_JSC_MEMORY_PRESSURE
|
#ifdef WITH_JSC_MEMORY_PRESSURE
|
||||||
void JSCExecutor::handleMemoryPressure(int pressureLevel) {
|
void JSCExecutor::handleMemoryPressure(int pressureLevel) {
|
||||||
JSHandleMemoryPressure(this, m_context, static_cast<JSMemoryPressure>(pressureLevel));
|
JSHandleMemoryPressure(this, m_context, static_cast<JSMemoryPressure>(pressureLevel));
|
||||||
|
@ -93,6 +93,8 @@ public:
|
|||||||
|
|
||||||
virtual void* getJavaScriptContext() override;
|
virtual void* getJavaScriptContext() override;
|
||||||
|
|
||||||
|
virtual bool isInspectable() override;
|
||||||
|
|
||||||
#ifdef WITH_JSC_MEMORY_PRESSURE
|
#ifdef WITH_JSC_MEMORY_PRESSURE
|
||||||
virtual void handleMemoryPressure(int pressureLevel) override;
|
virtual void handleMemoryPressure(int pressureLevel) override;
|
||||||
#endif
|
#endif
|
||||||
|
@ -75,10 +75,15 @@ public:
|
|||||||
|
|
||||||
virtual void setGlobalVariable(std::string propName,
|
virtual void setGlobalVariable(std::string propName,
|
||||||
std::unique_ptr<const JSBigString> jsonValue) = 0;
|
std::unique_ptr<const JSBigString> jsonValue) = 0;
|
||||||
|
|
||||||
virtual void* getJavaScriptContext() {
|
virtual void* getJavaScriptContext() {
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
virtual bool isInspectable() {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The description is displayed in the dev menu, if there is one in
|
* The description is displayed in the dev menu, if there is one in
|
||||||
* this build. There is a default, but if this method returns a
|
* this build. There is a default, but if this method returns a
|
||||||
|
Loading…
x
Reference in New Issue
Block a user