| 236 | } |
| 237 | |
| 238 | Rect WindowCore::getScreenWorkArea() const |
| 239 | { |
| 240 | bdn::android::wrapper::NativeRootView rootView(tryGetAccessibleRootViewRef()); |
| 241 | |
| 242 | if (rootView.isNull_()) { |
| 243 | // don't have a root view => work area size is 0 |
| 244 | return Rect(); |
| 245 | } |
| 246 | int width = rootView.getWidth(); |
| 247 | int height = rootView.getHeight(); |
| 248 | |
| 249 | // logInfo("screen area: |
| 250 | // ("+std::to_string(width)+"x"+std::to_string(height)+")"); |
| 251 | |
| 252 | return Rect(0, 0, width, height); |
| 253 | } |
| 254 | |
| 255 | void WindowCore::updateUIScaleFactor(const bdn::android::wrapper::Configuration &config) |
| 256 | { |