Upload upstream chromium 76.0.3809.146
[platform/framework/web/chromium-efl.git] / pdf / preview_mode_client.cc
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
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 "base/logging.h"
10
11 namespace chrome_pdf {
12
13 PreviewModeClient::PreviewModeClient(Client* client) : client_(client) {}
14
15 void PreviewModeClient::Invalidate(const pp::Rect& rect) {
16   NOTREACHED();
17 }
18
19 void PreviewModeClient::DidScroll(const pp::Point& point) {
20   NOTREACHED();
21 }
22
23 void PreviewModeClient::ScrollToX(int x_in_screen_coords) {
24   NOTREACHED();
25 }
26
27 void PreviewModeClient::ScrollToY(int y_in_screen_coords,
28                                   bool compensate_for_toolbar) {
29   NOTREACHED();
30 }
31
32 void PreviewModeClient::ScrollBy(const pp::Point& point) {
33   NOTREACHED();
34 }
35
36 void PreviewModeClient::ScrollToPage(int page) {
37   NOTREACHED();
38 }
39
40 void PreviewModeClient::NavigateTo(const std::string& url,
41                                    WindowOpenDisposition disposition) {
42   NOTREACHED();
43 }
44
45 void PreviewModeClient::UpdateCursor(PP_CursorType_Dev cursor) {
46   NOTREACHED();
47 }
48
49 void PreviewModeClient::UpdateTickMarks(
50     const std::vector<pp::Rect>& tickmarks) {
51   NOTREACHED();
52 }
53
54 void PreviewModeClient::NotifyNumberOfFindResultsChanged(int total,
55                                                          bool final_result) {
56   NOTREACHED();
57 }
58
59 void PreviewModeClient::NotifySelectedFindResultChanged(
60     int current_find_index) {
61   NOTREACHED();
62 }
63
64 void PreviewModeClient::GetDocumentPassword(
65     pp::CompletionCallbackWithOutput<pp::Var> callback) {
66   callback.Run(PP_ERROR_FAILED);
67 }
68
69 void PreviewModeClient::Alert(const std::string& message) {
70   NOTREACHED();
71 }
72
73 bool PreviewModeClient::Confirm(const std::string& message) {
74   NOTREACHED();
75   return false;
76 }
77
78 std::string PreviewModeClient::Prompt(const std::string& question,
79                                       const std::string& default_answer) {
80   NOTREACHED();
81   return std::string();
82 }
83
84 std::string PreviewModeClient::GetURL() {
85   NOTREACHED();
86   return std::string();
87 }
88
89 void PreviewModeClient::Email(const std::string& to,
90                               const std::string& cc,
91                               const std::string& bcc,
92                               const std::string& subject,
93                               const std::string& body) {
94   NOTREACHED();
95 }
96
97 void PreviewModeClient::Print() {
98   NOTREACHED();
99 }
100
101 void PreviewModeClient::SubmitForm(const std::string& url,
102                                    const void* data,
103                                    int length) {
104   NOTREACHED();
105 }
106
107 pp::URLLoader PreviewModeClient::CreateURLLoader() {
108   NOTREACHED();
109   return pp::URLLoader();
110 }
111
112 std::vector<PDFEngine::Client::SearchStringResult>
113 PreviewModeClient::SearchString(const base::char16* string,
114                                 const base::char16* term,
115                                 bool case_sensitive) {
116   NOTREACHED();
117   return std::vector<SearchStringResult>();
118 }
119
120 void PreviewModeClient::DocumentLoadComplete(
121     const PDFEngine::DocumentFeatures& document_features,
122     uint32_t file_size) {
123   client_->PreviewDocumentLoadComplete();
124 }
125
126 void PreviewModeClient::DocumentLoadFailed() {
127   client_->PreviewDocumentLoadFailed();
128 }
129
130 pp::Instance* PreviewModeClient::GetPluginInstance() {
131   return nullptr;
132 }
133
134 void PreviewModeClient::DocumentHasUnsupportedFeature(
135     const std::string& feature) {
136   NOTREACHED();
137 }
138
139 void PreviewModeClient::FontSubstituted() {
140   NOTREACHED();
141 }
142
143 void PreviewModeClient::FormTextFieldFocusChange(bool in_focus) {
144   NOTREACHED();
145 }
146
147 bool PreviewModeClient::IsPrintPreview() {
148   NOTREACHED();
149   return false;
150 }
151
152 float PreviewModeClient::GetToolbarHeightInScreenCoords() {
153   return 0.0f;
154 }
155
156 uint32_t PreviewModeClient::GetBackgroundColor() {
157   NOTREACHED();
158   return 0;
159 }
160
161 }  // namespace chrome_pdf