#include "components/page_image_annotation/core/page_annotator.h"
#include "base/functional/bind.h"
#include "base/observer_list.h"
namespace page_image_annotation {
ia_mojom;
PageAnnotator::Observer::~Observer() { … }
PageAnnotator::PageAnnotator(mojo::PendingRemote<ia_mojom::Annotator> annotator)
: … { … }
PageAnnotator::~PageAnnotator() { … }
void PageAnnotator::ImageAddedOrPossiblyModified(
const ImageMetadata& metadata,
base::RepeatingCallback<SkBitmap()> pixels_callback) { … }
void PageAnnotator::ImageRemoved(const uint64_t node_id) { … }
void PageAnnotator::AnnotateImage(Observer* const observer,
const uint64_t node_id) { … }
void PageAnnotator::AddObserver(Observer* const observer) { … }
void PageAnnotator::AddNewImage(
const ImageMetadata& metadata,
base::RepeatingCallback<SkBitmap()> pixels_callback) { … }
void PageAnnotator::NotifyObserver(Observer* const observer,
const uint64_t node_id,
ia_mojom::AnnotateImageResultPtr result) { … }
}