| 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_
|
|
|