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

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
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

Powered by Google App Engine
This is Rietveld 408576698