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

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

Issue 7015024: Converted from DOM to WebUI for new login method (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Updating the patch after confirming with the most recent version of the code Created 9 years, 7 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/dom_login_display.h
diff --git a/chrome/browser/chromeos/login/dom_login_display.h b/chrome/browser/chromeos/login/dom_login_display.h
deleted file mode 100644
index 613a47e8cba921ed0e6ca6e622a33aa16c755e12..0000000000000000000000000000000000000000
--- a/chrome/browser/chromeos/login/dom_login_display.h
+++ /dev/null
@@ -1,94 +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.
-
-#ifndef CHROME_BROWSER_CHROMEOS_LOGIN_DOM_LOGIN_DISPLAY_H_
-#define CHROME_BROWSER_CHROMEOS_LOGIN_DOM_LOGIN_DISPLAY_H_
-#pragma once
-
-#include <vector>
-
-#include "base/memory/singleton.h"
-#include "base/scoped_ptr.h"
-#include "chrome/browser/chromeos/login/login_display.h"
-#include "chrome/browser/chromeos/login/user_manager.h"
-#include "chrome/browser/chromeos/login/webui_login_view.h"
-#include "chrome/browser/ui/webui/chromeos/login/login_ui.h"
-
-namespace gfx {
-class Rect;
-} // namespace gfx
-
-namespace chromeos {
-
-class DOMBrowser;
-
-// DOM-based login UI implementation.
-// This class is a Singleton. It allows the LoginDisplayHost and LoginUIHandler
-// to access it without having to be coupled with each other. It is created with
-// NULL for the delegate and a 0-size rectangle for the background
-// bounds. Before use these values should be set to a sane value. When done with
-// the object, the ExistingUserController should call Destroy and not free the
-// pointer, where as accessing classes should do nothing with the pointer.
-//
-// Expected order of commands to setup for LoginDisplayHost:
-// DOMLoginDisplay::GetInstance();
-// set_delegate(delegate);
-// set_background_bounds(background_bounds());
-// Init();
-//
-// Expected order of commands to setup for LoginUIHandler:
-// DOMLoginDisplay::GetInstance();
-// set_login_handler(this);
-
-class DOMLoginDisplay : public LoginDisplay,
- public LoginUIHandlerDelegate {
- public:
- virtual ~DOMLoginDisplay();
-
- // Singleton implementation:
- static DOMLoginDisplay* GetInstance();
-
- // Wrapper used to help in routing keyboard key presses into the login
- // screen. This gets the Login Window widget from the Singleton, so that other
- // classes don't need to know we are a Singleton
- static views::Widget* GetLoginWindow();
- views::Widget* LoginWindow();
-
- // LoginDisplay implementation:
- virtual void Destroy() OVERRIDE;
- virtual void Init(const std::vector<UserManager::User>& users,
- bool show_guest,
- bool show_new_user) OVERRIDE;
- virtual void OnBeforeUserRemoved(const std::string& username) OVERRIDE;
- virtual void OnUserImageChanged(UserManager::User* user) OVERRIDE;
- virtual void OnUserRemoved(const std::string& username) OVERRIDE;
- virtual void OnFadeOut() OVERRIDE;
- virtual void SetUIEnabled(bool is_enabled) OVERRIDE;
- virtual void ShowError(int error_msg_id,
- int login_attempts,
- HelpAppLauncher::HelpTopic help_topic_id) OVERRIDE;
-
- // LoginUIHandlerDelegate
- virtual void Login(const std::string& username,
- const std::string& password) OVERRIDE;
- virtual void LoginAsGuest() OVERRIDE;
-
- private:
- // Singleton implementation:
- friend struct DefaultSingletonTraits<DOMLoginDisplay>;
- DOMLoginDisplay();
-
- // Set of Users in the systemvisible UserControllers.
- std::vector<UserManager::User> users_;
-
- // Container of the screen we are displaying
- WebUILoginView* webui_login_view_; // Owned by webui_login_window_
- views::Widget* webui_login_window_;
-
- DISALLOW_COPY_AND_ASSIGN(DOMLoginDisplay);
-};
-
-} // namespace chromeos
-
-#endif // CHROME_BROWSER_CHROMEOS_LOGIN_DOM_LOGIN_DISPLAY_H_
« no previous file with comments | « chrome/browser/chromeos/login/base_login_display_host.cc ('k') | chrome/browser/chromeos/login/dom_login_display.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698