#include "components/user_notes/browser/user_note_instance.h"
#include "base/trace_event/typed_macros.h"
#include "components/user_notes/browser/user_note_manager.h"
#include "components/user_notes/model/user_note_target.h"
namespace user_notes {
UserNoteInstance::UserNoteInstance(base::SafeRef<UserNote> model,
UserNoteManager* parent_manager,
PassKey pass_key)
: … { … }
UserNoteInstance::UserNoteInstance(base::SafeRef<UserNote> model,
UserNoteManager* parent_manager)
: … { … }
std::unique_ptr<UserNoteInstance> UserNoteInstance::Create(
base::SafeRef<UserNote> model,
UserNoteManager* parent_manager) { … }
UserNoteInstance::~UserNoteInstance() = default;
bool UserNoteInstance::IsDetached() const { … }
void UserNoteInstance::BindToHighlight(
mojo::PendingReceiver<blink::mojom::AnnotationAgentHost> host_receiver,
mojo::PendingRemote<blink::mojom::AnnotationAgent> agent_remote,
AttachmentFinishedCallback callback) { … }
void UserNoteInstance::InitializeHighlightIfNeeded(
AttachmentFinishedCallback callback) { … }
void UserNoteInstance::OnNoteSelected() { … }
void UserNoteInstance::DidFinishAttachment(const gfx::Rect& rect) { … }
void UserNoteInstance::OnWebHighlightFocused() { … }
void UserNoteInstance::OnNoteDetached() { … }
void UserNoteInstance::InitializeHighlightInternal() { … }
}