![electron-roller[bot]](/assets/img/avatar_default.png)
* chore: bump chromium in DEPS to 132.0.6817.0 * chore: update chromium patches * 5979290: Temoporarily disable crel on arm. |5979290
* 5981701: Include callback.h instead of callback_forward.h |5981701
* 5964918: [v8 code cache] Add a wpt_internal test demonstrating the code cache 304 problem |5964918
* 5969697: Add NetworkTrafficAnnotationTag to PreconnectManager |5969697
* chore: update remaining patches * chore: bump chromium in DEPS to 132.0.6818.0 * chore: update patches * 5983492: MPArch GuestView: Have executeScript target correct frame |5983492
* chore: bump chromium in DEPS to 132.0.6820.0 * chore: update patches * 5989717: Revert "win: Remove special check for 10.0.22621.2428 Win SDK version" |5989717
* 5968218: Send PDF Searchifier running state to browser to show UX elements. |5968218
* build: also update the MSVS_HASH for WOA --------- Co-authored-by: electron-roller[bot] <84116207+electron-roller[bot]@users.noreply.github.com> Co-authored-by: Keeley Hammond <khammond@slack-corp.com> Co-authored-by: VerteDinde <vertedinde@electronjs.org>
33 lines
1.3 KiB
C++
33 lines
1.3 KiB
C++
// Copyright (c) 2015 Slack Technologies, Inc.
|
|
// Use of this source code is governed by the MIT license that can be
|
|
// found in the LICENSE file.
|
|
#ifndef ELECTRON_SHELL_BROWSER_ELECTRON_PDF_DOCUMENT_HELPER_CLIENT_H_
|
|
#define ELECTRON_SHELL_BROWSER_ELECTRON_PDF_DOCUMENT_HELPER_CLIENT_H_
|
|
|
|
#include "components/pdf/browser/pdf_document_helper_client.h"
|
|
#include "services/screen_ai/buildflags/buildflags.h"
|
|
|
|
namespace content {
|
|
class WebContents;
|
|
}
|
|
|
|
class ElectronPDFDocumentHelperClient : public pdf::PDFDocumentHelperClient {
|
|
public:
|
|
ElectronPDFDocumentHelperClient();
|
|
~ElectronPDFDocumentHelperClient() override;
|
|
|
|
private:
|
|
// pdf::PDFDocumentHelperClient
|
|
void UpdateContentRestrictions(content::RenderFrameHost* render_frame_host,
|
|
int content_restrictions) override;
|
|
void OnPDFHasUnsupportedFeature(content::WebContents* contents) override {}
|
|
void OnSaveURL(content::WebContents* contents) override {}
|
|
void SetPluginCanSave(content::RenderFrameHost* render_frame_host,
|
|
bool can_save) override;
|
|
#if BUILDFLAG(ENABLE_SCREEN_AI_SERVICE)
|
|
void OnSearchifyStateChange(bool busy,
|
|
content::WebContents* contents) override;
|
|
#endif
|
|
};
|
|
|
|
#endif // ELECTRON_SHELL_BROWSER_ELECTRON_PDF_DOCUMENT_HELPER_CLIENT_H_
|