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

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: cr 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 <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 {
sky 2017/05/17 18:03:18 Why do you need both ForceSignoutDialog and ForceS
zmin 2017/05/18 03:31:18 I created two classes at the beginning to avoid on
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698