chromium/chrome/renderer/web_link_preview_triggerer_impl.cc

// Copyright 2024 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#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 =;
// TODO(crbug.com/330196622):
//   Use ui::GestureConfiguration()->long_press_time_ms() here.
constexpr base::TimeDelta kLongPressThreshold =;

blink::WebURL GetURL(blink::WebElement& anchor_element) {}

blink::WebElement GetMostInnerAnchorElement(blink::WebElement element) {}

}  // namespace

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() {}