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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/app_modal_dialog_queue.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:mergeinfo
Merged /branches/chrome_webkit_merge_branch/chrome/views/app_modal_dialog_delegate.h:r69-2775
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_VIEWS_APP_MODAL_DIALOG_DELEGATE_H__ 5 #ifndef CHROME_BROWSER_APP_MODAL_DIALOG_DELEGATE_H_
6 #define CHROME_VIEWS_APP_MODAL_DIALOG_DELEGATE_H__ 6 #define CHROME_BROWSER_APP_MODAL_DIALOG_DELEGATE_H_
7 7
8 #include "chrome/views/dialog_delegate.h" 8 #if defined(OS_WIN)
9 namespace views {
10 class DialogDelegate;
11 }
12 #endif
9 13
10 namespace views { 14 class AppModalDialogDelegateTesting {
15 public:
16 #if defined(OS_WIN)
17 virtual views::DialogDelegate* GetDialogDelegate() = 0;
18 #endif
19 };
11 20
12 // Pure virtual interface for a window which is app modal. 21 // Pure virtual interface for a window which is app modal.
13 class AppModalDialogDelegate : public DialogDelegate { 22 class AppModalDialogDelegate {
14 public: 23 public:
15 // Called by the app modal window queue when it is time to show this window. 24 // Called by the app modal window queue when it is time to show this window.
16 virtual void ShowModalDialog() = 0; 25 virtual void ShowModalDialog() = 0;
17 26
18 // Called by the app modal window queue to activate the window. 27 // Called by the app modal window queue to activate the window.
19 virtual void ActivateModalDialog() = 0; 28 virtual void ActivateModalDialog() = 0;
29
30 // Returns the interface used to control this dialog from testing. Should
31 // only be used in testing code.
32 virtual AppModalDialogDelegateTesting* GetTestingInterface() = 0;
20 }; 33 };
21 34
22 } // namespace views 35 #endif // #ifndef CHROME_BROWSER_APP_MODAL_DIALOG_DELEGATE_H_
23 36
24 #endif // #ifndef CHROME_VIEWS_APP_MODAL_DIALOG_DELEGATE_H__
25
OLDNEW
« 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