Index: chrome/browser/chromeos/login/screen_locker_delegate.h |
diff --git a/chrome/browser/chromeos/login/screen_locker_delegate.h b/chrome/browser/chromeos/login/screen_locker_delegate.h |
deleted file mode 100644 |
index 3d7a2d27e3daf8a1f2906cb3def8f361c46b9009..0000000000000000000000000000000000000000 |
--- a/chrome/browser/chromeos/login/screen_locker_delegate.h |
+++ /dev/null |
@@ -1,107 +0,0 @@ |
-// Copyright (c) 2012 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_SCREEN_LOCKER_DELEGATE_H_ |
-#define CHROME_BROWSER_CHROMEOS_LOGIN_SCREEN_LOCKER_DELEGATE_H_ |
- |
-#include "base/callback_forward.h" |
-#include "base/strings/string16.h" |
-#include "chrome/browser/chromeos/login/help_app_launcher.h" |
-#include "chrome/browser/chromeos/login/login_display.h" |
-#include "ui/gfx/native_widget_types.h" |
- |
-class GURL; |
- |
-namespace content { |
-class WebUI; |
-} |
- |
-namespace gfx { |
-class Image; |
-} |
- |
-namespace chromeos { |
- |
-class ScreenLocker; |
- |
-// ScreenLockerDelegate takes care of displaying the lock screen UI. |
-class ScreenLockerDelegate { |
- public: |
- explicit ScreenLockerDelegate(ScreenLocker* screen_locker); |
- virtual ~ScreenLockerDelegate(); |
- |
- // Initialize the screen locker delegate. This will call ScreenLockReady when |
- // done to notify ScreenLocker. |
- virtual void LockScreen() = 0; |
- |
- // Inform the screen locker that the screen has been locked |
- virtual void ScreenLockReady(); |
- |
- // This function is called when ScreenLocker::Authenticate is called to |
- // attempt to authenticate with a given password. |
- virtual void OnAuthenticate() = 0; |
- |
- // Enable/disable password input. |
- virtual void SetInputEnabled(bool enabled) = 0; |
- |
- // Displays a banner containing |message| on the lock screen. |
- virtual void ShowBannerMessage(const std::string& message) = 0; |
- |
- // Shows a button inside the user pod on the lock screen with an icon. |
- virtual void ShowUserPodButton(const std::string& username, |
- const std::string& iconURL, |
- const base::Closure& click_callback) = 0; |
- |
- // Hides the user pod button for a user. |
- virtual void HideUserPodButton(const std::string& username) = 0; |
- |
- // Set the authentication type to be used on the lock screen. |
- virtual void SetAuthType(const std::string& username, |
- LoginDisplay::AuthType auth_type, |
- const std::string& initial_value) = 0; |
- |
- // Returns the authentication type used for |username|. |
- virtual LoginDisplay::AuthType GetAuthType(const std::string& username) |
- const = 0; |
- |
- // Disables all UI needed and shows error bubble with |message|. |
- // If |sign_out_only| is true then all other input except "Sign Out" |
- // button is blocked. |
- virtual void ShowErrorMessage( |
- int error_msg_id, |
- HelpAppLauncher::HelpTopic help_topic_id) = 0; |
- |
- // Close message bubble to clear error messages. |
- virtual void ClearErrors() = 0; |
- |
- // Allows to have visual effects once unlock authentication is successful, |
- // Must call ScreenLocker::UnlockOnLoginSuccess() once all effects are done. |
- virtual void AnimateAuthenticationSuccess() = 0; |
- |
- // Returns the native window displaying the lock screen. |
- virtual gfx::NativeWindow GetNativeWindow() const = 0; |
- |
- // Returns WebUI associated with screen locker implementation or NULL if |
- // there isn't one. |
- virtual content::WebUI* GetAssociatedWebUI(); |
- |
- // Called when webui lock screen is ready. |
- virtual void OnLockWebUIReady() = 0; |
- |
- // Called when webui lock screen wallpaper is loaded and displayed. |
- virtual void OnLockBackgroundDisplayed() = 0; |
- |
- // Returns screen locker associated with delegate. |
- ScreenLocker* screen_locker() { return screen_locker_; } |
- |
- protected: |
- // ScreenLocker that owns this delegate. |
- ScreenLocker* screen_locker_; |
- |
- DISALLOW_COPY_AND_ASSIGN(ScreenLockerDelegate); |
-}; |
- |
-} // namespace chromeos |
- |
-#endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREEN_LOCKER_DELEGATE_H_ |