OLD | NEW |
1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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_USER_MANAGER_H_ | 5 #ifndef CHROME_BROWSER_UI_USER_MANAGER_H_ |
6 #define CHROME_BROWSER_UI_USER_MANAGER_H_ | 6 #define CHROME_BROWSER_UI_USER_MANAGER_H_ |
7 | 7 |
8 #include "chrome/browser/profiles/profile_window.h" | 8 #include "chrome/browser/profiles/profile_window.h" |
9 | 9 |
10 namespace base { | 10 namespace base { |
(...skipping 14 matching lines...) Expand all Loading... |
25 | 25 |
26 // Hides the User Manager. | 26 // Hides the User Manager. |
27 static void Hide(); | 27 static void Hide(); |
28 | 28 |
29 // Returns whether the User Manager is showing. | 29 // Returns whether the User Manager is showing. |
30 static bool IsShowing(); | 30 static bool IsShowing(); |
31 | 31 |
32 // To be called once the User Manager's contents are showing. | 32 // To be called once the User Manager's contents are showing. |
33 static void OnUserManagerShown(); | 33 static void OnUserManagerShown(); |
34 | 34 |
| 35 // Shows a dialog where the user can re-authenticate when their profile is |
| 36 // not yet open. This is called from the user manager when a profile is |
| 37 // locked and it has detected that the user's password has changed since the |
| 38 // profile was locked. |
| 39 static void ShowReauthDialog(content::BrowserContext* browser_context, |
| 40 const std::string& email); |
| 41 |
35 // TODO(noms): Figure out if this size can be computed dynamically or adjusted | 42 // TODO(noms): Figure out if this size can be computed dynamically or adjusted |
36 // for smaller screens. | 43 // for smaller screens. |
37 static const int kWindowWidth = 800; | 44 static const int kWindowWidth = 800; |
38 static const int kWindowHeight = 600; | 45 static const int kWindowHeight = 600; |
39 | 46 |
| 47 static const int kReauthDialogWidth = 360; |
| 48 static const int kReauthDialogHeight = 440; |
| 49 |
40 private: | 50 private: |
41 DISALLOW_COPY_AND_ASSIGN(UserManager); | 51 DISALLOW_COPY_AND_ASSIGN(UserManager); |
42 }; | 52 }; |
43 | 53 |
44 #endif // CHROME_BROWSER_UI_USER_MANAGER_H_ | 54 #endif // CHROME_BROWSER_UI_USER_MANAGER_H_ |
OLD | NEW |