| Index: chrome/browser/chromeos/login/user_selection_screen_proxy.h
|
| diff --git a/chrome/browser/chromeos/login/user_selection_screen_proxy.h b/chrome/browser/chromeos/login/user_selection_screen_proxy.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..4d4fb5b0d923f0f2054650b34d5a965830801c1a
|
| --- /dev/null
|
| +++ b/chrome/browser/chromeos/login/user_selection_screen_proxy.h
|
| @@ -0,0 +1,48 @@
|
| +// Copyright 2017 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_USER_SELECTION_SCREEN_PROXY_H_
|
| +#define CHROME_BROWSER_CHROMEOS_LOGIN_USER_SELECTION_SCREEN_PROXY_H_
|
| +
|
| +#include "base/macros.h"
|
| +#include "base/memory/weak_ptr.h"
|
| +#include "chrome/browser/chromeos/login/ui/views/user_board_view.h"
|
| +
|
| +namespace chromeos {
|
| +
|
| +// This class is a proxy layer which handles calls from UserSelectionScreen and
|
| +// send them to ash.
|
| +class UserSelectionScreenProxy : public chromeos::UserBoardView {
|
| + public:
|
| + UserSelectionScreenProxy();
|
| + ~UserSelectionScreenProxy() override;
|
| +
|
| + // UserBoardView:
|
| + void SetPublicSessionDisplayName(const AccountId& account_id,
|
| + const std::string& display_name) override{};
|
| + void SetPublicSessionLocales(const AccountId& account_id,
|
| + std::unique_ptr<base::ListValue> locales,
|
| + const std::string& default_locale,
|
| + bool multiple_recommended_locales) override{};
|
| + void ShowBannerMessage(const base::string16& message) override{};
|
| + void ShowUserPodCustomIcon(
|
| + const AccountId& account_id,
|
| + const proximity_auth::ScreenlockBridge::UserPodCustomIconOptions& icon)
|
| + override;
|
| + void HideUserPodCustomIcon(const AccountId& account_id) override;
|
| + void SetAuthType(
|
| + const AccountId& account_id,
|
| + proximity_auth::ScreenlockBridge::LockHandler::AuthType auth_type,
|
| + const base::string16& initial_value) override;
|
| + void Bind(chromeos::UserSelectionScreen* screen) override{};
|
| + void Unbind() override{};
|
| + base::WeakPtr<UserBoardView> GetWeakPtr() override;
|
| +
|
| + private:
|
| + DISALLOW_COPY_AND_ASSIGN(UserSelectionScreenProxy);
|
| +};
|
| +
|
| +} // namespace chromeos
|
| +
|
| +#endif // CHROME_BROWSER_CHROMEOS_LOGIN_USER_SELECTION_SCREEN_PROXY_H_
|
|
|