| 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 "chrome/browser/ui/sync/profile_signin_confirmation_helper.h" | 9 #include "chrome/browser/ui/sync/profile_signin_confirmation_helper.h" |
| 10 #include "ui/views/controls/button/button.h" | 10 #include "ui/views/controls/button/button.h" |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 virtual int GetDefaultDialogButton() const OVERRIDE; | 50 virtual int GetDefaultDialogButton() const OVERRIDE; |
| 51 virtual views::View* CreateExtraView() OVERRIDE; | 51 virtual views::View* CreateExtraView() OVERRIDE; |
| 52 virtual bool Accept() OVERRIDE; | 52 virtual bool Accept() OVERRIDE; |
| 53 virtual bool Cancel() OVERRIDE; | 53 virtual bool Cancel() OVERRIDE; |
| 54 virtual void OnClosed() OVERRIDE; | 54 virtual void OnClosed() OVERRIDE; |
| 55 virtual ui::ModalType GetModalType() const OVERRIDE; | 55 virtual ui::ModalType GetModalType() const OVERRIDE; |
| 56 virtual void ViewHierarchyChanged( | 56 virtual void ViewHierarchyChanged( |
| 57 const ViewHierarchyChangedDetails& details) OVERRIDE; | 57 const ViewHierarchyChangedDetails& details) OVERRIDE; |
| 58 | 58 |
| 59 // views::StyledLabelListener: | 59 // views::StyledLabelListener: |
| 60 virtual void StyledLabelLinkClicked(const ui::Range& range, | 60 virtual void StyledLabelLinkClicked(const gfx::Range& range, |
| 61 int event_flags) OVERRIDE; | 61 int event_flags) OVERRIDE; |
| 62 | 62 |
| 63 // views::ButtonListener: | 63 // views::ButtonListener: |
| 64 virtual void ButtonPressed(views::Button*, const ui::Event& event) OVERRIDE; | 64 virtual void ButtonPressed(views::Button*, const ui::Event& event) OVERRIDE; |
| 65 | 65 |
| 66 // Shows the dialog and releases ownership of this object. It will | 66 // Shows the dialog and releases ownership of this object. It will |
| 67 // delete itself when the dialog is closed. If |prompt_for_new_profile| | 67 // delete itself when the dialog is closed. If |prompt_for_new_profile| |
| 68 // is true, the dialog will offer to create a new profile before signin. | 68 // is true, the dialog will offer to create a new profile before signin. |
| 69 void Show(bool prompt_for_new_profile); | 69 void Show(bool prompt_for_new_profile); |
| 70 | 70 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 86 // Whether the user should be prompted to create a new profile. | 86 // Whether the user should be prompted to create a new profile. |
| 87 bool prompt_for_new_profile_; | 87 bool prompt_for_new_profile_; |
| 88 | 88 |
| 89 // 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. |
| 90 views::LabelButton* continue_signin_button_; | 90 views::LabelButton* continue_signin_button_; |
| 91 | 91 |
| 92 DISALLOW_COPY_AND_ASSIGN(ProfileSigninConfirmationDialogViews); | 92 DISALLOW_COPY_AND_ASSIGN(ProfileSigninConfirmationDialogViews); |
| 93 }; | 93 }; |
| 94 | 94 |
| 95 #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 |