Fix: warnings in media/capture/filters
[platform/framework/web/chromium-efl.git] / pdf / preview_mode_client.cc
1 // Copyright 2011 The Chromium Authors
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "pdf/preview_mode_client.h"
6
7 #include <stdint.h>
8
9 #include <memory>
10 #include <string>
11 #include <utility>
12
13 #include "base/functional/callback.h"
14 #include "base/notreached.h"
15 #include "base/time/time.h"
16 #include "pdf/document_layout.h"
17 #include "pdf/loader/url_loader.h"
18 #include "third_party/skia/include/core/SkColor.h"
19 #include "ui/base/cursor/mojom/cursor_type.mojom-shared.h"
20
21 namespace chrome_pdf {
22
23 PreviewModeClient::PreviewModeClient(Client* client) : client_(client) {}
24
25 PreviewModeClient::~PreviewModeClient() = default;
26
27 void PreviewModeClient::ProposeDocumentLayout(const DocumentLayout& layout) {
28   // This will be invoked if the PreviewModeClient is used, which currently
29   // occurs if and only if loading a non-PDF document with more than 1 page.
30 }
31
32 void PreviewModeClient::Invalidate(const gfx::Rect& rect) {
33   NOTREACHED();
34 }
35
36 void PreviewModeClient::DidScroll(const gfx::Vector2d& point) {
37   NOTREACHED();
38 }
39
40 void PreviewModeClient::ScrollToX(int x_in_screen_coords) {
41   NOTREACHED();
42 }
43
44 void PreviewModeClient::ScrollToY(int y_in_screen_coords) {
45   NOTREACHED();
46 }
47
48 void PreviewModeClient::ScrollBy(const gfx::Vector2d& scroll_delta) {
49   NOTREACHED();
50 }
51
52 void PreviewModeClient::ScrollToPage(int page) {
53   NOTREACHED();
54 }
55
56 void PreviewModeClient::NavigateTo(const std::string& url,
57                                    WindowOpenDisposition disposition) {
58   NOTREACHED();
59 }
60
61 void PreviewModeClient::UpdateCursor(ui::mojom::CursorType cursor_type) {
62   NOTREACHED();
63 }
64
65 void PreviewModeClient::UpdateTickMarks(
66     const std::vector<gfx::Rect>& tickmarks) {
67   NOTREACHED();
68 }
69
70 void PreviewModeClient::NotifyNumberOfFindResultsChanged(int total,
71                                                          bool final_result) {
72   NOTREACHED();
73 }
74
75 void PreviewModeClient::NotifySelectedFindResultChanged(int current_find_index,
76                                                         bool final_result) {
77   NOTREACHED();
78 }
79
80 void PreviewModeClient::GetDocumentPassword(
81     base::OnceCallback<void(const std::string&)> callback) {
82   std::move(callback).Run("");
83 }
84
85 void PreviewModeClient::Alert(const std::string& message) {
86   NOTREACHED();
87 }
88
89 bool PreviewModeClient::Confirm(const std::string& message) {
90   NOTREACHED();
91   return false;
92 }
93
94 std::string PreviewModeClient::Prompt(const std::string& question,
95                                       const std::string& default_answer) {
96   NOTREACHED();
97   return std::string();
98 }
99
100 std::string PreviewModeClient::GetURL() {
101   NOTREACHED();
102   return std::string();
103 }
104
105 void PreviewModeClient::Email(const std::string& to,
106                               const std::string& cc,
107                               const std::string& bcc,
108                               const std::string& subject,
109                               const std::string& body) {
110   NOTREACHED();
111 }
112
113 void PreviewModeClient::Print() {
114   NOTREACHED();
115 }
116
117 void PreviewModeClient::SubmitForm(const std::string& url,
118                                    const void* data,
119                                    int length) {
120   NOTREACHED();
121 }
122
123 std::unique_ptr<UrlLoader> PreviewModeClient::CreateUrlLoader() {
124   NOTREACHED();
125   return nullptr;
126 }
127
128 std::vector<PDFEngine::Client::SearchStringResult>
129 PreviewModeClient::SearchString(const char16_t* string,
130                                 const char16_t* term,
131                                 bool case_sensitive) {
132   NOTREACHED();
133   return std::vector<SearchStringResult>();
134 }
135
136 void PreviewModeClient::DocumentLoadComplete() {
137   client_->PreviewDocumentLoadComplete();
138 }
139
140 void PreviewModeClient::DocumentLoadFailed() {
141   client_->PreviewDocumentLoadFailed();
142 }
143
144 void PreviewModeClient::DocumentHasUnsupportedFeature(
145     const std::string& feature) {
146   NOTREACHED();
147 }
148
149 void PreviewModeClient::FormFieldFocusChange(PDFEngine::FocusFieldType type) {
150   NOTREACHED();
151 }
152
153 bool PreviewModeClient::IsPrintPreview() const {
154   return true;
155 }
156
157 SkColor PreviewModeClient::GetBackgroundColor() const {
158   NOTREACHED();
159   return SK_ColorTRANSPARENT;
160 }
161
162 void PreviewModeClient::SetSelectedText(const std::string& selected_text) {
163   NOTREACHED();
164 }
165
166 void PreviewModeClient::SetLinkUnderCursor(
167     const std::string& link_under_cursor) {
168   NOTREACHED();
169 }
170
171 bool PreviewModeClient::IsValidLink(const std::string& url) {
172   NOTREACHED();
173   return false;
174 }
175
176 }  // namespace chrome_pdf