blob: 5e1f69b97c97f2fe664ba16085f0c0becb70ca16 [file] [log] [blame]
// Copyright 2024 The Chromium Authors
// 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_WEBID_WEBID_UTILS_H_
#define CHROME_BROWSER_UI_VIEWS_WEBID_WEBID_UTILS_H_
#include <string>
#include "third_party/blink/public/mojom/webid/federated_auth_request.mojom.h"
#include "ui/views/widget/widget.h"
namespace webid {
int SelectSingleIdpTitleResourceId(blink::mojom::RpContext rp_context);
std::u16string GetTitle(const std::u16string& rp_for_display,
const std::optional<std::u16string>& idp_title,
blink::mojom::RpContext rp_context);
// Sends an accessibility event to make an announcement of the passed in
// `announcement` if available, otherwise the text in the currently focused
// view is announced.
void SendAccessibilityEvent(views::Widget* widget,
std::u16string announcement = std::u16string());
} // namespace webid
#endif // CHROME_BROWSER_UI_VIEWS_WEBID_WEBID_UTILS_H_