blob: 9fdb4afdfcba86c7bf214e84e40a95d20fae00b4 [file] [log] [blame]
// Copyright 2018 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_VIEWS_PASSWORDS_PASSWORD_SIGN_IN_PROMO_VIEW_H_
#define CHROME_BROWSER_UI_VIEWS_PASSWORDS_PASSWORD_SIGN_IN_PROMO_VIEW_H_
#include "ui/views/controls/button/button.h"
#include "ui/views/view.h"
class ManagePasswordsBubbleModel;
// A view that can show up after saving a password without being signed in to
// offer signing users in so they can access their credentials across devices.
class PasswordSignInPromoView : public views::View {
public:
explicit PasswordSignInPromoView(ManagePasswordsBubbleModel* model);
bool Accept();
bool Cancel();
int GetDialogButtons() const;
base::string16 GetDialogButtonLabel(ui::DialogButton button) const;
private:
ManagePasswordsBubbleModel* const model_;
DISALLOW_COPY_AND_ASSIGN(PasswordSignInPromoView);
};
#endif // CHROME_BROWSER_UI_VIEWS_PASSWORDS_PASSWORD_SIGN_IN_PROMO_VIEW_H_