OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_VIEWS_MODAL_DIALOG_DELEGATE_H_ |
| 6 #define CHROME_BROWSER_VIEWS_MODAL_DIALOG_DELEGATE_H_ |
| 7 |
| 8 #include <string> |
| 9 |
| 10 #include "views/window/dialog_delegate.h" |
| 11 |
| 12 namespace views { |
| 13 class Window; |
| 14 } |
| 15 |
| 16 class ModalDialogDelegate : public views::DialogDelegate { |
| 17 public: |
| 18 virtual ~ModalDialogDelegate() {} |
| 19 // Methods called from AppModalDialog. |
| 20 virtual gfx::NativeWindow GetDialogRootWindow() = 0; |
| 21 virtual void ShowModalDialog(); |
| 22 virtual void ActivateModalDialog(); |
| 23 virtual void CloseModalDialog(); |
| 24 protected: |
| 25 ModalDialogDelegate(); |
| 26 |
| 27 // The dialog if it is currently visible. |
| 28 views::Window* dialog_; |
| 29 }; |
| 30 |
| 31 #endif // CHROME_BROWSER_VIEWS_MODAL_DIALOG_DELEGATE_H_ |
| 32 |
OLD | NEW |