diff options
author | erg@chromium.org <erg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-04-18 20:32:14 +0000 |
---|---|---|
committer | erg@chromium.org <erg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-04-18 20:32:14 +0000 |
commit | 1422809c9c890fb145978b73d3ace532ee31c521 (patch) | |
tree | ebe9893baeac2532ade814c5e504a71c045a32da /ui/views/views_delegate.h | |
parent | ab6697bbd446c43094ea3593f857e7c3f3c9327f (diff) | |
download | chromium_src-1422809c9c890fb145978b73d3ace532ee31c521.zip chromium_src-1422809c9c890fb145978b73d3ace532ee31c521.tar.gz chromium_src-1422809c9c890fb145978b73d3ace532ee31c521.tar.bz2 |
Aura/ash split: Remove hacks and get chrome linking without ash.
For the first time now, you can do:
> build/gyp_chromium -Duse_aura=1 -Duse_ash=0
And get a running chrome. It has lots of issues, especially related to
window placement, tab handling, etc, but it pops up and renders web content.
Also consolidates most of the desktop behavior into its own class.
Also makes views_examples_exe work again. Several of the hacks are no longer
needed after Ben's refactoring to support WebView.
BUG=116458,119759
TEST=none
Review URL: http://codereview.chromium.org/10081022
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@132856 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/views/views_delegate.h')
-rw-r--r-- | ui/views/views_delegate.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/ui/views/views_delegate.h b/ui/views/views_delegate.h index af9c665..d1fc739 100644 --- a/ui/views/views_delegate.h +++ b/ui/views/views_delegate.h @@ -31,6 +31,11 @@ class NonClientFrameView; class View; class Widget; +#if defined(USE_AURA) +class NativeWidgetAura; +class NativeWidgetHelperAura; +#endif + // ViewsDelegate is an interface implemented by an object using the views // framework. It is used to obtain various high level application utilities // and perform some actions such as window placement saving. @@ -96,6 +101,13 @@ class VIEWS_EXPORT ViewsDelegate { // Converts views::Event::flags to a WindowOpenDisposition. virtual int GetDispositionForEvent(int event_flags) = 0; + +#if defined(USE_AURA) + // Creates an object that implements desktop integration behavior. Returned + // object is owned by the NativeWidgetAura passed in. May return NULL. + virtual NativeWidgetHelperAura* CreateNativeWidgetHelper( + NativeWidgetAura* native_widget) = 0; +#endif }; } // namespace views |