Index: ui/views/views_delegate.h |
diff --git a/ui/views/views_delegate.h b/ui/views/views_delegate.h |
index c881daab09f34eae37173da7ee7d292af26f5fe4..8cb0940fb7f2b4fac904b269116eff0709aa7138 100644 |
--- a/ui/views/views_delegate.h |
+++ b/ui/views/views_delegate.h |
@@ -88,6 +88,11 @@ class VIEWS_EXPORT ViewsDelegate { |
// Returns the ViewsDelegate instance if there is one, or nullptr otherwise. |
static ViewsDelegate* GetInstance(); |
+ // Allows the delegate to override creation of the default NativeWidget |
+ // implementation used by Widget. |
+ virtual NativeWidget* CreateNativeWidget( |
+ internal::NativeWidgetDelegate* delegate); |
+ |
// Saves the position, size and "show" state for the window with the |
// specified name. |
virtual void SaveWindowPlacement(const Widget* widget, |