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

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

Issue 539273002: Added UI to enable debugging features on CrOS (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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_RESET_SCREEN_ACTOR_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_ENABLE_DEBUGGING_SCREEN_ACTOR_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_RESET_SCREEN_ACTOR_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_ENABLE_DEBUGGING_SCREEN_ACTOR_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 namespace chromeos { 10 namespace chromeos {
11 11
12 // Interface between reset screen and its representation. 12 // Interface between reset screen and its representation.
xiyuan 2014/10/30 03:52:08 nit: Update comment.
zel 2014/10/31 01:22:26 Done.
13 // Note, do not forget to call OnActorDestroyed in the dtor. 13 // Note, do not forget to call OnActorDestroyed in the dtor.
14 class ResetScreenActor { 14 class EnableDebuggingScreenActor {
15 public: 15 public:
16 // Allows us to get info from reset screen that we need. 16 // Allows us to get info from reset screen that we need.
17 class Delegate { 17 class Delegate {
18 public: 18 public:
19 virtual ~Delegate() {} 19 virtual ~Delegate() {}
20 20
21 // Called when screen is exited. 21 // Called when screen is exited.
22 virtual void OnExit() = 0; 22 virtual void OnExit(bool success) = 0;
23 23
24 // This method is called, when actor is being destroyed. Note, if Delegate 24 // This method is called, when actor is being destroyed. Note, if Delegate
25 // is destroyed earlier then it has to call SetDelegate(NULL). 25 // is destroyed earlier then it has to call SetDelegate(NULL).
26 virtual void OnActorDestroyed(ResetScreenActor* actor) = 0; 26 virtual void OnActorDestroyed(EnableDebuggingScreenActor* actor) = 0;
27 }; 27 };
28 28
29 virtual ~ResetScreenActor() {} 29 virtual ~EnableDebuggingScreenActor() {}
30 30
31 virtual void PrepareToShow() = 0; 31 virtual void PrepareToShow() = 0;
32 virtual void Show() = 0; 32 virtual void Show() = 0;
33 virtual void Hide() = 0; 33 virtual void Hide() = 0;
34 virtual void SetDelegate(Delegate* delegate) = 0; 34 virtual void SetDelegate(Delegate* delegate) = 0;
35 }; 35 };
36 36
37 } // namespace chromeos 37 } // namespace chromeos
38 38
39 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_RESET_SCREEN_ACTOR_H_ 39 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_ENABLE_DEBUGGING_SCREEN_ACTOR_H _
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698