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

Side by Side Diff: chrome/browser/ui/views/sync/profile_signin_confirmation_dialog_views.h

Issue 628773002: replace OVERRIDE and FINAL with override and final in chrome/browser/ui/[t-v]* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
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 26 matching lines...) Expand all
37 ui::ProfileSigninConfirmationDelegate* delegate); 37 ui::ProfileSigninConfirmationDelegate* delegate);
38 38
39 private: 39 private:
40 ProfileSigninConfirmationDialogViews( 40 ProfileSigninConfirmationDialogViews(
41 Browser* browser, 41 Browser* browser,
42 const std::string& username, 42 const std::string& username,
43 ui::ProfileSigninConfirmationDelegate* delegate); 43 ui::ProfileSigninConfirmationDelegate* delegate);
44 virtual ~ProfileSigninConfirmationDialogViews(); 44 virtual ~ProfileSigninConfirmationDialogViews();
45 45
46 // views::DialogDelegateView: 46 // views::DialogDelegateView:
47 virtual base::string16 GetWindowTitle() const OVERRIDE; 47 virtual base::string16 GetWindowTitle() const override;
48 virtual base::string16 GetDialogButtonLabel( 48 virtual base::string16 GetDialogButtonLabel(
49 ui::DialogButton button) const OVERRIDE; 49 ui::DialogButton button) const override;
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 gfx::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
71 // Weak ptr to label for dialog explanation text. 71 // Weak ptr to label for dialog explanation text.
72 views::StyledLabel* explanation_label_; 72 views::StyledLabel* explanation_label_;
73 73
74 // Weak ptr to parent view. 74 // Weak ptr to parent view.
75 Browser* browser_; 75 Browser* browser_;
76 76
77 // The GAIA username being signed in. 77 // The GAIA username being signed in.
78 std::string username_; 78 std::string username_;
79 79
80 // Dialog button handler. 80 // Dialog button handler.
81 ui::ProfileSigninConfirmationDelegate* delegate_; 81 ui::ProfileSigninConfirmationDelegate* delegate_;
82 82
83 // Whether the user should be prompted to create a new profile. 83 // Whether the user should be prompted to create a new profile.
84 bool prompt_for_new_profile_; 84 bool prompt_for_new_profile_;
85 85
86 // The button to continue with signin, if an extra button is required. 86 // The button to continue with signin, if an extra button is required.
87 views::LabelButton* continue_signin_button_; 87 views::LabelButton* continue_signin_button_;
88 88
89 DISALLOW_COPY_AND_ASSIGN(ProfileSigninConfirmationDialogViews); 89 DISALLOW_COPY_AND_ASSIGN(ProfileSigninConfirmationDialogViews);
90 }; 90 };
91 91
92 #endif // CHROME_BROWSER_UI_VIEWS_SYNC_PROFILE_SIGNIN_CONFIRMATION_DIALOG_VIEWS _H_ 92 #endif // CHROME_BROWSER_UI_VIEWS_SYNC_PROFILE_SIGNIN_CONFIRMATION_DIALOG_VIEWS _H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698