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

Unified Diff: chrome/browser/chromeos/login/screens/eula_view.h

Issue 755203002: Added usage of ScreenContext in EulaScreen. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed comments. 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/login/screens/eula_view.h
diff --git a/chrome/browser/chromeos/login/screens/eula_view.h b/chrome/browser/chromeos/login/screens/eula_view.h
new file mode 100644
index 0000000000000000000000000000000000000000..f9f37868914ab1a21eff1459b9b61965925f85a8
--- /dev/null
+++ b/chrome/browser/chromeos/login/screens/eula_view.h
@@ -0,0 +1,30 @@
+// Copyright 2014 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_SCREENS_EULA_VIEW_H_
+#define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_EULA_VIEW_H_
+
+#include <string>
+
+namespace chromeos {
+
+class EulaModel;
+
+// Interface between eula screen and its representation, either WebUI
+// or Views one. Note, do not forget to call OnViewDestroyed in the
+// dtor.
+class EulaView {
+ public:
+ virtual ~EulaView() {}
+
+ virtual void PrepareToShow() = 0;
+ virtual void Show() = 0;
+ virtual void Hide() = 0;
+ virtual void SetModel(EulaModel* model) = 0;
+ virtual void OnPasswordFetched(const std::string& tpm_password) = 0;
+};
+
+} // namespace chromeos
+
+#endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_EULA_VIEW_H_

Powered by Google App Engine
This is Rietveld 408576698