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

Side by Side Diff: chrome/browser/chromeos/login/screens/user_image_view.h

Issue 2713513009: cros: Break BaseScreenHandler into two classes. (Closed)
Patch Set: Add comments, fix compile Created 3 years, 9 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_CHROMEOS_LOGIN_SCREENS_USER_IMAGE_VIEW_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_USER_IMAGE_VIEW_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_USER_IMAGE_VIEW_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_USER_IMAGE_VIEW_H_
7 7
8 #include "chrome/browser/chromeos/login/oobe_screen.h"
9
8 namespace chromeos { 10 namespace chromeos {
9 11
10 class UserImageScreen; 12 class UserImageScreen;
11 13
12 // Interface for dependency injection between UserImageScreen and its actual 14 // Interface for dependency injection between UserImageScreen and its actual
13 // representation, either views based or WebUI. 15 // representation, either views based or WebUI.
14 class UserImageView { 16 class UserImageView {
15 public: 17 public:
18 constexpr static OobeScreen kScreenId = OobeScreen::SCREEN_USER_IMAGE_PICKER;
19
16 virtual ~UserImageView() {} 20 virtual ~UserImageView() {}
17 21
18 virtual void Bind(UserImageScreen* screen) = 0; 22 virtual void Bind(UserImageScreen* screen) = 0;
19 23
20 virtual void Unbind() = 0; 24 virtual void Unbind() = 0;
21 25
22 // Shows the contents of the screen. 26 // Shows the contents of the screen.
23 virtual void Show() = 0; 27 virtual void Show() = 0;
24 28
25 // Hides the contents of the screen. 29 // Hides the contents of the screen.
26 virtual void Hide() = 0; 30 virtual void Hide() = 0;
27 31
28 // Hides curtain with spinner. 32 // Hides curtain with spinner.
29 virtual void HideCurtain() = 0; 33 virtual void HideCurtain() = 0;
30 }; 34 };
31 35
32 } // namespace chromeos 36 } // namespace chromeos
33 37
34 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_USER_IMAGE_VIEW_H_ 38 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_USER_IMAGE_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/screens/update_view.h ('k') | chrome/browser/chromeos/login/screens/wrong_hwid_screen_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698