#ifndef CHROME_BROWSER_UI_VIEWS_LOGIN_VIEW_H_
#define CHROME_BROWSER_UI_VIEWS_LOGIN_VIEW_H_
#include "base/compiler_specific.h"
#include "components/password_manager/core/browser/login_model.h"
#include "ui/views/view.h"
namespace views {
class Label;
class Textfield;
}
class LoginView : public views::View, public LoginModelObserver {
public:
LoginView(const base::string16& explanation, LoginModel* model);
virtual ~LoginView();
const base::string16& GetUsername() const;
const base::string16& GetPassword() const;
virtual void OnAutofillDataAvailable(const base::string16& username,
const base::string16& password) OVERRIDE;
virtual void OnLoginModelDestroying() OVERRIDE;
views::View* GetInitiallyFocusedView();
private:
views::Textfield* username_field_;
views::Textfield* password_field_;
views::Label* username_label_;
views::Label* password_label_;
views::Label* message_label_;
LoginModel* login_model_;
DISALLOW_COPY_AND_ASSIGN(LoginView);
};
#endif