| OLD | NEW |
| 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 Loading... |
| 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 OnWidgetInit(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_ |
| OLD | NEW |