Chromium Code Reviews| Index: ui/views/views_delegate.h |
| =================================================================== |
| --- ui/views/views_delegate.h (revision 156552) |
| +++ ui/views/views_delegate.h (working copy) |
| @@ -14,6 +14,7 @@ |
| #include "base/string16.h" |
| #include "ui/base/accessibility/accessibility_types.h" |
| #include "ui/base/ui_base_types.h" |
| +#include "ui/gfx/native_widget_types.h" |
| #include "ui/views/views_export.h" |
| namespace content { |
| @@ -28,14 +29,17 @@ |
| namespace views { |
| +class NativeWidget; |
| class NonClientFrameView; |
| class View; |
| class Widget; |
| - |
| #if defined(USE_AURA) |
| class NativeWidgetAura; |
| class NativeWidgetHelperAura; |
| #endif |
| +namespace internal { |
| +class NativeWidgetDelegate; |
| +} |
| // ViewsDelegate is an interface implemented by an object using the views |
| // framework. It is used to obtain various high level application utilities |
| @@ -111,6 +115,11 @@ |
| virtual content::WebContents* CreateWebContents( |
| content::BrowserContext* browser_context, |
| content::SiteInstance* site_instance) = 0; |
| + |
| + // Creates a NativeWidget implementation. |
|
sky
2012/09/13 16:42:13
Document that NULL results in creating the default
|
| + virtual NativeWidget* CreateNativeWidget( |
| + internal::NativeWidgetDelegate* delegate, |
| + gfx::NativeView parent) = 0; |
| }; |
| } // namespace views |