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

Unified Diff: chrome/browser/chromeos/login/login_screen.h

Issue 5809001: Removed old login screen from source. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixed comments Created 9 years, 11 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/login_screen.h
diff --git a/chrome/browser/chromeos/login/login_screen.h b/chrome/browser/chromeos/login/login_screen.h
deleted file mode 100644
index 7c64dc357a39a27fa548239f551ed4f1b80b7413..0000000000000000000000000000000000000000
--- a/chrome/browser/chromeos/login/login_screen.h
+++ /dev/null
@@ -1,90 +0,0 @@
-// Copyright (c) 2010 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_LOGIN_SCREEN_H_
-#define CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_SCREEN_H_
-#pragma once
-
-#include <string>
-
-#include "base/ref_counted.h"
-#include "chrome/browser/chromeos/login/authenticator.h"
-#include "chrome/browser/chromeos/login/login_status_consumer.h"
-#include "chrome/browser/chromeos/login/message_bubble.h"
-#include "chrome/browser/chromeos/login/new_user_view.h"
-#include "chrome/browser/chromeos/login/view_screen.h"
-
-namespace chromeos {
-
-class MessageBubble;
-
-// This screen is obsolete, used only on test images. http://crosbug.com/7214
-// TODO(nkostylev): Use ExistingUserController sign in screen for test images.
-class LoginScreen : public ViewScreen<NewUserView>,
- public NewUserView::Delegate,
- public LoginStatusConsumer,
- public MessageBubbleDelegate {
- public:
- explicit LoginScreen(WizardScreenDelegate* delegate);
- virtual ~LoginScreen();
-
- bool IsErrorShown() {
- return bubble_ != NULL;
- }
-
- // NewUserView::Delegate:
- virtual void OnLogin(const std::string& username,
- const std::string& password);
- virtual void OnLoginOffTheRecord();
- virtual void OnCreateAccount();
- virtual void AddStartUrl(const GURL& start_url) { start_url_ = start_url; }
- virtual void ClearErrors();
- virtual void NavigateAway() {}
- virtual void SetStatusAreaEnabled(bool enable) {}
-
- // Overridden from LoginStatusConsumer.
- virtual void OnLoginFailure(const LoginFailure& error);
- virtual void OnLoginSuccess(
- const std::string& username,
- const std::string& password,
- const GaiaAuthConsumer::ClientLoginResult& credentials,
- bool pending_requests);
- virtual void OnOffTheRecordLoginSuccess();
-
- // Overridden from views::InfoBubbleDelegate.
- virtual void InfoBubbleClosing(InfoBubble* info_bubble,
- bool closed_by_escape) {
- bubble_ = NULL;
- }
- virtual bool CloseOnEscape() { return true; }
- virtual bool FadeInOnShow() { return false; }
- virtual void OnHelpLinkActivated();
-
- private:
- // ViewScreen<NewUserView>:
- virtual NewUserView* AllocateView();
-
- // Adds start url to command line.
- void AppendStartUrlToCmdline();
-
- // Shows error message with the specified message id.
- // If |details| string is not empty, it specify additional error text
- // provided by authenticator, it is not localized.
- void ShowError(int error_id, const std::string& details);
-
- // Pointer to shown message bubble. We don't need to delete it because
- // it will be deleted on bubble closing.
- MessageBubble* bubble_;
-
- scoped_refptr<Authenticator> authenticator_;
-
- // URL that will be opened on browser startup.
- GURL start_url_;
-
- DISALLOW_COPY_AND_ASSIGN(LoginScreen);
-};
-
-} // namespace chromeos
-
-#endif // CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_SCREEN_H_
« no previous file with comments | « chrome/browser/chromeos/login/existing_user_controller_browsertest.cc ('k') | chrome/browser/chromeos/login/login_screen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698