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

Side by Side Diff: pdf/out_of_process_instance.h

Issue 1161563002: Remove unused in-process pepper APIs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
« no previous file with comments | « native_client_sdk/src/libraries/ppapi_cpp/library.dsc ('k') | pdf/out_of_process_instance.cc » ('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_OUT_OF_PROCESS_INSTANCE_H_ 5 #ifndef PDF_OUT_OF_PROCESS_INSTANCE_H_
6 #define PDF_OUT_OF_PROCESS_INSTANCE_H_ 6 #define PDF_OUT_OF_PROCESS_INSTANCE_H_
7 7
8 #include <queue> 8 #include <queue>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
11 #include <utility> 11 #include <utility>
12 #include <vector> 12 #include <vector>
13 13
14 #include "base/memory/scoped_ptr.h" 14 #include "base/memory/scoped_ptr.h"
15 #include "pdf/paint_manager.h" 15 #include "pdf/paint_manager.h"
16 #include "pdf/pdf_engine.h" 16 #include "pdf/pdf_engine.h"
17 #include "pdf/preview_mode_client.h" 17 #include "pdf/preview_mode_client.h"
18 18
19 #include "ppapi/c/private/ppb_pdf.h" 19 #include "ppapi/c/private/ppb_pdf.h"
20 #include "ppapi/c/private/ppp_pdf.h" 20 #include "ppapi/c/private/ppp_pdf.h"
21 #include "ppapi/cpp/dev/printing_dev.h" 21 #include "ppapi/cpp/dev/printing_dev.h"
22 #include "ppapi/cpp/dev/scriptable_object_deprecated.h" 22 #include "ppapi/cpp/dev/scriptable_object_deprecated.h"
23 #include "ppapi/cpp/dev/selection_dev.h"
24 #include "ppapi/cpp/graphics_2d.h" 23 #include "ppapi/cpp/graphics_2d.h"
25 #include "ppapi/cpp/image_data.h" 24 #include "ppapi/cpp/image_data.h"
26 #include "ppapi/cpp/input_event.h" 25 #include "ppapi/cpp/input_event.h"
27 #include "ppapi/cpp/instance.h" 26 #include "ppapi/cpp/instance.h"
28 #include "ppapi/cpp/private/find_private.h" 27 #include "ppapi/cpp/private/find_private.h"
29 #include "ppapi/cpp/private/uma_private.h" 28 #include "ppapi/cpp/private/uma_private.h"
30 #include "ppapi/cpp/url_loader.h" 29 #include "ppapi/cpp/url_loader.h"
31 #include "ppapi/utility/completion_callback_factory.h" 30 #include "ppapi/utility/completion_callback_factory.h"
32 31
33 namespace pp { 32 namespace pp {
34 class TextInput_Dev; 33 class TextInput_Dev;
35 } 34 }
36 35
37 namespace chrome_pdf { 36 namespace chrome_pdf {
38 37
39 class OutOfProcessInstance : public pp::Instance, 38 class OutOfProcessInstance : public pp::Instance,
40 public pp::Find_Private, 39 public pp::Find_Private,
41 public pp::Printing_Dev, 40 public pp::Printing_Dev,
42 public pp::Selection_Dev,
43 public PaintManager::Client, 41 public PaintManager::Client,
44 public PDFEngine::Client, 42 public PDFEngine::Client,
45 public PreviewModeClient::Client { 43 public PreviewModeClient::Client {
46 public: 44 public:
47 explicit OutOfProcessInstance(PP_Instance instance); 45 explicit OutOfProcessInstance(PP_Instance instance);
48 ~OutOfProcessInstance() override; 46 ~OutOfProcessInstance() override;
49 47
50 // pp::Instance implementation. 48 // pp::Instance implementation.
51 bool Init(uint32_t argc, const char* argn[], const char* argv[]) override; 49 bool Init(uint32_t argc, const char* argn[], const char* argv[]) override;
52 void HandleMessage(const pp::Var& message) override; 50 void HandleMessage(const pp::Var& message) override;
(...skipping 17 matching lines...) Expand all
70 const PP_PrintPageNumberRange_Dev* page_ranges, 68 const PP_PrintPageNumberRange_Dev* page_ranges,
71 uint32_t page_range_count) override; 69 uint32_t page_range_count) override;
72 void PrintEnd() override; 70 void PrintEnd() override;
73 bool IsPrintScalingDisabled() override; 71 bool IsPrintScalingDisabled() override;
74 72
75 // pp::Private implementation. 73 // pp::Private implementation.
76 virtual pp::Var GetLinkAtPosition(const pp::Point& point); 74 virtual pp::Var GetLinkAtPosition(const pp::Point& point);
77 virtual void GetPrintPresetOptionsFromDocument( 75 virtual void GetPrintPresetOptionsFromDocument(
78 PP_PdfPrintPresetOptions_Dev* options); 76 PP_PdfPrintPresetOptions_Dev* options);
79 77
80 // PPP_Selection_Dev implementation.
81 pp::Var GetSelectedText(bool html) override;
82
83 void FlushCallback(int32_t result); 78 void FlushCallback(int32_t result);
84 void DidOpen(int32_t result); 79 void DidOpen(int32_t result);
85 void DidOpenPreview(int32_t result); 80 void DidOpenPreview(int32_t result);
86 81
87 // Called when the timer is fired. 82 // Called when the timer is fired.
88 void OnClientTimerFired(int32_t id); 83 void OnClientTimerFired(int32_t id);
89 84
90 // Called to print without re-entrancy issues. 85 // Called to print without re-entrancy issues.
91 void OnPrint(int32_t); 86 void OnPrint(int32_t);
92 87
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
341 // zooming the plugin so that flickering doesn't occur while zooming. 336 // zooming the plugin so that flickering doesn't occur while zooming.
342 bool stop_scrolling_; 337 bool stop_scrolling_;
343 338
344 // The background color of the PDF viewer. 339 // The background color of the PDF viewer.
345 uint32 background_color_; 340 uint32 background_color_;
346 }; 341 };
347 342
348 } // namespace chrome_pdf 343 } // namespace chrome_pdf
349 344
350 #endif // PDF_OUT_OF_PROCESS_INSTANCE_H_ 345 #endif // PDF_OUT_OF_PROCESS_INSTANCE_H_
OLDNEW
« no previous file with comments | « native_client_sdk/src/libraries/ppapi_cpp/library.dsc ('k') | pdf/out_of_process_instance.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698