#include "chrome/browser/ui/views/permissions/embedded_permission_prompt_content_scrim_view.h"
#include "content/public/browser/web_contents.h"
#include "ui/base/metadata/metadata_impl_macros.h"
#include "ui/views/background.h"
#include "ui/views/view_class_properties.h"
namespace {
constexpr char kWidgetName[] = …;
}
EmbeddedPermissionPromptContentScrimView::
EmbeddedPermissionPromptContentScrimView(base::WeakPtr<Delegate> delegate,
views::Widget* widget)
: … { … }
EmbeddedPermissionPromptContentScrimView::
~EmbeddedPermissionPromptContentScrimView() = default;
std::unique_ptr<views::Widget>
EmbeddedPermissionPromptContentScrimView::CreateScrimWidget(
base::WeakPtr<Delegate> delegate,
SkColor color) { … }
bool EmbeddedPermissionPromptContentScrimView::OnMousePressed(
const ui::MouseEvent& event) { … }
void EmbeddedPermissionPromptContentScrimView::OnGestureEvent(
ui::GestureEvent* event) { … }
void EmbeddedPermissionPromptContentScrimView::OnWidgetDestroyed(
views::Widget* widget) { … }
void EmbeddedPermissionPromptContentScrimView::OnWidgetBoundsChanged(
views::Widget* widget,
const gfx::Rect& new_bounds) { … }
BEGIN_METADATA(…)
DEFINE_CLASS_ELEMENT_IDENTIFIER_VALUE(EmbeddedPermissionPromptContentScrimView,
kContentScrimViewId);