Rename native_window_types.h to native_ui_types.h

Commit: 16e216bf | 2025-09-05 22:47:23+00:00

← Back to List

Rename native_window_types.h to native_ui_types.h

Minor
Commit Hash: 16e216bfbd7e86012e4d15f8ed2b4be4526c3df9
Commit Time: 2025-09-05 22:47:23+00:00
Impact Level: Minor
Generated By: webview2-upstream-sentry
Upstream Review: View Upstream Review 🔗

📋 Summary

This submission is a large-scale header file renaming operation, replacing all references to "ui/gfx/native_window_types.h" with "ui/gfx/native_ui_types.h" throughout the //components directory. The change affects 53 files, including multiple components such as constrained_window, embedder_support, exo, eye_dropper, fullscreen_control, headless, input, javascript_dialogs, omnibox, payments, remote_cocoa, ui_devtools, viz, and web_modal. The modification is purely a textual replacement of header file paths, without altering any actual code logic, class definitions, or interface signatures. It includes several remote_cocoa-related files, such as immersive_mode_controller_cocoa.mm, native_widget_mac_nswindow.mm, native_widget_ns_window_bridge.mm, application_host.h, and window.h.

🎯 Impact Analysis

This change has no direct functional or performance impact on WebView2Mac. It is purely a header file renaming operation, without any API changes, interface modifications, or behavioral changes. The implementation logic of core classes related to remote_cocoa (such as NativeWidgetNSWindowBridge and ApplicationHost) remains completely unchanged, and all Mojo interfaces, inheritance relationships, and method signatures are unaffected. For the remote_cocoa components that WebView2Mac depends on, this change only updates the internal header file references and does not affect any usage of remote_cocoa by WebView2Mac. The only point to note is that if downstream WebView2Mac code directly includes "ui/gfx/native_window_types.h", it should be updated accordingly to "ui/gfx/native_ui_types.h", but this is a simple header file path update and does not involve any code logic changes.

Impacted Classes:

NativeWidgetNSWindowBridge ApplicationHost ScopedNativeWindowMapping