mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2024-12-26 17:42:35 +01:00
2f1e782f62
Frame identifiers have changed from int64_t to string type. This is due to https://crbug.com/1502660 which removes access to frame routing IDs in the renderer process. New cross-process frame identifiers are 160-bit values (32-bit child process ID + 128-bit local frame token) and most easily represented as strings. All other frame-related expectations and behaviors remain the same.
75 lines
2.6 KiB
C++
75 lines
2.6 KiB
C++
// Copyright (c) 2024 The Chromium Embedded Framework Authors. All rights
|
|
// reserved. Use of this source code is governed by a BSD-style license that
|
|
// can be found in the LICENSE file.
|
|
//
|
|
// ---------------------------------------------------------------------------
|
|
//
|
|
// This file was generated by the CEF translator tool. If making changes by
|
|
// hand only do so within the body of existing method and function
|
|
// implementations. See the translator.README.txt file in the tools directory
|
|
// for more information.
|
|
//
|
|
// $hash=c70637482d64cbe5fd1bea33bf18950594a50dac$
|
|
//
|
|
|
|
#ifndef CEF_LIBCEF_DLL_CTOCPP_FRAME_CTOCPP_H_
|
|
#define CEF_LIBCEF_DLL_CTOCPP_FRAME_CTOCPP_H_
|
|
#pragma once
|
|
|
|
#if !defined(WRAPPING_CEF_SHARED)
|
|
#error This file can be included wrapper-side only
|
|
#endif
|
|
|
|
#include "include/capi/cef_browser_capi.h"
|
|
#include "include/capi/cef_frame_capi.h"
|
|
#include "include/capi/cef_urlrequest_capi.h"
|
|
#include "include/capi/cef_v8_capi.h"
|
|
#include "include/cef_browser.h"
|
|
#include "include/cef_frame.h"
|
|
#include "include/cef_urlrequest.h"
|
|
#include "include/cef_v8.h"
|
|
#include "libcef_dll/ctocpp/ctocpp_ref_counted.h"
|
|
|
|
// Wrap a C structure with a C++ class.
|
|
// This class may be instantiated and accessed wrapper-side only.
|
|
class CefFrameCToCpp
|
|
: public CefCToCppRefCounted<CefFrameCToCpp, CefFrame, cef_frame_t> {
|
|
public:
|
|
CefFrameCToCpp();
|
|
virtual ~CefFrameCToCpp();
|
|
|
|
// CefFrame methods.
|
|
bool IsValid() override;
|
|
void Undo() override;
|
|
void Redo() override;
|
|
void Cut() override;
|
|
void Copy() override;
|
|
void Paste() override;
|
|
void Delete() override;
|
|
void SelectAll() override;
|
|
void ViewSource() override;
|
|
void GetSource(CefRefPtr<CefStringVisitor> visitor) override;
|
|
void GetText(CefRefPtr<CefStringVisitor> visitor) override;
|
|
void LoadRequest(CefRefPtr<CefRequest> request) override;
|
|
void LoadURL(const CefString& url) override;
|
|
void ExecuteJavaScript(const CefString& code,
|
|
const CefString& script_url,
|
|
int start_line) override;
|
|
bool IsMain() override;
|
|
bool IsFocused() override;
|
|
CefString GetName() override;
|
|
CefString GetIdentifier() override;
|
|
CefRefPtr<CefFrame> GetParent() override;
|
|
CefString GetURL() override;
|
|
CefRefPtr<CefBrowser> GetBrowser() override;
|
|
CefRefPtr<CefV8Context> GetV8Context() override;
|
|
void VisitDOM(CefRefPtr<CefDOMVisitor> visitor) override;
|
|
CefRefPtr<CefURLRequest> CreateURLRequest(
|
|
CefRefPtr<CefRequest> request,
|
|
CefRefPtr<CefURLRequestClient> client) override;
|
|
void SendProcessMessage(CefProcessId target_process,
|
|
CefRefPtr<CefProcessMessage> message) override;
|
|
};
|
|
|
|
#endif // CEF_LIBCEF_DLL_CTOCPP_FRAME_CTOCPP_H_
|