| 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 // |profile| as the web content's profile, then sets |delegate| as the created | 51 // |profile| as the web content's profile, then sets |delegate| as the created |
| 52 // web content's delegate. | 52 // web content's delegate. |
| 53 static std::unique_ptr<content::WebContents> CreateGaiaWebContents( | 53 static std::unique_ptr<content::WebContents> CreateGaiaWebContents( |
| 54 content::WebContentsDelegate* delegate, | 54 content::WebContentsDelegate* delegate, |
| 55 profiles::BubbleViewMode mode, | 55 profiles::BubbleViewMode mode, |
| 56 Profile* profile, | 56 Profile* profile, |
| 57 signin_metrics::AccessPoint access_point); | 57 signin_metrics::AccessPoint access_point); |
| 58 | 58 |
| 59 static std::unique_ptr<content::WebContents> | 59 static std::unique_ptr<content::WebContents> |
| 60 CreateSyncConfirmationWebContents(Profile* profile); | 60 CreateSyncConfirmationWebContents(Profile* profile); |
| 61 CreateSigninErrorWebContents(Profile* profile); |
| 61 | 62 |
| 62 private: | 63 private: |
| 63 void PerformClose() override; | 64 void PerformClose() override; |
| 64 void ResizeNativeView(int height) override; | 65 void ResizeNativeView(int height) override; |
| 65 | 66 |
| 66 void DisplayModal(); | 67 void DisplayModal(); |
| 67 | 68 |
| 68 void HandleKeyboardEvent( | 69 void HandleKeyboardEvent( |
| 69 content::WebContents* source, | 70 content::WebContents* source, |
| 70 const content::NativeWebKeyboardEvent& event) override; | 71 const content::NativeWebKeyboardEvent& event) override; |
| (...skipping 15 matching lines...) Expand all Loading... |
| 86 | 87 |
| 87 // The web contents that the constrained window is displayed off of. | 88 // The web contents that the constrained window is displayed off of. |
| 88 // Typically, this is going to be the active tab when the window is shown. | 89 // Typically, this is going to be the active tab when the window is shown. |
| 89 content::WebContents* host_web_contents_; | 90 content::WebContents* host_web_contents_; |
| 90 NSRect window_frame_; | 91 NSRect window_frame_; |
| 91 | 92 |
| 92 DISALLOW_COPY_AND_ASSIGN(SigninViewControllerDelegateMac); | 93 DISALLOW_COPY_AND_ASSIGN(SigninViewControllerDelegateMac); |
| 93 }; | 94 }; |
| 94 | 95 |
| 95 #endif // CHROME_BROWSER_UI_COCOA_PROFILES_SIGNIN_VIEW_CONTROLLER_DELEGATE_MAC_
H_ | 96 #endif // CHROME_BROWSER_UI_COCOA_PROFILES_SIGNIN_VIEW_CONTROLLER_DELEGATE_MAC_
H_ |
| OLD | NEW |