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 "base/macros.h" | |
9 #include "components/app_modal/native_app_modal_dialog.h" | |
10 #include "ui/views/controls/button/button.h" | |
11 #include "ui/views/window/dialog_delegate.h" | |
12 | |
13 class Browser; | |
14 class ForceSignoutDialog; | |
15 | |
16 // The view of ForceSignoutDialog | |
17 class ForceSignoutDialogView : public views::DialogDelegateView, | |
18 public app_modal::NativeAppModalDialog { | |
19 public: | |
20 ForceSignoutDialogView(Browser* browser, ForceSignoutDialog* dialog); | |
21 | |
22 bool Accept() override; | |
sky
2017/05/04 03:45:12
Prefix where overrides come from, e.g.:
// DialogD
zmin
2017/05/04 23:13:53
Done.
| |
23 bool Cancel() override; | |
24 | |
25 base::string16 GetWindowTitle() const override; | |
26 base::string16 GetDialogButtonLabel(ui::DialogButton button) const override; | |
27 int GetDialogButtons() const override; | |
28 ui::ModalType GetModalType() const override; | |
29 void ViewHierarchyChanged( | |
30 const ViewHierarchyChangedDetails& details) override; | |
31 | |
32 int GetAppModalDialogButtons() const override; | |
33 void ShowAppModalDialog() override; | |
34 void ActivateAppModalDialog() override; | |
35 void CloseAppModalDialog() override; | |
36 void AcceptAppModalDialog() override; | |
37 void CancelAppModalDialog() override; | |
38 bool IsShowing() const override; | |
39 | |
40 private: | |
41 ~ForceSignoutDialogView() override; | |
42 | |
43 ForceSignoutDialog* dialog_; | |
44 }; | |
45 | |
46 #endif // CHROME_BROWSER_UI_VIEWS_PROFILES_FORCE_SIGNOUT_DIALOG_VIEW_H_ | |
OLD | NEW |