summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/web_contents_modal_dialog_manager.h
diff options
context:
space:
mode:
authorwittman@chromium.org <wittman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-02-25 23:32:03 +0000
committerwittman@chromium.org <wittman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-02-25 23:32:03 +0000
commitcc687ec560fb4889c42d331784d4a3f805427b55 (patch)
treebc8526f9ee7a8f2f75f204cb39804028e1d70982 /chrome/browser/ui/web_contents_modal_dialog_manager.h
parent564f10664749f79f945edd6f6e5cec993f1067ac (diff)
downloadchromium_src-cc687ec560fb4889c42d331784d4a3f805427b55.zip
chromium_src-cc687ec560fb4889c42d331784d4a3f805427b55.tar.gz
chromium_src-cc687ec560fb4889c42d331784d4a3f805427b55.tar.bz2
Use opaque type to reference web contents modal dialog in WebContentsModalDialogManager
This CL is part 5 of 6 in the work to remove the WebContentsModalDialog interface. It removes the remaining references to the WebContentsModalDialog interface in WebContentsModalDialogManager and replaces them with the new opaque NativeWebContentsModalDialog type. This builds on part 4 in https://codereview.chromium.org/12280016. BUG=157161 Review URL: https://chromiumcodereview.appspot.com/12283024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@184514 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/ui/web_contents_modal_dialog_manager.h')
-rw-r--r--chrome/browser/ui/web_contents_modal_dialog_manager.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/chrome/browser/ui/web_contents_modal_dialog_manager.h b/chrome/browser/ui/web_contents_modal_dialog_manager.h
index 98b1eac..e14b05f0 100644
--- a/chrome/browser/ui/web_contents_modal_dialog_manager.h
+++ b/chrome/browser/ui/web_contents_modal_dialog_manager.h
@@ -32,7 +32,7 @@ class WebContentsModalDialogManager
// Adds the given dialog to the list of child dialogs. The dialog will notify
// via WillClose() when it is being destroyed.
- void AddDialog(WebContentsModalDialog* dialog);
+ void AddDialog(NativeWebContentsModalDialog dialog);
// Blocks/unblocks interaction with renderer process.
void BlockWebContentsInteraction(bool blocked);
@@ -46,7 +46,7 @@ class WebContentsModalDialogManager
// Overriden from NativeWebContentsModalDialogManagerDelegate:
// Called when a WebContentsModalDialogs we own is about to be closed.
- virtual void WillClose(WebContentsModalDialog* dialog) OVERRIDE;
+ virtual void WillClose(NativeWebContentsModalDialog dialog) OVERRIDE;
// For testing.
class TestApi {
@@ -69,7 +69,7 @@ class WebContentsModalDialogManager
explicit WebContentsModalDialogManager(content::WebContents* web_contents);
friend class content::WebContentsUserData<WebContentsModalDialogManager>;
- typedef std::deque<WebContentsModalDialog*> WebContentsModalDialogList;
+ typedef std::deque<NativeWebContentsModalDialog> WebContentsModalDialogList;
// Returns the number of dialogs in this tab.
size_t dialog_count() const { return child_dialogs_.size(); }