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

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

Issue 2638853003: macOS: Setting focus to the first profile in profile switcher (Closed)
Patch Set: Removing useless import Created 3 years, 10 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
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 30 matching lines...) Expand all
41 // menu model updates for the active profile. 41 // menu model updates for the active profile.
42 std::unique_ptr<ActiveProfileObserverBridge> observer_; 42 std::unique_ptr<ActiveProfileObserverBridge> observer_;
43 43
44 // The browser that launched the bubble. Not owned. 44 // The browser that launched the bubble. Not owned.
45 Browser* browser_; 45 Browser* browser_;
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 52
52 // Active view mode. 53 // Active view mode.
53 profiles::BubbleViewMode viewMode_; 54 profiles::BubbleViewMode viewMode_;
54 55
55 // The current tutorial mode. 56 // The current tutorial mode.
56 profiles::TutorialMode tutorialMode_; 57 profiles::TutorialMode tutorialMode_;
57 58
58 // List of the full, un-elided accounts for the active profile. The keys are 59 // List of the full, un-elided accounts for the active profile. The keys are
59 // generated used to tag the UI buttons, and the values are the original 60 // generated used to tag the UI buttons, and the values are the original
60 // emails displayed by the buttons. 61 // emails displayed by the buttons.
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 @interface ProfileChooserController (ExposedForTesting) 138 @interface ProfileChooserController (ExposedForTesting)
138 - (id)initWithBrowser:(Browser*)browser 139 - (id)initWithBrowser:(Browser*)browser
139 anchoredAt:(NSPoint)point 140 anchoredAt:(NSPoint)point
140 viewMode:(profiles::BubbleViewMode)viewMode 141 viewMode:(profiles::BubbleViewMode)viewMode
141 tutorialMode:(profiles::TutorialMode)tutorialMode 142 tutorialMode:(profiles::TutorialMode)tutorialMode
142 serviceType:(signin::GAIAServiceType)GAIAServiceType; 143 serviceType:(signin::GAIAServiceType)GAIAServiceType;
143 - (IBAction)dismissTutorial:(id)sender; 144 - (IBAction)dismissTutorial:(id)sender;
144 @end 145 @end
145 146
146 #endif // CHROME_BROWSER_UI_COCOA_PROFILES_PROFILE_CHOOSER_CONTROLLER_H_ 147 #endif // CHROME_BROWSER_UI_COCOA_PROFILES_PROFILE_CHOOSER_CONTROLLER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698