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

Unified Diff: chrome/browser/ui/native_web_contents_modal_dialog_manager.h

Issue 12221055: Use a uniform opaque type to represent web contents modal dialogs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: disable unused webui certificate viewer on linux Created 7 years, 10 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/ui/native_web_contents_modal_dialog_manager.h
diff --git a/chrome/browser/ui/native_web_contents_modal_dialog_manager.h b/chrome/browser/ui/native_web_contents_modal_dialog_manager.h
index 7630b8c9ee010b5417c099c0ff30752d4d2d7e67..c40596ff2c0fa1609ee25551a2b1802442cb6bc6 100644
--- a/chrome/browser/ui/native_web_contents_modal_dialog_manager.h
+++ b/chrome/browser/ui/native_web_contents_modal_dialog_manager.h
@@ -5,22 +5,24 @@
#ifndef CHROME_BROWSER_UI_NATIVE_WEB_CONTENTS_MODAL_DIALOG_MANAGER_H_
#define CHROME_BROWSER_UI_NATIVE_WEB_CONTENTS_MODAL_DIALOG_MANAGER_H_
-#include "ui/gfx/native_widget_types.h"
+#include "chrome/browser/ui/native_web_contents_modal_dialog.h"
// Provides an interface for platform-specific UI implementation for the web
// contents modal dialog.
class NativeWebContentsModalDialogManager {
public:
- NativeWebContentsModalDialogManager() {}
virtual ~NativeWebContentsModalDialogManager() {}
// Starts management of the modal aspects of the dialog. This function should
// also register to be notified when the dialog is closing, so that it can
// notify the manager.
- virtual void ManageDialog(gfx::NativeWindow window) = 0;
+ virtual void ManageDialog(NativeWebContentsModalDialog dialog) = 0;
// Closes the web contents modal dialog.
- virtual void CloseDialog(gfx::NativeWindow window) = 0;
+ virtual void CloseDialog(NativeWebContentsModalDialog dialog) = 0;
+
+ protected:
+ NativeWebContentsModalDialogManager() {}
private:
DISALLOW_COPY_AND_ASSIGN(NativeWebContentsModalDialogManager);
« no previous file with comments | « chrome/browser/ui/native_web_contents_modal_dialog.h ('k') | chrome/browser/ui/views/constrained_window_views.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698