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

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

Issue 2685163003: Avoid multiple displays of the sign-in dialogs. (Closed)
Patch Set: Ready for reviews 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/signin_view_controller_delegate_mac.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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_SIGNIN_VIEW_CONTROLLER_DELEGATE_MAC_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_PROFILES_SIGNIN_VIEW_CONTROLLER_DELEGATE_MAC_H_
6 #define CHROME_BROWSER_UI_COCOA_PROFILES_SIGNIN_VIEW_CONTROLLER_DELEGATE_MAC_H_ 6 #define CHROME_BROWSER_UI_COCOA_PROFILES_SIGNIN_VIEW_CONTROLLER_DELEGATE_MAC_H_
7 7
8 #import <Cocoa/Cocoa.h> 8 #import <Cocoa/Cocoa.h>
9 9
10 #include "base/mac/scoped_nsobject.h" 10 #include "base/mac/scoped_nsobject.h"
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 // Cleans up and deletes this object. 79 // Cleans up and deletes this object.
80 void CleanupAndDeleteThis(); 80 void CleanupAndDeleteThis();
81 81
82 // The constrained window opened by this delegate to display signin flow 82 // The constrained window opened by this delegate to display signin flow
83 // content. 83 // content.
84 std::unique_ptr<ConstrainedWindowMac> constrained_window_; 84 std::unique_ptr<ConstrainedWindowMac> constrained_window_;
85 85
86 // The web contents displayed in the constrained window. 86 // The web contents displayed in the constrained window.
87 std::unique_ptr<content::WebContents> web_contents_; 87 std::unique_ptr<content::WebContents> web_contents_;
88 base::scoped_nsobject<ConstrainedWindowCustomWindow> window_; 88 base::scoped_nsobject<ConstrainedWindowCustomWindow> window_;
89
90 // wait_for_size_ stores whether the dialog should only be shown after its
91 // content's size has been laid out and measured so that the constrained
92 // window is sized to the content.
93 bool wait_for_size_;
94
95 Browser* browser_; 89 Browser* browser_;
96 90
97 // The dialog modal presentation type. 91 // The dialog modal presentation type.
98 ui::ModalType dialog_modal_type_; 92 ui::ModalType dialog_modal_type_;
99 93
100 NSRect window_frame_; 94 NSRect window_frame_;
101 95
102 DISALLOW_COPY_AND_ASSIGN(SigninViewControllerDelegateMac); 96 DISALLOW_COPY_AND_ASSIGN(SigninViewControllerDelegateMac);
103 }; 97 };
104 98
105 #endif // CHROME_BROWSER_UI_COCOA_PROFILES_SIGNIN_VIEW_CONTROLLER_DELEGATE_MAC_ H_ 99 #endif // CHROME_BROWSER_UI_COCOA_PROFILES_SIGNIN_VIEW_CONTROLLER_DELEGATE_MAC_ H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/profiles/signin_view_controller_delegate_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698