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

Side by Side Diff: chrome/browser/chromeos/login/screens/enable_debugging_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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_ENABLE_DEBUGGING_SCREEN_VIEW_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_ENABLE_DEBUGGING_SCREEN_VIEW_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_ENABLE_DEBUGGING_SCREEN_VIEW_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_ENABLE_DEBUGGING_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 enable debugging screen and its representation. 13 // Interface between enable debugging 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 EnableDebuggingScreenView { 15 class EnableDebuggingScreenView {
15 public: 16 public:
16 // Allows us to get info from reset screen that we need. 17 // Allows us to get info from reset 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(bool success) = 0; 23 virtual void OnExit(bool success) = 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(nullptr). 26 // is destroyed earlier then it has to call SetDelegate(nullptr).
26 virtual void OnViewDestroyed(EnableDebuggingScreenView* view) = 0; 27 virtual void OnViewDestroyed(EnableDebuggingScreenView* view) = 0;
27 }; 28 };
28 29
30 constexpr static OobeScreen kScreenId =
31 OobeScreen::SCREEN_OOBE_ENABLE_DEBUGGING;
32
29 virtual ~EnableDebuggingScreenView() {} 33 virtual ~EnableDebuggingScreenView() {}
30 34
31 virtual void Show() = 0; 35 virtual void Show() = 0;
32 virtual void Hide() = 0; 36 virtual void Hide() = 0;
33 virtual void SetDelegate(Delegate* delegate) = 0; 37 virtual void SetDelegate(Delegate* delegate) = 0;
34 }; 38 };
35 39
36 } // namespace chromeos 40 } // namespace chromeos
37 41
38 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_ENABLE_DEBUGGING_SCREEN_VIEW_H_ 42 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_ENABLE_DEBUGGING_SCREEN_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/screens/device_disabled_screen_view.h ('k') | chrome/browser/chromeos/login/screens/eula_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698