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

Unified Diff: chrome/browser/views/jsmessage_box_dialog.h

Issue 560030: Refactored out JS specific part of modal dialog stack into its own class, exp... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 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
« no previous file with comments | « chrome/browser/views/cookie_prompt_view.cc ('k') | chrome/browser/views/jsmessage_box_dialog.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/views/jsmessage_box_dialog.h
===================================================================
--- chrome/browser/views/jsmessage_box_dialog.h (revision 38222)
+++ chrome/browser/views/jsmessage_box_dialog.h (working copy)
@@ -5,30 +5,28 @@
#ifndef CHROME_BROWSER_VIEWS_JSMESSAGE_BOX_DIALOG_H_
#define CHROME_BROWSER_VIEWS_JSMESSAGE_BOX_DIALOG_H_
+#include "chrome/browser/js_modal_dialog.h"
+
#include <string>
-#include "chrome/browser/app_modal_dialog.h"
-#include "views/window/dialog_delegate.h"
+#include "app/message_box_flags.h"
+#include "chrome/browser/jsmessage_box_client.h"
+#include "chrome/browser/views/modal_dialog_delegate.h"
class MessageBoxView;
class JavaScriptMessageBoxClient;
-namespace views {
-class Window;
-}
-class JavascriptMessageBoxDialog : public views::DialogDelegate {
+class JavaScriptMessageBoxDialog : public ModalDialogDelegate {
public:
- JavascriptMessageBoxDialog(AppModalDialog* parent,
+ JavaScriptMessageBoxDialog(JavaScriptAppModalDialog* parent,
const std::wstring& message_text,
const std::wstring& default_prompt_text,
bool display_suppress_checkbox);
- virtual ~JavascriptMessageBoxDialog();
+ virtual ~JavaScriptMessageBoxDialog();
- // Methods called from AppModalDialog.
- void ShowModalDialog();
- void ActivateModalDialog();
- void CloseModalDialog();
+ // ModalDialogDelegate overrides.
+ virtual gfx::NativeWindow GetDialogRootWindow();
// views::DialogDelegate Methods:
virtual int GetDialogButtons() const;
@@ -52,15 +50,12 @@
}
// A pointer to the AppModalDialog that owns us.
- AppModalDialog* parent_;
+ JavaScriptAppModalDialog* parent_;
// The message box view whose commands we handle.
MessageBoxView* message_box_view_;
- // The dialog if it is currently visible.
- views::Window* dialog_;
-
- DISALLOW_COPY_AND_ASSIGN(JavascriptMessageBoxDialog);
+ DISALLOW_COPY_AND_ASSIGN(JavaScriptMessageBoxDialog);
};
#endif // CHROME_BROWSER_VIEWS_JSMESSAGE_BOX_DIALOG_H_
« no previous file with comments | « chrome/browser/views/cookie_prompt_view.cc ('k') | chrome/browser/views/jsmessage_box_dialog.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698