| OLD | NEW |
| 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 | |
| OLD | NEW |