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

Side by Side Diff: pdf/preview_mode_client.cc

Issue 1645073004: PDF: Fix a crash from r372196 with the print preview PDFEngine client. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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
« no previous file with comments | « pdf/pdfium/pdfium_engine.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "pdf/preview_mode_client.h" 5 #include "pdf/preview_mode_client.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 10
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 131
132 void PreviewModeClient::DocumentLoadComplete(int page_count) { 132 void PreviewModeClient::DocumentLoadComplete(int page_count) {
133 client_->PreviewDocumentLoadComplete(); 133 client_->PreviewDocumentLoadComplete();
134 } 134 }
135 135
136 void PreviewModeClient::DocumentLoadFailed() { 136 void PreviewModeClient::DocumentLoadFailed() {
137 client_->PreviewDocumentLoadFailed(); 137 client_->PreviewDocumentLoadFailed();
138 } 138 }
139 139
140 pp::Instance* PreviewModeClient::GetPluginInstance() { 140 pp::Instance* PreviewModeClient::GetPluginInstance() {
141 NOTREACHED(); 141 return nullptr;
142 return NULL;
143 } 142 }
144 143
145 void PreviewModeClient::DocumentHasUnsupportedFeature( 144 void PreviewModeClient::DocumentHasUnsupportedFeature(
146 const std::string& feature) { 145 const std::string& feature) {
147 NOTREACHED(); 146 NOTREACHED();
148 } 147 }
149 148
150 void PreviewModeClient::DocumentLoadProgress(uint32_t available, 149 void PreviewModeClient::DocumentLoadProgress(uint32_t available,
151 uint32_t doc_size) {} 150 uint32_t doc_size) {}
152 151
153 void PreviewModeClient::FormTextFieldFocusChange(bool in_focus) { 152 void PreviewModeClient::FormTextFieldFocusChange(bool in_focus) {
154 NOTREACHED(); 153 NOTREACHED();
155 } 154 }
156 155
157 bool PreviewModeClient::IsPrintPreview() { 156 bool PreviewModeClient::IsPrintPreview() {
158 NOTREACHED(); 157 NOTREACHED();
159 return false; 158 return false;
160 } 159 }
161 160
162 uint32_t PreviewModeClient::GetBackgroundColor() { 161 uint32_t PreviewModeClient::GetBackgroundColor() {
163 NOTREACHED(); 162 NOTREACHED();
164 return 0; 163 return 0;
165 } 164 }
166 165
167 } // namespace chrome_pdf 166 } // namespace chrome_pdf
OLDNEW
« no previous file with comments | « pdf/pdfium/pdfium_engine.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698