summaryrefslogtreecommitdiffstats
path: root/components/web_modal
diff options
context:
space:
mode:
authorwittman@chromium.org <wittman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-08-21 04:08:56 +0000
committerwittman@chromium.org <wittman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-08-21 04:08:56 +0000
commit25a1377226e0d2bcea512ef9b68a7a82316dd5c6 (patch)
tree50ee43b9b8c339f3bfe1864726a69bdc01fc3690 /components/web_modal
parentfc7218e30364b31fcfc314db1dc21501858c2657 (diff)
downloadchromium_src-25a1377226e0d2bcea512ef9b68a7a82316dd5c6.zip
chromium_src-25a1377226e0d2bcea512ef9b68a7a82316dd5c6.tar.gz
chromium_src-25a1377226e0d2bcea512ef9b68a7a82316dd5c6.tar.bz2
Observe WebContentsModalDialogHost from NativeWebContentsModalDialogManagerViews
Replace per-Widget observers of WebContentsModalDialogHost with a single observer for all web contents modal dialogs associated with the same WebContents. This is a step towards reducing dependencies of web contents modal dialog creation, to support future changes to move the creation code within ui/views. Also add WebContentsModalDialogHostObserver::OnHostDestroying(). This is needed since NativeWebContentsModalDialogManagerViews can be destroyed after the WebContentsModalDialogHost. BUG=271746 Review URL: https://chromiumcodereview.appspot.com/23201010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@218640 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'components/web_modal')
-rw-r--r--components/web_modal/web_contents_modal_dialog_host.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/components/web_modal/web_contents_modal_dialog_host.h b/components/web_modal/web_contents_modal_dialog_host.h
index 499925c..b14c6e8 100644
--- a/components/web_modal/web_contents_modal_dialog_host.h
+++ b/components/web_modal/web_contents_modal_dialog_host.h
@@ -18,6 +18,7 @@ class WebContentsModalDialogHostObserver {
virtual ~WebContentsModalDialogHostObserver();
virtual void OnPositionRequiresUpdate() = 0;
+ virtual void OnHostDestroying() = 0;
protected:
WebContentsModalDialogHostObserver();