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

Unified Diff: chrome/browser/chromeos/login/wrong_hwid_screen_actor.h

Issue 12213110: Implemented screen notifying users about malformed HWID. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Removed log message. Created 7 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/login/wrong_hwid_screen_actor.h
diff --git a/chrome/browser/chromeos/login/wrong_hwid_screen_actor.h b/chrome/browser/chromeos/login/wrong_hwid_screen_actor.h
new file mode 100644
index 0000000000000000000000000000000000000000..7de58ae275aaa07d69115f33dcc26bdca90dc32d
--- /dev/null
+++ b/chrome/browser/chromeos/login/wrong_hwid_screen_actor.h
@@ -0,0 +1,40 @@
+// Copyright (c) 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_CHROMEOS_LOGIN_WRONG_HWID_SCREEN_ACTOR_H_
+#define CHROME_BROWSER_CHROMEOS_LOGIN_WRONG_HWID_SCREEN_ACTOR_H_
+
+#include <string>
+
+namespace chromeos {
+
+// Interface between reset screen and its representation.
Nikita (slow) 2013/02/11 17:09:03 nit: Comment needs to be updated.
dzhioev (left Google) 2013/02/11 23:32:56 Done.
+// Note, do not forget to call OnActorDestroyed in the dtor.
+class WrongHWIDScreenActor {
+ public:
+ // Allows us to get info from reset screen that we need.
Nikita (slow) 2013/02/11 17:09:03 nit: Same here.
dzhioev (left Google) 2013/02/11 23:32:56 Done.
+ class Delegate {
+ public:
+ virtual ~Delegate() {}
+
+ // Called when screen is exited.
+ virtual void OnExit() = 0;
+
+ // This method is called, when actor is being destroyed. Note, if Delegate
+ // is destroyed earlier then it has to call SetDelegate(NULL).
+ virtual void OnActorDestroyed(WrongHWIDScreenActor* actor) = 0;
+ };
+
+ virtual ~WrongHWIDScreenActor() {}
+
+ virtual void PrepareToShow() = 0;
+ virtual void Show() = 0;
+ virtual void Hide() = 0;
+ virtual void SetDelegate(Delegate* delegate) = 0;
+};
+
+} // namespace chromeos
+
+#endif // CHROME_BROWSER_CHROMEOS_LOGIN_WRONG_HWID_SCREEN_ACTOR_H_
+

Powered by Google App Engine
This is Rietveld 408576698