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

Unified Diff: chrome/browser/chromeos/login/enrollment/views_enterprise_enrollment_screen_actor.cc

Issue 8436002: [cros] Remove Views implementation for login/OOBE. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge Created 9 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/enrollment/views_enterprise_enrollment_screen_actor.cc
diff --git a/chrome/browser/chromeos/login/enrollment/views_enterprise_enrollment_screen_actor.cc b/chrome/browser/chromeos/login/enrollment/views_enterprise_enrollment_screen_actor.cc
deleted file mode 100644
index 5b1fe8a8c378aa3f3b99a02cbd057d748236f127..0000000000000000000000000000000000000000
--- a/chrome/browser/chromeos/login/enrollment/views_enterprise_enrollment_screen_actor.cc
+++ /dev/null
@@ -1,100 +0,0 @@
-// Copyright (c) 2011 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.
-
-#include "views_enterprise_enrollment_screen_actor.h"
-
-#include "base/logging.h"
-
-namespace chromeos {
-
-// ViewsEnterpriseEnrollmentScreenActor, public --------------------------------
-
-ViewsEnterpriseEnrollmentScreenActor::ViewsEnterpriseEnrollmentScreenActor(
- ViewScreenDelegate* delegate)
- : ViewScreen<EnterpriseEnrollmentView> (delegate),
- controller_(NULL) {
-}
-
-ViewsEnterpriseEnrollmentScreenActor::~ViewsEnterpriseEnrollmentScreenActor() {
- NotifyObservers(false);
-}
-
-// ViewsEnterpriseEnrollmentScreenActor, ViewScreen implementation -------------
-
-EnterpriseEnrollmentView* ViewsEnterpriseEnrollmentScreenActor::AllocateView() {
- return new EnterpriseEnrollmentView(controller_);
-}
-
-// ViewsEnterpriseEnrollmentScreenActor,
-// EnterpriseEnrollmentScreenActor implementation --------------------------
-
-void ViewsEnterpriseEnrollmentScreenActor::SetController(
- Controller* controller) {
- controller_ = controller;
-}
-
-void ViewsEnterpriseEnrollmentScreenActor::SetEditableUser(bool editable) {
- GetUIActor()->SetEditableUser(editable);
-}
-
-void ViewsEnterpriseEnrollmentScreenActor::PrepareToShow() {
- ViewScreen<EnterpriseEnrollmentView>::PrepareToShow();
-}
-
-void ViewsEnterpriseEnrollmentScreenActor::Show() {
- ViewScreen<EnterpriseEnrollmentView>::Show();
- // Make the focus go initially to the DOMView, so that the email input field
- // receives the focus.
- view()->RequestFocus();
-}
-
-void ViewsEnterpriseEnrollmentScreenActor::Hide() {
- ViewScreen<EnterpriseEnrollmentView>::Hide();
-}
-
-void ViewsEnterpriseEnrollmentScreenActor::ShowConfirmationScreen() {
- GetUIActor()->ShowConfirmationScreen();
- NotifyObservers(true);
-}
-
-void ViewsEnterpriseEnrollmentScreenActor::ShowAuthError(
- const GoogleServiceAuthError & error) {
- GetUIActor()->ShowAuthError(error);
- NotifyObservers(false);
-}
-
-void ViewsEnterpriseEnrollmentScreenActor::ShowAccountError() {
- GetUIActor()->ShowAccountError();
- NotifyObservers(false);
-}
-
-void ViewsEnterpriseEnrollmentScreenActor::ShowSerialNumberError() {
- GetUIActor()->ShowSerialNumberError();
- NotifyObservers(false);
-}
-
-void ViewsEnterpriseEnrollmentScreenActor::ShowFatalAuthError() {
- GetUIActor()->ShowFatalAuthError();
- NotifyObservers(false);
-}
-
-void ViewsEnterpriseEnrollmentScreenActor::ShowFatalEnrollmentError() {
- GetUIActor()->ShowFatalEnrollmentError();
- NotifyObservers(false);
-}
-
-void ViewsEnterpriseEnrollmentScreenActor::ShowNetworkEnrollmentError() {
- GetUIActor()->ShowNetworkEnrollmentError();
- NotifyObservers(false);
-}
-
-// ViewsEnterpriseEnrollmentScreenActor, public --------------------------------
-
-EnterpriseEnrollmentScreenActor*
-ViewsEnterpriseEnrollmentScreenActor::GetUIActor() {
- DCHECK(view());
- return view()->GetActor();
-}
-
-} // namespace chromeos

Powered by Google App Engine
This is Rietveld 408576698