Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(311)

Unified Diff: chrome/browser/chromeos/options/network_config_view.h

Issue 2426473009: mash: Place views Wi-Fi network config dialogs in correct window parent (Closed)
Patch Set: rebase Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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();

Powered by Google App Engine
This is Rietveld 408576698