Roll src/third_party/skia 27e517a:4657068
[chromium-blink-merge.git] / pdf / preview_mode_client.cc
blob5000089bb88530d0fef1c49592968d7bea8a9ce6
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.
5 #include "pdf/preview_mode_client.h"
7 #include "base/logging.h"
9 namespace chrome_pdf {
11 PreviewModeClient::PreviewModeClient(Client* client)
12 : client_(client) {
15 void PreviewModeClient::DocumentSizeUpdated(const pp::Size& size) {
18 void PreviewModeClient::Invalidate(const pp::Rect& rect) {
19 NOTREACHED();
22 void PreviewModeClient::Scroll(const pp::Point& point) {
23 NOTREACHED();
26 void PreviewModeClient::ScrollToX(int position) {
27 NOTREACHED();
30 void PreviewModeClient::ScrollToY(int position) {
31 NOTREACHED();
34 void PreviewModeClient::ScrollToPage(int page) {
35 NOTREACHED();
38 void PreviewModeClient::NavigateTo(const std::string& url,
39 bool open_in_new_tab) {
40 NOTREACHED();
43 void PreviewModeClient::UpdateCursor(PP_CursorType_Dev cursor) {
44 NOTREACHED();
47 void PreviewModeClient::UpdateTickMarks(
48 const std::vector<pp::Rect>& tickmarks) {
49 NOTREACHED();
52 void PreviewModeClient::NotifyNumberOfFindResultsChanged(int total,
53 bool final_result) {
54 NOTREACHED();
57 void PreviewModeClient::NotifySelectedFindResultChanged(
58 int current_find_index) {
59 NOTREACHED();
62 void PreviewModeClient::GetDocumentPassword(
63 pp::CompletionCallbackWithOutput<pp::Var> callback) {
64 callback.Run(PP_ERROR_FAILED);
67 void PreviewModeClient::Alert(const std::string& message) {
68 NOTREACHED();
71 bool PreviewModeClient::Confirm(const std::string& message) {
72 NOTREACHED();
73 return false;
76 std::string PreviewModeClient::Prompt(const std::string& question,
77 const std::string& default_answer) {
78 NOTREACHED();
79 return std::string();
82 std::string PreviewModeClient::GetURL() {
83 NOTREACHED();
84 return std::string();
87 void PreviewModeClient::Email(const std::string& to,
88 const std::string& cc,
89 const std::string& bcc,
90 const std::string& subject,
91 const std::string& body) {
92 NOTREACHED();
95 void PreviewModeClient::Print() {
96 NOTREACHED();
99 void PreviewModeClient::SubmitForm(const std::string& url,
100 const void* data,
101 int length) {
102 NOTREACHED();
105 std::string PreviewModeClient::ShowFileSelectionDialog() {
106 NOTREACHED();
107 return std::string();
110 pp::URLLoader PreviewModeClient::CreateURLLoader() {
111 NOTREACHED();
112 return pp::URLLoader();
115 void PreviewModeClient::ScheduleCallback(int id, int delay_in_ms) {
116 NOTREACHED();
119 void PreviewModeClient::SearchString(const base::char16* string,
120 const base::char16* term,
121 bool case_sensitive,
122 std::vector<SearchStringResult>* results) {
123 NOTREACHED();
126 void PreviewModeClient::DocumentPaintOccurred() {
127 NOTREACHED();
130 void PreviewModeClient::DocumentLoadComplete(int page_count) {
131 client_->PreviewDocumentLoadComplete();
134 void PreviewModeClient::DocumentLoadFailed() {
135 client_->PreviewDocumentLoadFailed();
138 pp::Instance* PreviewModeClient::GetPluginInstance() {
139 NOTREACHED();
140 return NULL;
143 void PreviewModeClient::DocumentHasUnsupportedFeature(
144 const std::string& feature) {
145 NOTREACHED();
148 void PreviewModeClient::DocumentLoadProgress(uint32 available,
149 uint32 doc_size) {
152 void PreviewModeClient::FormTextFieldFocusChange(bool in_focus) {
153 NOTREACHED();
156 bool PreviewModeClient::IsPrintPreview() {
157 NOTREACHED();
158 return false;
161 uint32 PreviewModeClient::GetBackgroundColor() {
162 NOTREACHED();
163 return 0;
166 } // namespace chrome_pdf