910e62b5创建于 1月15日历史提交
// Copyright 2025 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

/**
 * @fileoverview A shared library for clipboard features. This file should be
 * imported by other clipboard-related scripts.
 */

import {gCrWeb} from '//ios/web/public/js_messaging/resources/gcrweb.js';
import {sendWebKitMessage} from '//ios/web/public/js_messaging/resources/utils.js';

/**
 * Sends a message to the browser that a clipboard read has finished.
 */
export function sendDidFinishClipboardReadMessage() {
  sendWebKitMessage('ClipboardHandler', {
    'frameId': gCrWeb.getFrameId(),
    'command': 'didFinishClipboardRead',
  });
}