Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(32)

Side by Side Diff: pdf/preview_mode_client.cc

Issue 294793003: Add the pdf plugin's source in src\pdf. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: review comments Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
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 "base/logging.h"
8 #include "pdf/instance.h"
9
10 namespace chrome_pdf {
11
12 PreviewModeClient::PreviewModeClient(Client* client)
13 : client_(client) {
14 }
15
16 void PreviewModeClient::DocumentSizeUpdated(const pp::Size& size) {
17 }
18
19 void PreviewModeClient::Invalidate(const pp::Rect& rect) {
20 NOTREACHED();
21 }
22
23 void PreviewModeClient::Scroll(const pp::Point& point) {
24 NOTREACHED();
25 }
26
27 void PreviewModeClient::ScrollToX(int position) {
28 NOTREACHED();
29 }
30
31 void PreviewModeClient::ScrollToY(int position) {
32 NOTREACHED();
33 }
34
35 void PreviewModeClient::ScrollToPage(int page) {
36 NOTREACHED();
37 }
38
39 void PreviewModeClient::NavigateTo(const std::string& url,
40 bool open_in_new_tab) {
41 NOTREACHED();
42 }
43
44 void PreviewModeClient::UpdateCursor(PP_CursorType_Dev cursor) {
45 NOTREACHED();
46 }
47
48 void PreviewModeClient::UpdateTickMarks(
49 const std::vector<pp::Rect>& tickmarks) {
50 NOTREACHED();
51 }
52
53 void PreviewModeClient::NotifyNumberOfFindResultsChanged(int total,
54 bool final_result) {
55 NOTREACHED();
56 }
57
58 void PreviewModeClient::NotifySelectedFindResultChanged(
59 int current_find_index) {
60 NOTREACHED();
61 }
62
63 void PreviewModeClient::GetDocumentPassword(
64 pp::CompletionCallbackWithOutput<pp::Var> callback) {
65 callback.Run(PP_ERROR_FAILED);
66 }
67
68 void PreviewModeClient::Alert(const std::string& message) {
69 NOTREACHED();
70 }
71
72 bool PreviewModeClient::Confirm(const std::string& message) {
73 NOTREACHED();
74 return false;
75 }
76
77 std::string PreviewModeClient::Prompt(const std::string& question,
78 const std::string& default_answer) {
79 NOTREACHED();
80 return std::string();
81 }
82
83 std::string PreviewModeClient::GetURL() {
84 NOTREACHED();
85 return std::string();
86 }
87
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();
94 }
95
96 void PreviewModeClient::Print() {
97 NOTREACHED();
98 }
99
100 void PreviewModeClient::SubmitForm(const std::string& url,
101 const void* data,
102 int length) {
103 NOTREACHED();
104 }
105
106 std::string PreviewModeClient::ShowFileSelectionDialog() {
107 NOTREACHED();
108 return std::string();
109 }
110
111 pp::URLLoader PreviewModeClient::CreateURLLoader() {
112 NOTREACHED();
113 return pp::URLLoader();
114 }
115
116 void PreviewModeClient::ScheduleCallback(int id, int delay_in_ms) {
117 NOTREACHED();
118 }
119
120 void PreviewModeClient::SearchString(const base::char16* string,
121 const base::char16* term,
122 bool case_sensitive,
123 std::vector<SearchStringResult>* results) {
124 NOTREACHED();
125 }
126
127 void PreviewModeClient::DocumentPaintOccurred() {
128 NOTREACHED();
129 }
130
131 void PreviewModeClient::DocumentLoadComplete(int page_count) {
132 client_->PreviewDocumentLoadComplete();
133 }
134
135 void PreviewModeClient::DocumentLoadFailed() {
136 client_->PreviewDocumentLoadFailed();
137 }
138
139 pp::Instance* PreviewModeClient::GetPluginInstance() {
140 NOTREACHED();
141 return NULL;
142 }
143
144 void PreviewModeClient::DocumentHasUnsupportedFeature(
145 const std::string& feature) {
146 NOTREACHED();
147 }
148
149 void PreviewModeClient::DocumentLoadProgress(uint32 available,
150 uint32 doc_size) {
151 }
152
153 void PreviewModeClient::FormTextFieldFocusChange(bool in_focus) {
154 NOTREACHED();
155 }
156
157 bool PreviewModeClient::IsPrintPreview() {
158 NOTREACHED();
159 return false;
160 }
161
162 } // namespace chrome_pdf
OLDNEW
« pdf/chunk_stream.h ('K') | « pdf/preview_mode_client.h ('k') | pdf/progress_control.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698