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 COMPONENTS_CONSTRAINED_WINDOW_CONSTRAINED_WINDOW_VIEWS_H_ | 5 #ifndef COMPONENTS_CONSTRAINED_WINDOW_CONSTRAINED_WINDOW_VIEWS_H_ |
6 #define COMPONENTS_CONSTRAINED_WINDOW_CONSTRAINED_WINDOW_VIEWS_H_ | 6 #define COMPONENTS_CONSTRAINED_WINDOW_CONSTRAINED_WINDOW_VIEWS_H_ |
7 | 7 |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "ui/gfx/native_widget_types.h" | 9 #include "ui/gfx/native_widget_types.h" |
10 | 10 |
(...skipping 30 matching lines...) Expand all Loading... |
41 | 41 |
42 // Calls CreateWebModalDialogViews, shows the dialog, and returns its widget. | 42 // Calls CreateWebModalDialogViews, shows the dialog, and returns its widget. |
43 views::Widget* ShowWebModalDialogViews( | 43 views::Widget* ShowWebModalDialogViews( |
44 views::WidgetDelegate* dialog, | 44 views::WidgetDelegate* dialog, |
45 content::WebContents* initiator_web_contents); | 45 content::WebContents* initiator_web_contents); |
46 | 46 |
47 // Create a widget for |dialog| that is modal to |web_contents|. | 47 // Create a widget for |dialog| that is modal to |web_contents|. |
48 views::Widget* CreateWebModalDialogViews(views::WidgetDelegate* dialog, | 48 views::Widget* CreateWebModalDialogViews(views::WidgetDelegate* dialog, |
49 content::WebContents* web_contents); | 49 content::WebContents* web_contents); |
50 | 50 |
51 // Create a widget for |dialog| that is modal to the browser window |parent|. | 51 // Create a widget for |dialog| that is modal to the entire app that |parent| |
52 // This places the dialog appropriately if |parent| is a valid browser window. | 52 // window belongs to. This places the dialog appropriately if |parent| has |
53 views::Widget* CreateBrowserModalDialogViews(views::DialogDelegate* dialog, | 53 // an associated ModalDialogHost. |
54 gfx::NativeWindow parent); | 54 views::Widget* CreateAppModalDialogViews(views::DialogDelegate* dialog, |
| 55 gfx::NativeWindow parent); |
55 | 56 |
56 #endif // COMPONENTS_CONSTRAINED_WINDOW_CONSTRAINED_WINDOW_VIEWS_H_ | 57 #endif // COMPONENTS_CONSTRAINED_WINDOW_CONSTRAINED_WINDOW_VIEWS_H_ |
OLD | NEW |