Chromium Code Reviews| Index: chrome/browser/ui/views/profiles/force_signout_dialog_view.h |
| diff --git a/chrome/browser/ui/views/profiles/force_signout_dialog_view.h b/chrome/browser/ui/views/profiles/force_signout_dialog_view.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..bd54dfadc5a19c9983e562229cbd4cd07b9c936b |
| --- /dev/null |
| +++ b/chrome/browser/ui/views/profiles/force_signout_dialog_view.h |
| @@ -0,0 +1,46 @@ |
| +// Copyright 2017 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef CHROME_BROWSER_UI_VIEWS_PROFILES_FORCE_SIGNOUT_DIALOG_VIEW_H_ |
| +#define CHROME_BROWSER_UI_VIEWS_PROFILES_FORCE_SIGNOUT_DIALOG_VIEW_H_ |
| + |
| +#include "base/macros.h" |
| +#include "components/app_modal/native_app_modal_dialog.h" |
| +#include "ui/views/controls/button/button.h" |
| +#include "ui/views/window/dialog_delegate.h" |
| + |
| +class Browser; |
| +class ForceSignoutDialog; |
| + |
| +// The view of ForceSignoutDialog |
| +class ForceSignoutDialogView : public views::DialogDelegateView, |
| + public app_modal::NativeAppModalDialog { |
| + public: |
| + ForceSignoutDialogView(Browser* browser, ForceSignoutDialog* dialog); |
| + |
| + 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.
|
| + bool Cancel() override; |
| + |
| + base::string16 GetWindowTitle() const override; |
| + base::string16 GetDialogButtonLabel(ui::DialogButton button) const override; |
| + int GetDialogButtons() const override; |
| + ui::ModalType GetModalType() const override; |
| + void ViewHierarchyChanged( |
| + const ViewHierarchyChangedDetails& details) override; |
| + |
| + int GetAppModalDialogButtons() const override; |
| + void ShowAppModalDialog() override; |
| + void ActivateAppModalDialog() override; |
| + void CloseAppModalDialog() override; |
| + void AcceptAppModalDialog() override; |
| + void CancelAppModalDialog() override; |
| + bool IsShowing() const override; |
| + |
| + private: |
| + ~ForceSignoutDialogView() override; |
| + |
| + ForceSignoutDialog* dialog_; |
| +}; |
| + |
| +#endif // CHROME_BROWSER_UI_VIEWS_PROFILES_FORCE_SIGNOUT_DIALOG_VIEW_H_ |