#ifndef ASH_WEBUI_ANNOTATOR_ANNOTATIONS_OVERLAY_VIEW_IMPL_H_
#define ASH_WEBUI_ANNOTATOR_ANNOTATIONS_OVERLAY_VIEW_IMPL_H_
#include "ash/public/cpp/annotator/annotations_overlay_view.h"
#include "base/memory/raw_ptr.h"
#include "base/memory/weak_ptr.h"
#include "ui/base/metadata/metadata_header_macros.h"
namespace content {
class BrowserContext;
}
namespace views {
class WebView;
}
class AnnotationsOverlayViewImpl : public ash::AnnotationsOverlayView {
METADATA_HEADER(AnnotationsOverlayViewImpl, ash::AnnotationsOverlayView)
public:
explicit AnnotationsOverlayViewImpl(content::BrowserContext* profile);
AnnotationsOverlayViewImpl(const AnnotationsOverlayViewImpl&) = delete;
AnnotationsOverlayViewImpl& operator=(const AnnotationsOverlayViewImpl&) =
delete;
~AnnotationsOverlayViewImpl() override;
views::WebView* GetWebViewForTest() { return web_view_; }
private:
void InitializeAnnotator();
raw_ptr<views::WebView> web_view_;
base::WeakPtrFactory<AnnotationsOverlayViewImpl> weak_ptr_factory_{this};
};
#endif