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

Unified Diff: chrome/browser/chromeos/login/lock/screen_locker_delegate.h

Issue 2429033003: cros: Cleanup lock screen and OOBE C++ backing code. (Closed)
Patch Set: Address comments Created 4 years, 2 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/lock/screen_locker_delegate.h
diff --git a/chrome/browser/chromeos/login/lock/screen_locker_delegate.h b/chrome/browser/chromeos/login/lock/screen_locker_delegate.h
deleted file mode 100644
index e2e73d83c5ff8a80de2d4d87bccc70c128bea1d3..0000000000000000000000000000000000000000
--- a/chrome/browser/chromeos/login/lock/screen_locker_delegate.h
+++ /dev/null
@@ -1,91 +0,0 @@
-// Copyright 2014 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_LOCK_SCREEN_LOCKER_DELEGATE_H_
-#define CHROME_BROWSER_CHROMEOS_LOGIN_LOCK_SCREEN_LOCKER_DELEGATE_H_
-
-#include "base/callback_forward.h"
-#include "base/macros.h"
-#include "base/strings/string16.h"
-#include "chrome/browser/chromeos/login/help_app_launcher.h"
-#include "chrome/browser/chromeos/login/ui/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;
-
- // 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;
-
- // Called when the webui header bar becomes visible.
- virtual void OnHeaderBarVisible() = 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_LOCK_SCREEN_LOCKER_DELEGATE_H_
« no previous file with comments | « chrome/browser/chromeos/login/lock/screen_locker.cc ('k') | chrome/browser/chromeos/login/lock/screen_locker_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698