| OLD | NEW |
| 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 Loading... |
| 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_ |
| OLD | NEW |