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