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

Unified Diff: chrome/browser/chromeos/login/screens/eula_model.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_model.h
diff --git a/chrome/browser/chromeos/login/screens/eula_model.h b/chrome/browser/chromeos/login/screens/eula_model.h
new file mode 100644
index 0000000000000000000000000000000000000000..388086437ceb1781026ab5e9997852d999627ae8
--- /dev/null
+++ b/chrome/browser/chromeos/login/screens/eula_model.h
@@ -0,0 +1,46 @@
+// 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_MODEL_H_
+#define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_EULA_MODEL_H_
+
+#include "chrome/browser/chromeos/login/screens/base_screen.h"
+#include "url/gurl.h"
+
+namespace chromeos {
+
+class BaseScreenDelegate;
+class EulaView;
+
+// Allows us to get info from eula screen that we need.
+class EulaModel : public BaseScreen {
+ public:
+ explicit EulaModel(BaseScreenDelegate* base_screen_delegate);
+ virtual ~EulaModel();
+
+ // Returns URL of the OEM EULA page that should be displayed using current
+ // locale and manifest. Returns empty URL otherwise.
+ virtual GURL GetOemEulaUrl() const = 0;
+
+ // Called when accept button was clicked.
+ virtual void OnAcceptButtonClicked() = 0;
+
+ // Called when back button was clicked.
+ virtual void OnBackButtonClicked() = 0;
+
+ // Initiate TPM password fetch. Will call actor's OnPasswordFetched() when
+ // done.
+ virtual void InitiatePasswordFetch() = 0;
+
+ // Returns true if usage statistics reporting is enabled.
+ virtual bool IsUsageStatsEnabled() const = 0;
+
+ // This method is called, when view is being destroyed. Note, if model
+ // is destroyed earlier then it has to call SetModel(NULL).
+ virtual void OnViewDestroyed(EulaView* view) = 0;
+};
+
+} // namespace chromeos
+
+#endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_EULA_MODEL_H_

Powered by Google App Engine
This is Rietveld 408576698