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

Side by Side Diff: chrome/browser/ui/user_manager.h

Issue 1261433013: Implement online reauth UI for Locked Profiles on Mac (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use ConstrainedWindow. Created 5 years, 4 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 (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 29 matching lines...) Expand all
40 const std::string& email); 40 const std::string& email);
41 41
42 // 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
43 // for smaller screens. 43 // for smaller screens.
44 static const int kWindowWidth = 800; 44 static const int kWindowWidth = 800;
45 static const int kWindowHeight = 600; 45 static const int kWindowHeight = 600;
46 46
47 static const int kReauthDialogWidth = 360; 47 static const int kReauthDialogWidth = 360;
48 static const int kReauthDialogHeight = 440; 48 static const int kReauthDialogHeight = 440;
49 49
50 // This class observes the WebUI used in the UserManager to perform online
51 // reauthentication of locked profiles. Its concretely implemented in
52 // UserManagerMac and UserManagerView to specialize the closing of the UI's
53 // dialog widget.
54 class ReauthDialogObserver : public content::WebContentsObserver {
55 public:
56 ReauthDialogObserver(content::WebContents* web_contents,
57 const std::string& email_address);
58 ~ReauthDialogObserver() override {}
59
60 private:
61 // content::WebContentsObserver:
62 void DidStopLoading() override;
63
64 virtual void CloseReauthDialog() = 0;
65
66 const std::string email_address_;
67
68 DISALLOW_COPY_AND_ASSIGN(ReauthDialogObserver);
69 };
70
50 private: 71 private:
51 DISALLOW_COPY_AND_ASSIGN(UserManager); 72 DISALLOW_COPY_AND_ASSIGN(UserManager);
52 }; 73 };
53 74
54 #endif // CHROME_BROWSER_UI_USER_MANAGER_H_ 75 #endif // CHROME_BROWSER_UI_USER_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698