Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | |
|
Nikita (slow)
2013/05/28 11:34:22
To make name more consistent this could be renamed
dzhioev (left Google)
2013/05/29 13:05:04
Decided to leave current name.
| |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_USER_ADDING_SCREEN_H_ | |
| 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_USER_ADDING_SCREEN_H_ | |
| 7 | |
| 8 #include "base/basictypes.h" | |
| 9 | |
| 10 namespace chromeos { | |
| 11 | |
| 12 // An interface that defines screen for adding users into multiprofile session. | |
|
Nikita (slow)
2013/05/28 11:34:22
nit: multi-profile
dzhioev (left Google)
2013/05/29 13:05:04
Done.
| |
| 13 // Current implementation is singleton. | |
|
Nikita (slow)
2013/05/28 11:34:22
nit: Please add TODO to came up with a better desi
Nikita (slow)
2013/05/28 11:34:22
nit: is a
dzhioev (left Google)
2013/05/29 13:05:04
Done.
dzhioev (left Google)
2013/05/29 13:05:04
Done.
| |
| 14 class UserAddingScreen { | |
| 15 public: | |
| 16 struct Observer { | |
| 17 virtual void OnUserAddingStarted() {} | |
|
Nikita (slow)
2013/05/28 11:34:22
Body should go to .cc
dzhioev (left Google)
2013/05/29 13:05:04
I think it is OK to leave empty definitions of Obs
Nikita (slow)
2013/05/29 13:29:38
I think that violates
http://dev.chromium.org/deve
| |
| 18 virtual void OnUserAddingFinished() {} | |
| 19 virtual ~Observer() {} | |
| 20 }; | |
| 21 | |
| 22 static UserAddingScreen* Get(); | |
| 23 | |
| 24 virtual void Start() = 0; | |
| 25 virtual void Cancel() = 0; | |
| 26 virtual bool IsRunning() = 0; | |
| 27 | |
| 28 virtual void AddObserver(Observer* observer) = 0; | |
| 29 virtual void RemoveObserver(Observer* observer) = 0; | |
| 30 | |
| 31 protected: | |
| 32 UserAddingScreen(); | |
| 33 virtual ~UserAddingScreen(); | |
| 34 | |
| 35 DISALLOW_COPY_AND_ASSIGN(UserAddingScreen); | |
| 36 }; | |
| 37 | |
| 38 } // namespace chromeos | |
| 39 | |
| 40 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USER_ADDING_SCREEN_H_ | |
| 41 | |
| OLD | NEW |