Index: chrome/browser/chromeos/options/network_config_view.h |
diff --git a/chrome/browser/chromeos/options/network_config_view.h b/chrome/browser/chromeos/options/network_config_view.h |
index 9d83221efb108bb6a035c6c8afd94787c7abc217..1bf8ddcc17f7d24c4a31828486e3fcf2a7a47a3d 100644 |
--- a/chrome/browser/chromeos/options/network_config_view.h |
+++ b/chrome/browser/chromeos/options/network_config_view.h |
@@ -20,6 +20,7 @@ class ImageSkia; |
namespace views { |
class ImageView; |
+struct WidgetParent; |
} |
namespace chromeos { |
@@ -45,10 +46,13 @@ class NetworkConfigView : public views::DialogDelegateView, |
}; |
// Shows a network connection dialog if none is currently visible. |
- static void Show(const std::string& service_path, gfx::NativeWindow parent); |
+ static void Show(const std::string& service_path, |
+ const views::WidgetParent& widget_parent); |
+ |
// Shows a dialog to configure a new network. |type| must be a valid Shill |
// 'Type' property value. |
- static void ShowForType(const std::string& type, gfx::NativeWindow parent); |
+ static void ShowForType(const std::string& type, |
+ const views::WidgetParent& widget_parent); |
// Returns corresponding native window. |
gfx::NativeWindow GetNativeWindow() const; |
@@ -92,7 +96,11 @@ class NetworkConfigView : public views::DialogDelegateView, |
bool InitWithType(const std::string& type); |
// Creates and shows a dialog containing this view. |
- void ShowDialog(gfx::NativeWindow parent); |
+ void ShowDialog(const views::WidgetParent& widget_parent); |
+ |
+ // Returns InitParams to place the dialog window in the correct parent. |
+ views::Widget::InitParams GetDialogWidgetInitParams( |
+ const views::WidgetParent& widget_parent); |
// Resets the underlying view to show advanced options. |
void ShowAdvancedView(); |