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

Unified Diff: chrome/browser/app_modal_dialog_delegate.h

Issue 27080: AppModalDialogQueue shouldn't depend on views. (Closed) Base URL: svn://chrome-svn.corp.google.com/chrome/trunk/src/
Patch Set: '' Created 11 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 | « no previous file | chrome/browser/app_modal_dialog_queue.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/app_modal_dialog_delegate.h
===================================================================
--- chrome/browser/app_modal_dialog_delegate.h (revision 10204)
+++ chrome/browser/app_modal_dialog_delegate.h (working copy)
@@ -2,24 +2,35 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_VIEWS_APP_MODAL_DIALOG_DELEGATE_H__
-#define CHROME_VIEWS_APP_MODAL_DIALOG_DELEGATE_H__
+#ifndef CHROME_BROWSER_APP_MODAL_DIALOG_DELEGATE_H_
+#define CHROME_BROWSER_APP_MODAL_DIALOG_DELEGATE_H_
-#include "chrome/views/dialog_delegate.h"
-
+#if defined(OS_WIN)
namespace views {
+class DialogDelegate;
+}
+#endif
+class AppModalDialogDelegateTesting {
+ public:
+#if defined(OS_WIN)
+ virtual views::DialogDelegate* GetDialogDelegate() = 0;
+#endif
+};
+
// Pure virtual interface for a window which is app modal.
-class AppModalDialogDelegate : public DialogDelegate {
+class AppModalDialogDelegate {
public:
// Called by the app modal window queue when it is time to show this window.
virtual void ShowModalDialog() = 0;
// Called by the app modal window queue to activate the window.
virtual void ActivateModalDialog() = 0;
+
+ // Returns the interface used to control this dialog from testing. Should
+ // only be used in testing code.
+ virtual AppModalDialogDelegateTesting* GetTestingInterface() = 0;
};
-} // namespace views
+#endif // #ifndef CHROME_BROWSER_APP_MODAL_DIALOG_DELEGATE_H_
-#endif // #ifndef CHROME_VIEWS_APP_MODAL_DIALOG_DELEGATE_H__
-
Property changes on: chrome\browser\app_modal_dialog_delegate.h
___________________________________________________________________
Added: svn:mergeinfo
Merged /branches/chrome_webkit_merge_branch/chrome/views/app_modal_dialog_delegate.h:r69-2775
« no previous file with comments | « no previous file | chrome/browser/app_modal_dialog_queue.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698