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

Unified Diff: chrome/browser/views/modal_dialog_delegate.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/jsmessage_box_dialog.cc ('k') | chrome/browser/views/modal_dialog_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/views/modal_dialog_delegate.h
===================================================================
--- chrome/browser/views/modal_dialog_delegate.h (revision 0)
+++ chrome/browser/views/modal_dialog_delegate.h (revision 0)
@@ -0,0 +1,32 @@
+// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_VIEWS_MODAL_DIALOG_DELEGATE_H_
+#define CHROME_BROWSER_VIEWS_MODAL_DIALOG_DELEGATE_H_
+
+#include <string>
+
+#include "views/window/dialog_delegate.h"
+
+namespace views {
+class Window;
+}
+
+class ModalDialogDelegate : public views::DialogDelegate {
+ public:
+ virtual ~ModalDialogDelegate() {}
+ // Methods called from AppModalDialog.
+ virtual gfx::NativeWindow GetDialogRootWindow() = 0;
+ virtual void ShowModalDialog();
+ virtual void ActivateModalDialog();
+ virtual void CloseModalDialog();
+ protected:
+ ModalDialogDelegate();
+
+ // The dialog if it is currently visible.
+ views::Window* dialog_;
+};
+
+#endif // CHROME_BROWSER_VIEWS_MODAL_DIALOG_DELEGATE_H_
+
Property changes on: chrome/browser/views/modal_dialog_delegate.h
___________________________________________________________________
Name: svn:eol-style
+ LF
« no previous file with comments | « chrome/browser/views/jsmessage_box_dialog.cc ('k') | chrome/browser/views/modal_dialog_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698