#include "chrome/renderer/web_link_preview_triggerer_impl.h"
#include "base/functional/bind.h"
#include "third_party/blink/public/common/features.h"
#include "third_party/blink/public/common/input/web_input_event.h"
#include "third_party/blink/public/platform/web_url.h"
#include "third_party/blink/public/web/web_document.h"
#include "third_party/blink/public/web/web_element.h"
namespace {
constexpr base::TimeDelta kHoverThreshold = …;
constexpr base::TimeDelta kLongPressThreshold = …;
blink::WebURL GetURL(blink::WebElement& anchor_element) { … }
blink::WebElement GetMostInnerAnchorElement(blink::WebElement element) { … }
}
std::unique_ptr<blink::WebLinkPreviewTriggerer>
CreateWebLinkPreviewTriggerer() { … }
WebLinkPreviewTriggererAltHover::WebLinkPreviewTriggererAltHover()
: … { … }
WebLinkPreviewTriggererAltHover::~WebLinkPreviewTriggererAltHover() = default;
WebLinkPreviewTriggererAltHover::WebLinkPreviewTriggererAltHover(
WebLinkPreviewTriggererAltHover&& other) = default;
WebLinkPreviewTriggererAltHover& WebLinkPreviewTriggererAltHover::operator=(
WebLinkPreviewTriggererAltHover&& other) = default;
void WebLinkPreviewTriggererAltHover::MaybeChangedKeyEventModifier(
int modifiers) { … }
void WebLinkPreviewTriggererAltHover::DidChangeHoverElement(
blink::WebElement element) { … }
void WebLinkPreviewTriggererAltHover::UpdateState(
bool is_alt_on,
blink::WebElement anchor_element) { … }
void WebLinkPreviewTriggererAltHover::InitiatePreview() { … }
WebLinkPreviewTriggererLongPress::WebLinkPreviewTriggererLongPress()
: … { … }
WebLinkPreviewTriggererLongPress::~WebLinkPreviewTriggererLongPress() = default;
WebLinkPreviewTriggererLongPress::WebLinkPreviewTriggererLongPress(
WebLinkPreviewTriggererLongPress&& other) = default;
WebLinkPreviewTriggererLongPress& WebLinkPreviewTriggererLongPress::operator=(
WebLinkPreviewTriggererLongPress&& other) = default;
void WebLinkPreviewTriggererLongPress::DidChangeHoverElement(
blink::WebElement element) { … }
void WebLinkPreviewTriggererLongPress::DidAnchorElementReceiveMouseDownEvent(
blink::WebElement anchor_element,
blink::WebMouseEvent::Button button,
int click_count) { … }
void WebLinkPreviewTriggererLongPress::DidAnchorElementReceiveMouseUpEvent(
blink::WebElement anchor_element,
blink::WebMouseEvent::Button button,
int click_count) { … }
void WebLinkPreviewTriggererLongPress::InitiatePreview() { … }