Chromium Code Reviews| 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_SIGNIN_VIEW_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_UI_SIGNIN_VIEW_CONTROLLER_H_ |
| 6 #define CHROME_BROWSER_UI_SIGNIN_VIEW_CONTROLLER_H_ | 6 #define CHROME_BROWSER_UI_SIGNIN_VIEW_CONTROLLER_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "chrome/browser/ui/profile_chooser_constants.h" | 9 #include "chrome/browser/ui/profile_chooser_constants.h" |
| 10 | 10 |
| 11 class Browser; | 11 class Browser; |
| 12 class SigninViewControllerDelegate; | 12 class SigninViewControllerDelegate; |
| 13 | 13 |
| 14 namespace signin_metrics { | 14 namespace signin_metrics { |
| 15 enum class AccessPoint; | 15 enum class AccessPoint; |
| 16 } | 16 } |
| 17 | 17 |
| 18 // Class responsible for showing and hiding the Signin and Sync Confirmation | 18 // Class responsible for showing and hiding the Signin and Sync Confirmation |
| 19 // tab-modal dialogs. | 19 // tab-modal dialogs. |
| 20 // | |
| 21 // Note: This class only exists on Desktop platforms (it does not exist on | |
| 22 // mobile or ChromeOS) | |
|
Peter Kasting
2017/03/29 19:39:31
Nit: Since CrOS is a desktop platform, this is a b
msarda
2017/03/30 11:54:11
I excluded this file on ChromeOS entirely and remo
| |
| 20 class SigninViewController { | 23 class SigninViewController { |
| 21 public: | 24 public: |
| 22 SigninViewController(); | 25 SigninViewController(); |
| 23 virtual ~SigninViewController(); | 26 virtual ~SigninViewController(); |
| 24 | 27 |
| 25 // Returns true if the signin flow should be shown as tab-modal for |mode|. | 28 // Returns true if the signin flow should be shown as tab-modal for |mode|. |
| 26 static bool ShouldShowModalSigninForMode(profiles::BubbleViewMode mode); | 29 static bool ShouldShowModalSigninForMode(profiles::BubbleViewMode mode); |
| 27 | 30 |
| 28 // Shows the signin flow as a tab modal dialog attached to |browser|'s active | 31 // Shows the signin flow as a tab modal dialog attached to |browser|'s active |
| 29 // web contents. | 32 // web contents. |
| (...skipping 20 matching lines...) Expand all Loading... | |
| 50 return signin_view_controller_delegate_; | 53 return signin_view_controller_delegate_; |
| 51 } | 54 } |
| 52 | 55 |
| 53 private: | 56 private: |
| 54 SigninViewControllerDelegate* signin_view_controller_delegate_; | 57 SigninViewControllerDelegate* signin_view_controller_delegate_; |
| 55 | 58 |
| 56 DISALLOW_COPY_AND_ASSIGN(SigninViewController); | 59 DISALLOW_COPY_AND_ASSIGN(SigninViewController); |
| 57 }; | 60 }; |
| 58 | 61 |
| 59 #endif // CHROME_BROWSER_UI_SIGNIN_VIEW_CONTROLLER_H_ | 62 #endif // CHROME_BROWSER_UI_SIGNIN_VIEW_CONTROLLER_H_ |
| OLD | NEW |