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

Side by Side Diff: chrome/browser/ui/cocoa/profiles/profile_chooser_controller.h

Issue 2899083003: Delete unused tutorial code from profile switcher/user manager. (Closed)
Patch Set: fix merge Created 3 years, 6 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_COCOA_PROFILES_PROFILE_CHOOSER_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_PROFILES_PROFILE_CHOOSER_CONTROLLER_H_
6 #define CHROME_BROWSER_UI_COCOA_PROFILES_PROFILE_CHOOSER_CONTROLLER_H_ 6 #define CHROME_BROWSER_UI_COCOA_PROFILES_PROFILE_CHOOSER_CONTROLLER_H_
7 7
8 #import <Cocoa/Cocoa.h> 8 #import <Cocoa/Cocoa.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 46
47 // The id for the account that the user has requested to remove from the 47 // The id for the account that the user has requested to remove from the
48 // current profile. It is set in |showAccountRemovalView| and used in 48 // current profile. It is set in |showAccountRemovalView| and used in
49 // |removeAccount|. 49 // |removeAccount|.
50 std::string accountIdToRemove_; 50 std::string accountIdToRemove_;
51 NSButton *firstProfileView_; 51 NSButton *firstProfileView_;
52 52
53 // Active view mode. 53 // Active view mode.
54 profiles::BubbleViewMode viewMode_; 54 profiles::BubbleViewMode viewMode_;
55 55
56 // The current tutorial mode.
57 profiles::TutorialMode tutorialMode_;
58
59 // List of the full, un-elided accounts for the active profile. The keys are 56 // List of the full, un-elided accounts for the active profile. The keys are
60 // generated used to tag the UI buttons, and the values are the original 57 // generated used to tag the UI buttons, and the values are the original
61 // emails displayed by the buttons. 58 // emails displayed by the buttons.
62 std::map<int, std::string> currentProfileAccounts_; 59 std::map<int, std::string> currentProfileAccounts_;
63 60
64 // Web contents used by the inline signin view. 61 // Web contents used by the inline signin view.
65 std::unique_ptr<content::WebContents> webContents_; 62 std::unique_ptr<content::WebContents> webContents_;
66 std::unique_ptr<GaiaWebContentsDelegate> webContentsDelegate_; 63 std::unique_ptr<GaiaWebContentsDelegate> webContentsDelegate_;
67 64
68 // Whether the bubble is displayed for an active guest profile. 65 // Whether the bubble is displayed for an active guest profile.
69 BOOL isGuestSession_; 66 BOOL isGuestSession_;
70 67
71 // The GAIA service type that caused this menu to open. 68 // The GAIA service type that caused this menu to open.
72 signin::GAIAServiceType serviceType_; 69 signin::GAIAServiceType serviceType_;
73 70
74 // The current access point of sign in. 71 // The current access point of sign in.
75 signin_metrics::AccessPoint accessPoint_; 72 signin_metrics::AccessPoint accessPoint_;
76 } 73 }
77 74
78 - (id)initWithBrowser:(Browser*)browser 75 - (id)initWithBrowser:(Browser*)browser
79 anchoredAt:(NSPoint)point 76 anchoredAt:(NSPoint)point
80 viewMode:(profiles::BubbleViewMode)viewMode 77 viewMode:(profiles::BubbleViewMode)viewMode
81 tutorialMode:(profiles::TutorialMode)tutorialMode
82 serviceType:(signin::GAIAServiceType)GAIAServiceType 78 serviceType:(signin::GAIAServiceType)GAIAServiceType
83 accessPoint:(signin_metrics::AccessPoint)accessPoint; 79 accessPoint:(signin_metrics::AccessPoint)accessPoint;
84 80
85 // Creates all the subviews of the avatar bubble for |viewToDisplay|. 81 // Creates all the subviews of the avatar bubble for |viewToDisplay|.
86 - (void)initMenuContentsWithView:(profiles::BubbleViewMode)viewToDisplay; 82 - (void)initMenuContentsWithView:(profiles::BubbleViewMode)viewToDisplay;
87 83
88 // Returns the view currently displayed by the bubble. 84 // Returns the view currently displayed by the bubble.
89 - (profiles::BubbleViewMode)viewMode; 85 - (profiles::BubbleViewMode)viewMode;
90 86
91 // Sets the tutorial mode of the bubble.
92 - (void)setTutorialMode:(profiles::TutorialMode)tutorialMode;
93
94 // Switches to a given profile. |sender| is an ProfileChooserItemController. 87 // Switches to a given profile. |sender| is an ProfileChooserItemController.
95 - (IBAction)switchToProfile:(id)sender; 88 - (IBAction)switchToProfile:(id)sender;
96 89
97 // Shows the User Manager. 90 // Shows the User Manager.
98 - (IBAction)showUserManager:(id)sender; 91 - (IBAction)showUserManager:(id)sender;
99 92
100 // Closes all guest browsers and shows the User Manager. 93 // Closes all guest browsers and shows the User Manager.
101 - (IBAction)exitGuest:(id)sender; 94 - (IBAction)exitGuest:(id)sender;
102 95
103 // Shows the account management view. 96 // Shows the account management view.
(...skipping 28 matching lines...) Expand all
132 // Clean-up done after an action was performed in the ProfileChooser. 125 // Clean-up done after an action was performed in the ProfileChooser.
133 - (void)postActionPerformed:(ProfileMetrics::ProfileDesktopMenu)action; 126 - (void)postActionPerformed:(ProfileMetrics::ProfileDesktopMenu)action;
134 @end 127 @end
135 128
136 // Testing API ///////////////////////////////////////////////////////////////// 129 // Testing API /////////////////////////////////////////////////////////////////
137 130
138 @interface ProfileChooserController (ExposedForTesting) 131 @interface ProfileChooserController (ExposedForTesting)
139 - (id)initWithBrowser:(Browser*)browser 132 - (id)initWithBrowser:(Browser*)browser
140 anchoredAt:(NSPoint)point 133 anchoredAt:(NSPoint)point
141 viewMode:(profiles::BubbleViewMode)viewMode 134 viewMode:(profiles::BubbleViewMode)viewMode
142 tutorialMode:(profiles::TutorialMode)tutorialMode
143 serviceType:(signin::GAIAServiceType)GAIAServiceType; 135 serviceType:(signin::GAIAServiceType)GAIAServiceType;
144 - (IBAction)dismissTutorial:(id)sender;
145 @end 136 @end
146 137
147 #endif // CHROME_BROWSER_UI_COCOA_PROFILES_PROFILE_CHOOSER_CONTROLLER_H_ 138 #endif // CHROME_BROWSER_UI_COCOA_PROFILES_PROFILE_CHOOSER_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698