Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(253)

Unified Diff: ui/views/views_delegate.h

Issue 10913237: Allow the Views Delegate to provide the native widget. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/views/views.gyp ('k') | ui/views/views_switches.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/views_delegate.h
===================================================================
--- ui/views/views_delegate.h (revision 156649)
+++ 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,12 @@
virtual content::WebContents* CreateWebContents(
content::BrowserContext* browser_context,
content::SiteInstance* site_instance) = 0;
+
+ // Creates a NativeWidget implementation. Returning NULL means Widget will
+ // create a default implementation for the platform.
+ virtual NativeWidget* CreateNativeWidget(
+ internal::NativeWidgetDelegate* delegate,
+ gfx::NativeView parent) = 0;
};
} // namespace views
« no previous file with comments | « ui/views/views.gyp ('k') | ui/views/views_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698