OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_UI_VIEWS_SYNC_PROFILE_SIGNIN_CONFIRMATION_DIALOG_VIEWS_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_SYNC_PROFILE_SIGNIN_CONFIRMATION_DIALOG_VIEWS_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_SYNC_PROFILE_SIGNIN_CONFIRMATION_DIALOG_VIEWS_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_SYNC_PROFILE_SIGNIN_CONFIRMATION_DIALOG_VIEWS_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
10 #include "chrome/browser/ui/sync/profile_signin_confirmation_helper.h" | 10 #include "chrome/browser/ui/sync/profile_signin_confirmation_helper.h" |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 ui::ProfileSigninConfirmationDelegate* delegate); | 44 ui::ProfileSigninConfirmationDelegate* delegate); |
45 ~ProfileSigninConfirmationDialogViews() override; | 45 ~ProfileSigninConfirmationDialogViews() override; |
46 | 46 |
47 // views::DialogDelegateView: | 47 // views::DialogDelegateView: |
48 base::string16 GetWindowTitle() const override; | 48 base::string16 GetWindowTitle() const override; |
49 base::string16 GetDialogButtonLabel(ui::DialogButton button) const override; | 49 base::string16 GetDialogButtonLabel(ui::DialogButton button) const override; |
50 int GetDefaultDialogButton() const override; | 50 int GetDefaultDialogButton() const override; |
51 views::View* CreateExtraView() override; | 51 views::View* CreateExtraView() override; |
52 bool Accept() override; | 52 bool Accept() override; |
53 bool Cancel() override; | 53 bool Cancel() override; |
| 54 void OnClosed() override; |
54 ui::ModalType GetModalType() const override; | 55 ui::ModalType GetModalType() const override; |
55 void ViewHierarchyChanged( | 56 void ViewHierarchyChanged( |
56 const ViewHierarchyChangedDetails& details) override; | 57 const ViewHierarchyChangedDetails& details) override; |
57 | 58 |
58 // views::WidgetDelegate:: | |
59 void WindowClosing() override; | |
60 | |
61 // views::StyledLabelListener: | 59 // views::StyledLabelListener: |
62 void StyledLabelLinkClicked(views::StyledLabel* label, | 60 void StyledLabelLinkClicked(views::StyledLabel* label, |
63 const gfx::Range& range, | 61 const gfx::Range& range, |
64 int event_flags) override; | 62 int event_flags) override; |
65 | 63 |
66 // views::ButtonListener: | 64 // views::ButtonListener: |
67 void ButtonPressed(views::Button*, const ui::Event& event) override; | 65 void ButtonPressed(views::Button*, const ui::Event& event) override; |
68 | 66 |
69 // Shows the dialog and releases ownership of this object. It will | 67 // Shows the dialog and releases ownership of this object. It will |
70 // delete itself when the dialog is closed. If |prompt_for_new_profile| | 68 // delete itself when the dialog is closed. If |prompt_for_new_profile| |
(...skipping 15 matching lines...) Expand all Loading... |
86 // Whether the user should be prompted to create a new profile. | 84 // Whether the user should be prompted to create a new profile. |
87 bool prompt_for_new_profile_; | 85 bool prompt_for_new_profile_; |
88 | 86 |
89 // The button to continue with signin, if an extra button is required. | 87 // The button to continue with signin, if an extra button is required. |
90 views::LabelButton* continue_signin_button_; | 88 views::LabelButton* continue_signin_button_; |
91 | 89 |
92 DISALLOW_COPY_AND_ASSIGN(ProfileSigninConfirmationDialogViews); | 90 DISALLOW_COPY_AND_ASSIGN(ProfileSigninConfirmationDialogViews); |
93 }; | 91 }; |
94 | 92 |
95 #endif // CHROME_BROWSER_UI_VIEWS_SYNC_PROFILE_SIGNIN_CONFIRMATION_DIALOG_VIEWS
_H_ | 93 #endif // CHROME_BROWSER_UI_VIEWS_SYNC_PROFILE_SIGNIN_CONFIRMATION_DIALOG_VIEWS
_H_ |
OLD | NEW |