OLD | NEW |
(Empty) | |
| 1 // Copyright 2017 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_PROFILES_FORCE_SIGNOUT_DIALOG_VIEW_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_PROFILES_FORCE_SIGNOUT_DIALOG_VIEW_H_ |
| 7 |
| 8 #include <memory> |
| 9 |
| 10 #include "base/macros.h" |
| 11 #include "ui/views/controls/button/button.h" |
| 12 #include "ui/views/window/dialog_delegate.h" |
| 13 |
| 14 class Browser; |
| 15 class ForceSignoutDialog; |
| 16 |
| 17 // The view of ForceSignoutDialog |
| 18 class ForceSignoutDialogView : public views::DialogDelegateView { |
| 19 public: |
| 20 ForceSignoutDialogView(Browser* browser, |
| 21 std::unique_ptr<ForceSignoutDialog> dialog); |
| 22 |
| 23 // views::DialogDelegateView |
| 24 bool Accept() override; |
| 25 bool Cancel() override; |
| 26 base::string16 GetWindowTitle() const override; |
| 27 base::string16 GetDialogButtonLabel(ui::DialogButton button) const override; |
| 28 int GetDialogButtons() const override; |
| 29 ui::ModalType GetModalType() const override; |
| 30 |
| 31 // views::View |
| 32 void AddedToWidget() override; |
| 33 |
| 34 void ActivateModalDialog(); |
| 35 bool IsShowing() const; |
| 36 |
| 37 private: |
| 38 ~ForceSignoutDialogView() override; |
| 39 |
| 40 std::unique_ptr<ForceSignoutDialog> dialog_; |
| 41 }; |
| 42 |
| 43 #endif // CHROME_BROWSER_UI_VIEWS_PROFILES_FORCE_SIGNOUT_DIALOG_VIEW_H_ |
OLD | NEW |