summaryrefslogtreecommitdiffstats
path: root/chrome/browser/chromeos/options/internet_page_view.cc
diff options
context:
space:
mode:
authorxiyuan@chromium.org <xiyuan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-21 20:29:27 +0000
committerxiyuan@chromium.org <xiyuan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-21 20:29:27 +0000
commit883bdd89eea4cfbbd87342ba9212de8cccb6bdab (patch)
tree3c2833b03e37f2ce211aa0d73c85ef37a0209dbe /chrome/browser/chromeos/options/internet_page_view.cc
parent2c4147f58b41e4a0c4d4f1ee2c8ca324bd469a74 (diff)
downloadchromium_src-883bdd89eea4cfbbd87342ba9212de8cccb6bdab.zip
chromium_src-883bdd89eea4cfbbd87342ba9212de8cccb6bdab.tar.gz
chromium_src-883bdd89eea4cfbbd87342ba9212de8cccb6bdab.tar.bz2
Make all options dialogs have a parent
Use last active browser window as options dialogs parent because window manager only repsect top-level window as parent for now. That is, we could not use options dialog as its sub dialoags' parent. BUG=none TEST=Verify all sub dialogs from options are not treated as toplevel window (ie they do not occupy the fulll screen). Review URL: http://codereview.chromium.org/1751003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@45232 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/chromeos/options/internet_page_view.cc')
-rw-r--r--chrome/browser/chromeos/options/internet_page_view.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/chrome/browser/chromeos/options/internet_page_view.cc b/chrome/browser/chromeos/options/internet_page_view.cc
index 25b957d..a34bb19 100644
--- a/chrome/browser/chromeos/options/internet_page_view.cc
+++ b/chrome/browser/chromeos/options/internet_page_view.cc
@@ -9,6 +9,7 @@
#include "app/combobox_model.h"
#include "chrome/browser/chromeos/cros/cros_library.h"
#include "chrome/browser/chromeos/options/network_config_view.h"
+#include "chrome/browser/chromeos/options/options_window_view.h"
#include "chrome/browser/chromeos/status/network_menu_button.h"
#include "grit/generated_resources.h"
#include "grit/theme_resources.h"
@@ -202,10 +203,8 @@ void NetworkSection::AddNetwork(int id, const SkBitmap& icon,
}
void NetworkSection::CreateModalPopup(views::WindowDelegate* view) {
- GtkWidget* widget = gtk_widget_get_ancestor(
- parent_->GetWidget()->GetNativeView(), GTK_TYPE_WINDOW);
views::Window* window = views::Window::CreateChromeWindow(
- widget ? GTK_WINDOW(widget) : NULL, gfx::Rect(), view);
+ GetOptionsViewParent(), gfx::Rect(), view);
window->SetIsAlwaysOnTop(true);
window->Show();
}