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

Unified Diff: chrome/browser/chromeos/login/screens/terms_of_service_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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/login/screens/terms_of_service_screen_actor.h
diff --git a/chrome/browser/chromeos/login/screens/terms_of_service_screen_actor.h b/chrome/browser/chromeos/login/screens/terms_of_service_screen_actor.h
deleted file mode 100644
index b52b3268a290ef4d58b21eb371b45ee99388ae7c..0000000000000000000000000000000000000000
--- a/chrome/browser/chromeos/login/screens/terms_of_service_screen_actor.h
+++ /dev/null
@@ -1,55 +0,0 @@
-// 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_SCREENS_TERMS_OF_SERVICE_SCREEN_ACTOR_H_
-#define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_TERMS_OF_SERVICE_SCREEN_ACTOR_H_
-
-#include <string>
-
-namespace chromeos {
-
-// Interface for dependency injection between TermsOfServiceScreen and its
-// WebUI representation.
-class TermsOfServiceScreenActor {
- public:
- class Delegate {
- public:
- virtual ~Delegate() {}
-
- // Called when the user declines the Terms of Service.
- virtual void OnDecline() = 0;
-
- // Called when the user accepts the Terms of Service.
- virtual void OnAccept() = 0;
-
- // Called when actor is destroyed so there is no dead reference to it.
- virtual void OnActorDestroyed(TermsOfServiceScreenActor* actor) = 0;
- };
-
- virtual ~TermsOfServiceScreenActor() {}
-
- // Sets screen this actor belongs to.
- virtual void SetDelegate(Delegate* screen) = 0;
-
- // Shows the contents of the screen.
- virtual void Show() = 0;
-
- // Hides the contents of the screen.
- virtual void Hide() = 0;
-
- // Sets the domain name whose Terms of Service are being shown.
- virtual void SetDomain(const std::string& domain) = 0;
-
- // Called when the download of the Terms of Service fails. Show an error
- // message to the user.
- virtual void OnLoadError() = 0;
-
- // Called when the download of the Terms of Service is successful. Shows the
- // downloaded |terms_of_service| to the user.
- virtual void OnLoadSuccess(const std::string& terms_of_service) = 0;
-};
-
-} // namespace chromeos
-
-#endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_TERMS_OF_SERVICE_SCREEN_ACTOR_H_

Powered by Google App Engine
This is Rietveld 408576698