Chromium Code Reviews| 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 |parent| window. |
| 52 // This places the dialog appropriately if |parent| is a valid browser window. | 52 // This places the dialog appropriately if |parent| has an associated |
| 53 views::Widget* CreateBrowserModalDialogViews(views::DialogDelegate* dialog, | 53 // ModalDialogHost. |
| 54 gfx::NativeWindow parent); | 54 views::Widget* CreateWindowModalDialogViews(views::DialogDelegate* dialog, |
|
Avi (use Gerrit)
2014/11/04 20:46:41
You talk about this in the CL description:
oshima
2014/11/04 23:12:18
I see. I was confused by the comment. I changed to
msw
2014/11/05 03:53:54
I wonder if "SystemModal" might be appropriate her
oshima
2014/11/05 21:42:17
Looks like we have inconsistent use of app/system.
Avi (use Gerrit)
2014/11/05 21:50:40
I made my suggestion for "AppModal". I don't like
| |
| 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 |