| 113 | } |
| 114 | |
| 115 | void WindowCore::_rootViewDisposed(const java::Reference &javaRef) |
| 116 | { |
| 117 | // this may be called by the garbage collector, so it might be |
| 118 | // in an arbitrary thread. That means that the root view |
| 119 | // registry we get might not be the one that actually owns the |
| 120 | // reference. In that case the object will not be removed from |
| 121 | // the registry. But that is OK: the registry will notice the |
| 122 | // next time it tries to access the root view and then it will |
| 123 | // be removed. |
| 124 | getRootViewRegistryForCurrentThread().remove(javaRef); |
| 125 | |
| 126 | auto windowCoreList = getWindowCoreListFromRootView(javaRef); |
| 127 | |
| 128 | for (const auto &windowCore : windowCoreList) { |
| 129 | windowCore->rootViewDisposed(); |
| 130 | } |
| 131 | } |
| 132 | |
| 133 | void WindowCore::_rootViewSizeChanged(const java::Reference &javaRef, int width, int height) |
| 134 | { |
nothing calls this directly
no test coverage detected