summaryrefslogtreecommitdiffstats
path: root/chrome/browser/importer/importer.h
diff options
context:
space:
mode:
authorkuchhal@chromium.org <kuchhal@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-19 16:14:58 +0000
committerkuchhal@chromium.org <kuchhal@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-19 16:14:58 +0000
commitb73cfc891d2573ab913fd029f6241df4e7907d3d (patch)
tree8a339dc500fd1e71e23fa4e4f33cc261b348ccd7 /chrome/browser/importer/importer.h
parent8227045e458705c27ca116a02fd7b9b9a75237ae (diff)
downloadchromium_src-b73cfc891d2573ab913fd029f6241df4e7907d3d.zip
chromium_src-b73cfc891d2573ab913fd029f6241df4e7907d3d.tar.gz
chromium_src-b73cfc891d2573ab913fd029f6241df4e7907d3d.tar.bz2
Linux: make import warning dialog modal.
Make ImporterHost aware of the current parent window and use that as parent for the warning dialog. BUG=13481 TEST=Start Firefox, try to import profile in Chrome and make sure the warning dialog is modal. Review URL: http://codereview.chromium.org/131080 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18816 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/importer/importer.h')
-rw-r--r--chrome/browser/importer/importer.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/chrome/browser/importer/importer.h b/chrome/browser/importer/importer.h
index c7360fd..93ed19b 100644
--- a/chrome/browser/importer/importer.h
+++ b/chrome/browser/importer/importer.h
@@ -223,6 +223,10 @@ class ImporterHost : public base::RefCounted<ImporterHost>,
return headless_;
}
+ void set_parent_window(gfx::NativeWindow parent_window) {
+ parent_window_ = parent_window;
+ }
+
// An interface which an object can implement to be notified of events during
// the import process.
class Observer {
@@ -310,6 +314,9 @@ class ImporterHost : public base::RefCounted<ImporterHost>,
// True if UI is not to be shown.
bool headless_;
+ // Parent Window to use when showing any modal dialog boxes.
+ gfx::NativeWindow parent_window_;
+
// Firefox profile lock.
scoped_ptr<FirefoxProfileLock> firefox_lock_;