| 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 CHROME_BROWSER_UI_VIEWS_CONSTRAINED_WINDOW_VIEWS_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_CONSTRAINED_WINDOW_VIEWS_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_CONSTRAINED_WINDOW_VIEWS_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_CONSTRAINED_WINDOW_VIEWS_H_ |
| 7 | 7 |
| 8 #include "ui/gfx/native_widget_types.h" | 8 #include "ui/gfx/native_widget_types.h" |
| 9 | 9 |
| 10 namespace web_modal { | 10 namespace web_modal { |
| 11 class WebContentsModalDialogHost; | 11 class WebContentsModalDialogHost; |
| 12 } | 12 } |
| 13 | 13 |
| 14 namespace content { | 14 namespace content { |
| 15 class WebContents; | 15 class WebContents; |
| 16 class BrowserContext; | 16 class BrowserContext; |
| 17 } | 17 } |
| 18 namespace views { | 18 namespace views { |
| 19 class DialogDelegate; |
| 19 class NonClientFrameView; | 20 class NonClientFrameView; |
| 20 class WidgetDelegate; | 21 class WidgetDelegate; |
| 21 class Widget; | 22 class Widget; |
| 22 } | 23 } |
| 23 | 24 |
| 24 views::Widget* CreateWebContentsModalDialogViews( | 25 views::Widget* CreateWebContentsModalDialogViews( |
| 25 views::WidgetDelegate* widget_delegate, | 26 views::WidgetDelegate* widget_delegate, |
| 26 gfx::NativeView parent, | 27 gfx::NativeView parent, |
| 27 web_modal::WebContentsModalDialogHost* dialog_host); | 28 web_modal::WebContentsModalDialogHost* dialog_host); |
| 28 | 29 |
| 30 // Create a widget for |dialog| that is modal to the browser window |parent|. |
| 31 // This places the dialog appropriately if |parent| is a valid browser window. |
| 32 views::Widget* CreateBrowserModalDialogViews(views::DialogDelegate* dialog, |
| 33 gfx::NativeWindow parent); |
| 34 |
| 29 views::NonClientFrameView* CreateConstrainedStyleNonClientFrameView( | 35 views::NonClientFrameView* CreateConstrainedStyleNonClientFrameView( |
| 30 views::Widget* widget, | 36 views::Widget* widget, |
| 31 content::BrowserContext* browser_context); | 37 content::BrowserContext* browser_context); |
| 32 | 38 |
| 33 #endif // CHROME_BROWSER_UI_VIEWS_CONSTRAINED_WINDOW_VIEWS_H_ | 39 #endif // CHROME_BROWSER_UI_VIEWS_CONSTRAINED_WINDOW_VIEWS_H_ |
| OLD | NEW |