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

Side by Side Diff: ui/views/views_delegate.h

Issue 11758002: Desktop aura: Expand what the ViewsDelegate can do to new windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Don't clobber native_widget Created 7 years, 11 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ui/views/test/test_views_delegate.cc ('k') | ui/views/widget/widget.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_VIEWS_VIEWS_DELEGATE_H_ 5 #ifndef UI_VIEWS_VIEWS_DELEGATE_H_
6 #define UI_VIEWS_VIEWS_DELEGATE_H_ 6 #define UI_VIEWS_VIEWS_DELEGATE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #if defined(OS_WIN) 10 #if defined(OS_WIN)
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 virtual void ReleaseRef() = 0; 99 virtual void ReleaseRef() = 0;
100 100
101 // Converts ui::Event::flags to a WindowOpenDisposition. 101 // Converts ui::Event::flags to a WindowOpenDisposition.
102 virtual int GetDispositionForEvent(int event_flags) = 0; 102 virtual int GetDispositionForEvent(int event_flags) = 0;
103 103
104 // Creates a web contents. This will return NULL unless overriden. 104 // Creates a web contents. This will return NULL unless overriden.
105 virtual content::WebContents* CreateWebContents( 105 virtual content::WebContents* CreateWebContents(
106 content::BrowserContext* browser_context, 106 content::BrowserContext* browser_context,
107 content::SiteInstance* site_instance) = 0; 107 content::SiteInstance* site_instance) = 0;
108 108
109 // Creates a NativeWidget implementation. Returning NULL means Widget will 109 // Gives the platform a chance to modify the properties of a Widget.
110 // create a default implementation for the platform. 110 virtual void OnBeforeWidgetInit(Widget::InitParams* params,
111 virtual NativeWidget* CreateNativeWidget( 111 internal::NativeWidgetDelegate* delegate) = 0;
112 Widget::InitParams::Type type,
113 internal::NativeWidgetDelegate* delegate,
114 gfx::NativeView parent,
115 gfx::NativeView context) = 0;
116 }; 112 };
117 113
118 } // namespace views 114 } // namespace views
119 115
120 #endif // UI_VIEWS_VIEWS_DELEGATE_H_ 116 #endif // UI_VIEWS_VIEWS_DELEGATE_H_
OLDNEW
« no previous file with comments | « ui/views/test/test_views_delegate.cc ('k') | ui/views/widget/widget.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698