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

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

Issue 2700303002: cros: Unify oobe View/Actor naming to just View. (Closed)
Patch Set: Rebase Created 3 years, 10 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_WRONG_HWID_SCREEN_ACTOR_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_WRONG_HWID_SCREEN_ACTOR_H_
7
8 #include <string>
9
10 namespace chromeos {
11
12 // Interface between wrong HWID screen and its representation.
13 // Note, do not forget to call OnActorDestroyed in the dtor.
14 class WrongHWIDScreenActor {
15 public:
16 // Allows us to get info from wrong HWID screen that we need.
17 class Delegate {
18 public:
19 virtual ~Delegate() {}
20
21 // Called when screen is exited.
22 virtual void OnExit() = 0;
23
24 // This method is called, when actor is being destroyed. Note, if Delegate
25 // is destroyed earlier then it has to call SetDelegate(NULL).
26 virtual void OnActorDestroyed(WrongHWIDScreenActor* actor) = 0;
27 };
28
29 virtual ~WrongHWIDScreenActor() {}
30
31 virtual void Show() = 0;
32 virtual void Hide() = 0;
33 virtual void SetDelegate(Delegate* delegate) = 0;
34 };
35
36 } // namespace chromeos
37
38 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_WRONG_HWID_SCREEN_ACTOR_H_
39
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698