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

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, 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/out_of_process_instance.cc ('k') | pdf/pdfium/pdfium_engine.h » ('j') | 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) 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 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 virtual void DocumentLoadProgress(uint32 available, uint32 doc_size) = 0; 169 virtual void DocumentLoadProgress(uint32 available, uint32 doc_size) = 0;
170 170
171 // Notifies the client about focus changes for form text fields. 171 // Notifies the client about focus changes for form text fields.
172 virtual void FormTextFieldFocusChange(bool in_focus) = 0; 172 virtual void FormTextFieldFocusChange(bool in_focus) = 0;
173 173
174 // Returns true if the plugin has been opened within print preview. 174 // Returns true if the plugin has been opened within print preview.
175 virtual bool IsPrintPreview() = 0; 175 virtual bool IsPrintPreview() = 0;
176 176
177 // Get the background color of the PDF. 177 // Get the background color of the PDF.
178 virtual uint32 GetBackgroundColor() = 0; 178 virtual uint32 GetBackgroundColor() = 0;
179
180 // Sets selection status.
181 virtual void IsSelectingChanged(bool is_selecting){};
179 }; 182 };
180 183
181 // Factory method to create an instance of the PDF Engine. 184 // Factory method to create an instance of the PDF Engine.
182 static PDFEngine* Create(Client* client); 185 static PDFEngine* Create(Client* client);
183 186
184 virtual ~PDFEngine() {} 187 virtual ~PDFEngine() {}
185 // Most of these functions are similar to the Pepper functions of the same 188 // Most of these functions are similar to the Pepper functions of the same
186 // name, so not repeating the description here unless it's different. 189 // name, so not repeating the description here unless it's different.
187 virtual bool New(const char* url) = 0; 190 virtual bool New(const char* url) = 0;
188 virtual bool New(const char* url, 191 virtual bool New(const char* url,
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
326 329
327 // See the definition of GetPDFPageSizeByIndex in pdf.cc for details. 330 // See the definition of GetPDFPageSizeByIndex in pdf.cc for details.
328 virtual bool GetPDFPageSizeByIndex(const void* pdf_buffer, 331 virtual bool GetPDFPageSizeByIndex(const void* pdf_buffer,
329 int pdf_buffer_size, int page_number, 332 int pdf_buffer_size, int page_number,
330 double* width, double* height) = 0; 333 double* width, double* height) = 0;
331 }; 334 };
332 335
333 } // namespace chrome_pdf 336 } // namespace chrome_pdf
334 337
335 #endif // PDF_PDF_ENGINE_H_ 338 #endif // PDF_PDF_ENGINE_H_
OLDNEW
« no previous file with comments | « pdf/out_of_process_instance.cc ('k') | pdf/pdfium/pdfium_engine.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698