Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(344)

Side by Side Diff: chrome/browser/ui/views/profiles/force_signout_dialog_view.h

Issue 2862653002: If force-sign-in policy is enabled, popup warning dialog before window closing if auth token becom… (Closed)
Patch Set: fixup Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698