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

Side by Side Diff: chrome/browser/chromeos/login/screens/wrong_hwid_screen_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 (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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_WRONG_HWID_SCREEN_VIEW_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_WRONG_HWID_SCREEN_VIEW_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_WRONG_HWID_SCREEN_VIEW_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_WRONG_HWID_SCREEN_VIEW_H_
7 7
8 #include <string> 8 #include <string>
9 #include "chrome/browser/chromeos/login/oobe_screen.h"
9 10
10 namespace chromeos { 11 namespace chromeos {
11 12
12 // Interface between wrong HWID screen and its representation. 13 // Interface between wrong HWID screen and its representation.
13 // Note, do not forget to call OnViewDestroyed in the dtor. 14 // Note, do not forget to call OnViewDestroyed in the dtor.
14 class WrongHWIDScreenView { 15 class WrongHWIDScreenView {
15 public: 16 public:
16 // Allows us to get info from wrong HWID screen that we need. 17 // Allows us to get info from wrong HWID screen that we need.
17 class Delegate { 18 class Delegate {
18 public: 19 public:
19 virtual ~Delegate() {} 20 virtual ~Delegate() {}
20 21
21 // Called when screen is exited. 22 // Called when screen is exited.
22 virtual void OnExit() = 0; 23 virtual void OnExit() = 0;
23 24
24 // This method is called, when view is being destroyed. Note, if Delegate 25 // This method is called, when view is being destroyed. Note, if Delegate
25 // is destroyed earlier then it has to call SetDelegate(NULL). 26 // is destroyed earlier then it has to call SetDelegate(NULL).
26 virtual void OnViewDestroyed(WrongHWIDScreenView* view) = 0; 27 virtual void OnViewDestroyed(WrongHWIDScreenView* view) = 0;
27 }; 28 };
28 29
30 constexpr static OobeScreen kScreenId = OobeScreen::SCREEN_WRONG_HWID;
31
29 virtual ~WrongHWIDScreenView() {} 32 virtual ~WrongHWIDScreenView() {}
30 33
31 virtual void Show() = 0; 34 virtual void Show() = 0;
32 virtual void Hide() = 0; 35 virtual void Hide() = 0;
33 virtual void SetDelegate(Delegate* delegate) = 0; 36 virtual void SetDelegate(Delegate* delegate) = 0;
34 }; 37 };
35 38
36 } // namespace chromeos 39 } // namespace chromeos
37 40
38 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_WRONG_HWID_SCREEN_VIEW_H_ 41 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_WRONG_HWID_SCREEN_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/screens/user_image_view.h ('k') | chrome/browser/chromeos/login/ui/views/user_board_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698