chromium/pdf/preview_mode_client.cc

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

#include "pdf/preview_mode_client.h"

#include <stdint.h>

#include <memory>
#include <string>
#include <utility>

#include "base/functional/callback.h"
#include "base/notreached.h"
#include "base/time/time.h"
#include "pdf/document_layout.h"
#include "pdf/loader/url_loader.h"
#include "third_party/skia/include/core/SkColor.h"
#include "ui/base/cursor/mojom/cursor_type.mojom-shared.h"

namespace chrome_pdf {

PreviewModeClient::PreviewModeClient(Client* client) :{}

PreviewModeClient::~PreviewModeClient() = default;

void PreviewModeClient::ProposeDocumentLayout(const DocumentLayout& layout) {}

void PreviewModeClient::Invalidate(const gfx::Rect& rect) {}

void PreviewModeClient::DidScroll(const gfx::Vector2d& point) {}

void PreviewModeClient::ScrollToX(int x_in_screen_coords) {}

void PreviewModeClient::ScrollToY(int y_in_screen_coords) {}

void PreviewModeClient::ScrollBy(const gfx::Vector2d& scroll_delta) {}

void PreviewModeClient::ScrollToPage(int page) {}

void PreviewModeClient::NavigateTo(const std::string& url,
                                   WindowOpenDisposition disposition) {}

void PreviewModeClient::UpdateCursor(ui::mojom::CursorType cursor_type) {}

void PreviewModeClient::UpdateTickMarks(
    const std::vector<gfx::Rect>& tickmarks) {}

void PreviewModeClient::NotifyNumberOfFindResultsChanged(int total,
                                                         bool final_result) {}

void PreviewModeClient::NotifySelectedFindResultChanged(int current_find_index,
                                                        bool final_result) {}

void PreviewModeClient::GetDocumentPassword(
    base::OnceCallback<void(const std::string&)> callback) {}

void PreviewModeClient::Alert(const std::string& message) {}

bool PreviewModeClient::Confirm(const std::string& message) {}

std::string PreviewModeClient::Prompt(const std::string& question,
                                      const std::string& default_answer) {}

std::string PreviewModeClient::GetURL() {}

void PreviewModeClient::Email(const std::string& to,
                              const std::string& cc,
                              const std::string& bcc,
                              const std::string& subject,
                              const std::string& body) {}

void PreviewModeClient::Print() {}

void PreviewModeClient::SubmitForm(const std::string& url,
                                   const void* data,
                                   int length) {}

std::unique_ptr<UrlLoader> PreviewModeClient::CreateUrlLoader() {}

v8::Isolate* PreviewModeClient::GetIsolate() {}

std::vector<PDFiumEngineClient::SearchStringResult>
PreviewModeClient::SearchString(const char16_t* string,
                                const char16_t* term,
                                bool case_sensitive) {}

void PreviewModeClient::DocumentLoadComplete() {}

void PreviewModeClient::DocumentLoadFailed() {}

void PreviewModeClient::DocumentHasUnsupportedFeature(
    const std::string& feature) {}

void PreviewModeClient::FormFieldFocusChange(
    PDFiumEngineClient::FocusFieldType type) {}

bool PreviewModeClient::IsPrintPreview() const {}

SkColor PreviewModeClient::GetBackgroundColor() const {}

void PreviewModeClient::SetSelectedText(const std::string& selected_text) {}

void PreviewModeClient::SetLinkUnderCursor(
    const std::string& link_under_cursor) {}

bool PreviewModeClient::IsValidLink(const std::string& url) {}

}  // namespace chrome_pdf