#include "chrome/browser/ui/views/permissions/embedded_permission_prompt_previously_granted_view.h"
#include "base/memory/weak_ptr.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/url_identity.h"
#include "components/strings/grit/components_strings.h"
#include "components/vector_icons/vector_icons.h"
#include "ui/base/l10n/l10n_util.h"
DEFINE_CLASS_ELEMENT_IDENTIFIER_VALUE(
EmbeddedPermissionPromptPreviouslyGrantedView,
kContinueAllowingId);
DEFINE_CLASS_ELEMENT_IDENTIFIER_VALUE(
EmbeddedPermissionPromptPreviouslyGrantedView,
kStopAllowingId);
EmbeddedPermissionPromptPreviouslyGrantedView::
EmbeddedPermissionPromptPreviouslyGrantedView(
Browser* browser,
base::WeakPtr<EmbeddedPermissionPromptViewDelegate> delegate)
: … { … }
EmbeddedPermissionPromptPreviouslyGrantedView::
~EmbeddedPermissionPromptPreviouslyGrantedView() = default;
std::u16string
EmbeddedPermissionPromptPreviouslyGrantedView::GetAccessibleWindowTitle()
const { … }
std::u16string EmbeddedPermissionPromptPreviouslyGrantedView::GetWindowTitle()
const { … }
void EmbeddedPermissionPromptPreviouslyGrantedView::RunButtonCallback(
int button_id) { … }
std::vector<
EmbeddedPermissionPromptPreviouslyGrantedView::RequestLineConfiguration>
EmbeddedPermissionPromptPreviouslyGrantedView::GetRequestLinesConfiguration()
const { … }
std::vector<EmbeddedPermissionPromptPreviouslyGrantedView::ButtonConfiguration>
EmbeddedPermissionPromptPreviouslyGrantedView::GetButtonsConfiguration() const { … }