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

Side by Side Diff: pdf/pdf_engine.h

Issue 814573004: Fix for Multipage selection by dragging mouse in OOP case in PDF. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressing nit. Created 5 years, 11 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef PDF_PDF_ENGINE_H_ 5 #ifndef PDF_PDF_ENGINE_H_
6 #define PDF_PDF_ENGINE_H_ 6 #define PDF_PDF_ENGINE_H_
7 7
8 #include "build/build_config.h" 8 #include "build/build_config.h"
9 9
10 #if defined(OS_WIN) 10 #if defined(OS_WIN)
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 virtual void DocumentHasUnsupportedFeature(const std::string& feature) = 0; 168 virtual void DocumentHasUnsupportedFeature(const std::string& feature) = 0;
169 169
170 // Notifies the client about document load progress. 170 // Notifies the client about document load progress.
171 virtual void DocumentLoadProgress(uint32 available, uint32 doc_size) = 0; 171 virtual void DocumentLoadProgress(uint32 available, uint32 doc_size) = 0;
172 172
173 // Notifies the client about focus changes for form text fields. 173 // Notifies the client about focus changes for form text fields.
174 virtual void FormTextFieldFocusChange(bool in_focus) = 0; 174 virtual void FormTextFieldFocusChange(bool in_focus) = 0;
175 175
176 // Returns true if the plugin has been opened within print preview. 176 // Returns true if the plugin has been opened within print preview.
177 virtual bool IsPrintPreview() = 0; 177 virtual bool IsPrintPreview() = 0;
178
179 // Sets selection status.
180 virtual void IsSelectingChanged(bool is_selecting){};
178 }; 181 };
179 182
180 // Factory method to create an instance of the PDF Engine. 183 // Factory method to create an instance of the PDF Engine.
181 static PDFEngine* Create(Client* client); 184 static PDFEngine* Create(Client* client);
182 185
183 virtual ~PDFEngine() {} 186 virtual ~PDFEngine() {}
184 // Most of these functions are similar to the Pepper functions of the same 187 // Most of these functions are similar to the Pepper functions of the same
185 // name, so not repeating the description here unless it's different. 188 // name, so not repeating the description here unless it's different.
186 virtual bool New(const char* url) = 0; 189 virtual bool New(const char* url) = 0;
187 virtual bool New(const char* url, 190 virtual bool New(const char* url,
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
325 328
326 // See the definition of GetPDFPageSizeByIndex in pdf.cc for details. 329 // See the definition of GetPDFPageSizeByIndex in pdf.cc for details.
327 virtual bool GetPDFPageSizeByIndex(const void* pdf_buffer, 330 virtual bool GetPDFPageSizeByIndex(const void* pdf_buffer,
328 int pdf_buffer_size, int page_number, 331 int pdf_buffer_size, int page_number,
329 double* width, double* height) = 0; 332 double* width, double* height) = 0;
330 }; 333 };
331 334
332 } // namespace chrome_pdf 335 } // namespace chrome_pdf
333 336
334 #endif // PDF_PDF_ENGINE_H_ 337 #endif // PDF_PDF_ENGINE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698