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 content { | 10 namespace content { |
(...skipping 15 matching lines...) Expand all Loading... |
26 // reposition widgets e.g. when the host dimensions change. | 26 // reposition widgets e.g. when the host dimensions change. |
27 void UpdateWebContentsModalDialogPosition( | 27 void UpdateWebContentsModalDialogPosition( |
28 views::Widget* widget, | 28 views::Widget* widget, |
29 web_modal::WebContentsModalDialogHost* dialog_host); | 29 web_modal::WebContentsModalDialogHost* dialog_host); |
30 | 30 |
31 void UpdateBrowserModalDialogPosition( | 31 void UpdateBrowserModalDialogPosition( |
32 views::Widget* widget, | 32 views::Widget* widget, |
33 web_modal::ModalDialogHost* dialog_host); | 33 web_modal::ModalDialogHost* dialog_host); |
34 | 34 |
35 // Calls CreateWebModalDialogViews, shows the dialog, and returns its widget. | 35 // Calls CreateWebModalDialogViews, shows the dialog, and returns its widget. |
36 views::Widget* ShowWebModalDialogViews(views::WidgetDelegate* dialog, | 36 views::Widget* ShowWebModalDialogViews( |
37 content::WebContents* web_contents); | 37 views::WidgetDelegate* dialog, |
| 38 content::WebContents* initiator_web_contents); |
38 | 39 |
39 // Create a widget for |dialog| that is modal to |web_contents|. | 40 // Create a widget for |dialog| that is modal to |web_contents|. |
40 views::Widget* CreateWebModalDialogViews(views::WidgetDelegate* dialog, | 41 views::Widget* CreateWebModalDialogViews(views::WidgetDelegate* dialog, |
41 content::WebContents* web_contents); | 42 content::WebContents* web_contents); |
42 | 43 |
43 // Create a widget for |dialog| that is modal to the browser window |parent|. | 44 // Create a widget for |dialog| that is modal to the browser window |parent|. |
44 // This places the dialog appropriately if |parent| is a valid browser window. | 45 // This places the dialog appropriately if |parent| is a valid browser window. |
45 views::Widget* CreateBrowserModalDialogViews(views::DialogDelegate* dialog, | 46 views::Widget* CreateBrowserModalDialogViews(views::DialogDelegate* dialog, |
46 gfx::NativeWindow parent); | 47 gfx::NativeWindow parent); |
47 | 48 |
48 #endif // CHROME_BROWSER_UI_VIEWS_CONSTRAINED_WINDOW_VIEWS_H_ | 49 #endif // CHROME_BROWSER_UI_VIEWS_CONSTRAINED_WINDOW_VIEWS_H_ |
OLD | NEW |