closure: fix compile error by adding missing externs
[chromium-blink-merge.git] / pdf / preview_mode_client.cc
bloba315f885baaeccafc4988e657cc72cd48059e2e2
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"
8 #include "pdf/instance.h"
10 namespace chrome_pdf {
12 PreviewModeClient::PreviewModeClient(Client* client)
13 : client_(client) {
16 void PreviewModeClient::DocumentSizeUpdated(const pp::Size& size) {
19 void PreviewModeClient::Invalidate(const pp::Rect& rect) {
20 NOTREACHED();
23 void PreviewModeClient::Scroll(const pp::Point& point) {
24 NOTREACHED();
27 void PreviewModeClient::ScrollToX(int position) {
28 NOTREACHED();
31 void PreviewModeClient::ScrollToY(int position) {
32 NOTREACHED();
35 void PreviewModeClient::ScrollToPage(int page) {
36 NOTREACHED();
39 void PreviewModeClient::NavigateTo(const std::string& url,
40 bool open_in_new_tab) {
41 NOTREACHED();
44 void PreviewModeClient::UpdateCursor(PP_CursorType_Dev cursor) {
45 NOTREACHED();
48 void PreviewModeClient::UpdateTickMarks(
49 const std::vector<pp::Rect>& tickmarks) {
50 NOTREACHED();
53 void PreviewModeClient::NotifyNumberOfFindResultsChanged(int total,
54 bool final_result) {
55 NOTREACHED();
58 void PreviewModeClient::NotifySelectedFindResultChanged(
59 int current_find_index) {
60 NOTREACHED();
63 void PreviewModeClient::GetDocumentPassword(
64 pp::CompletionCallbackWithOutput<pp::Var> callback) {
65 callback.Run(PP_ERROR_FAILED);
68 void PreviewModeClient::Alert(const std::string& message) {
69 NOTREACHED();
72 bool PreviewModeClient::Confirm(const std::string& message) {
73 NOTREACHED();
74 return false;
77 std::string PreviewModeClient::Prompt(const std::string& question,
78 const std::string& default_answer) {
79 NOTREACHED();
80 return std::string();
83 std::string PreviewModeClient::GetURL() {
84 NOTREACHED();
85 return std::string();
88 void PreviewModeClient::Email(const std::string& to,
89 const std::string& cc,
90 const std::string& bcc,
91 const std::string& subject,
92 const std::string& body) {
93 NOTREACHED();
96 void PreviewModeClient::Print() {
97 NOTREACHED();
100 void PreviewModeClient::SubmitForm(const std::string& url,
101 const void* data,
102 int length) {
103 NOTREACHED();
106 std::string PreviewModeClient::ShowFileSelectionDialog() {
107 NOTREACHED();
108 return std::string();
111 pp::URLLoader PreviewModeClient::CreateURLLoader() {
112 NOTREACHED();
113 return pp::URLLoader();
116 void PreviewModeClient::ScheduleCallback(int id, int delay_in_ms) {
117 NOTREACHED();
120 void PreviewModeClient::SearchString(const base::char16* string,
121 const base::char16* term,
122 bool case_sensitive,
123 std::vector<SearchStringResult>* results) {
124 NOTREACHED();
127 void PreviewModeClient::DocumentPaintOccurred() {
128 NOTREACHED();
131 void PreviewModeClient::DocumentLoadComplete(int page_count) {
132 client_->PreviewDocumentLoadComplete();
135 void PreviewModeClient::DocumentLoadFailed() {
136 client_->PreviewDocumentLoadFailed();
139 pp::Instance* PreviewModeClient::GetPluginInstance() {
140 NOTREACHED();
141 return NULL;
144 void PreviewModeClient::DocumentHasUnsupportedFeature(
145 const std::string& feature) {
146 NOTREACHED();
149 void PreviewModeClient::DocumentLoadProgress(uint32 available,
150 uint32 doc_size) {
153 void PreviewModeClient::FormTextFieldFocusChange(bool in_focus) {
154 NOTREACHED();
157 bool PreviewModeClient::IsPrintPreview() {
158 NOTREACHED();
159 return false;
162 uint32 PreviewModeClient::GetBackgroundColor() {
163 NOTREACHED();
164 return 0;
167 } // namespace chrome_pdf