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; | |
55 ui::ModalType GetModalType() const override; | 54 ui::ModalType GetModalType() const override; |
56 void ViewHierarchyChanged( | 55 void ViewHierarchyChanged( |
57 const ViewHierarchyChangedDetails& details) override; | 56 const ViewHierarchyChangedDetails& details) override; |
58 | 57 |
| 58 // views::WidgetDelegate:: |
| 59 void WindowClosing() override; |
| 60 |
59 // views::StyledLabelListener: | 61 // views::StyledLabelListener: |
60 void StyledLabelLinkClicked(views::StyledLabel* label, | 62 void StyledLabelLinkClicked(views::StyledLabel* label, |
61 const gfx::Range& range, | 63 const gfx::Range& range, |
62 int event_flags) override; | 64 int event_flags) override; |
63 | 65 |
64 // views::ButtonListener: | 66 // views::ButtonListener: |
65 void ButtonPressed(views::Button*, const ui::Event& event) override; | 67 void ButtonPressed(views::Button*, const ui::Event& event) override; |
66 | 68 |
67 // Shows the dialog and releases ownership of this object. It will | 69 // Shows the dialog and releases ownership of this object. It will |
68 // delete itself when the dialog is closed. If |prompt_for_new_profile| | 70 // delete itself when the dialog is closed. If |prompt_for_new_profile| |
(...skipping 15 matching lines...) Expand all Loading... |
84 // Whether the user should be prompted to create a new profile. | 86 // Whether the user should be prompted to create a new profile. |
85 bool prompt_for_new_profile_; | 87 bool prompt_for_new_profile_; |
86 | 88 |
87 // The button to continue with signin, if an extra button is required. | 89 // The button to continue with signin, if an extra button is required. |
88 views::LabelButton* continue_signin_button_; | 90 views::LabelButton* continue_signin_button_; |
89 | 91 |
90 DISALLOW_COPY_AND_ASSIGN(ProfileSigninConfirmationDialogViews); | 92 DISALLOW_COPY_AND_ASSIGN(ProfileSigninConfirmationDialogViews); |
91 }; | 93 }; |
92 | 94 |
93 #endif // CHROME_BROWSER_UI_VIEWS_SYNC_PROFILE_SIGNIN_CONFIRMATION_DIALOG_VIEWS
_H_ | 95 #endif // CHROME_BROWSER_UI_VIEWS_SYNC_PROFILE_SIGNIN_CONFIRMATION_DIALOG_VIEWS
_H_ |
OLD | NEW |