blob: d8d6d4c2a2b0aba7ef137405a09354f336a06f05 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
// Copyright 2015 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_UI_PASSWORDS_ACCOUNT_CHOOSER_PROMPT_H_
#define CHROME_BROWSER_UI_PASSWORDS_ACCOUNT_CHOOSER_PROMPT_H_
namespace content {
class WebContents;
}
class PasswordDialogController;
// A platform-independent interface for the account chooser dialog.
class AccountChooserPrompt {
public:
// Shows the account chooser dialog.
virtual void Show() = 0;
// Notifies the UI element that it's controller is no longer managing the UI
// element. The dialog should close.
virtual void ControllerGone() = 0;
protected:
virtual ~AccountChooserPrompt() = default;
};
// Factory function for AccountChooserPrompt on desktop platforms.
AccountChooserPrompt* CreateAccountChooserPromptView(
PasswordDialogController* controller, content::WebContents* web_contents);
#endif // CHROME_BROWSER_UI_PASSWORDS_ACCOUNT_CHOOSER_PROMPT_H_
|