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

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

Issue 755203002: Added usage of ScreenContext in EulaScreen. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comments addressed. 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_screen_actor.h
diff --git a/chrome/browser/chromeos/login/screens/eula_screen_actor.h b/chrome/browser/chromeos/login/screens/eula_screen_actor.h
deleted file mode 100644
index 2e741a69756c2573f2e04f552ffa76b6356cebf5..0000000000000000000000000000000000000000
--- a/chrome/browser/chromeos/login/screens/eula_screen_actor.h
+++ /dev/null
@@ -1,55 +0,0 @@
-// Copyright (c) 2012 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_SCREEN_ACTOR_H_
-#define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_EULA_SCREEN_ACTOR_H_
-
-#include <string>
-
-#include "ui/gfx/size.h"
-#include "url/gurl.h"
-
-namespace chromeos {
-
-// Interface between eula screen and its representation, either WebUI or
-// Views one. Note, do not forget to call OnActorDestroyed in the dtor.
-class EulaScreenActor {
- public:
- // Allows us to get info from eula screen that we need.
- class Delegate {
- public:
- virtual ~Delegate() {}
-
- // 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 screen is exited. |accepted| indicates if EULA was
- // accepted or not.
- virtual void OnExit(bool accepted, bool usage_stats_enabled) = 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 actor is being destroyed. Note, if Delegate
- // is destroyed earlier then it has to call SetDelegate(NULL).
- virtual void OnActorDestroyed(EulaScreenActor* actor) = 0;
- };
-
- virtual ~EulaScreenActor() {}
-
- virtual void PrepareToShow() = 0;
- virtual void Show() = 0;
- virtual void Hide() = 0;
- virtual void SetDelegate(Delegate* delegate) = 0;
- virtual void OnPasswordFetched(const std::string& tpm_password) = 0;
-};
-
-} // namespace chromeos
-
-#endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_EULA_SCREEN_ACTOR_H_

Powered by Google App Engine
This is Rietveld 408576698