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

Side by Side Diff: pdf/out_of_process_instance.h

Issue 286933011: Remove most references to VarPrivate/InstancePrivate from OOP PDF (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
« no previous file with comments | « no previous file | pdf/out_of_process_instance.cc » ('j') | pdf/out_of_process_instance.cc » ('J')
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/cpp/dev/printing_dev.h" 20 #include "ppapi/cpp/dev/printing_dev.h"
21 #include "ppapi/cpp/dev/scriptable_object_deprecated.h" 21 #include "ppapi/cpp/dev/scriptable_object_deprecated.h"
22 #include "ppapi/cpp/dev/selection_dev.h" 22 #include "ppapi/cpp/dev/selection_dev.h"
23 #include "ppapi/cpp/graphics_2d.h" 23 #include "ppapi/cpp/graphics_2d.h"
24 #include "ppapi/cpp/image_data.h" 24 #include "ppapi/cpp/image_data.h"
25 #include "ppapi/cpp/input_event.h" 25 #include "ppapi/cpp/input_event.h"
26 #include "ppapi/cpp/instance.h"
26 #include "ppapi/cpp/private/find_private.h" 27 #include "ppapi/cpp/private/find_private.h"
27 #include "ppapi/cpp/private/instance_private.h"
28 #include "ppapi/cpp/private/uma_private.h" 28 #include "ppapi/cpp/private/uma_private.h"
29 #include "ppapi/cpp/private/var_private.h" 29 #include "ppapi/cpp/private/var_private.h"
30 #include "ppapi/cpp/url_loader.h" 30 #include "ppapi/cpp/url_loader.h"
31 #include "ppapi/utility/completion_callback_factory.h" 31 #include "ppapi/utility/completion_callback_factory.h"
32 32
33 namespace pp { 33 namespace pp {
34 class TextInput_Dev; 34 class TextInput_Dev;
35 } 35 }
36 36
37 namespace chrome_pdf { 37 namespace chrome_pdf {
38 38
39 class OutOfProcessInstance : public pp::InstancePrivate, 39 class OutOfProcessInstance : public pp::Instance,
40 public pp::Find_Private, 40 public pp::Find_Private,
41 public pp::Printing_Dev, 41 public pp::Printing_Dev,
42 public pp::Selection_Dev, 42 public pp::Selection_Dev,
43 public PaintManager::Client, 43 public PaintManager::Client,
44 public PDFEngine::Client, 44 public PDFEngine::Client,
45 public PreviewModeClient::Client { 45 public PreviewModeClient::Client {
46 public: 46 public:
47 explicit OutOfProcessInstance(PP_Instance instance); 47 explicit OutOfProcessInstance(PP_Instance instance);
48 virtual ~OutOfProcessInstance(); 48 virtual ~OutOfProcessInstance();
49 49
50 // pp::Instance implementation. 50 // pp::Instance implementation.
51 virtual bool Init(uint32_t argc, 51 virtual bool Init(uint32_t argc,
52 const char* argn[], 52 const char* argn[],
53 const char* argv[]) OVERRIDE; 53 const char* argv[]) OVERRIDE;
54 virtual void HandleMessage(const pp::Var& message) OVERRIDE; 54 virtual void HandleMessage(const pp::Var& message) OVERRIDE;
55 virtual bool HandleInputEvent(const pp::InputEvent& event) OVERRIDE; 55 virtual bool HandleInputEvent(const pp::InputEvent& event) OVERRIDE;
56 virtual void DidChangeView(const pp::View& view) OVERRIDE; 56 virtual void DidChangeView(const pp::View& view) OVERRIDE;
57 virtual pp::Var GetInstanceObject() OVERRIDE;
58 57
59 // pp::Find_Private implementation. 58 // pp::Find_Private implementation.
60 virtual bool StartFind(const std::string& text, bool case_sensitive) OVERRIDE; 59 virtual bool StartFind(const std::string& text, bool case_sensitive) OVERRIDE;
61 virtual void SelectFindResult(bool forward) OVERRIDE; 60 virtual void SelectFindResult(bool forward) OVERRIDE;
62 virtual void StopFind() OVERRIDE; 61 virtual void StopFind() OVERRIDE;
63 62
64 // pp::PaintManager::Client implementation. 63 // pp::PaintManager::Client implementation.
65 virtual void OnPaint(const std::vector<pp::Rect>& paint_rects, 64 virtual void OnPaint(const std::vector<pp::Rect>& paint_rects,
66 std::vector<PaintManager::ReadyRect>* ready, 65 std::vector<PaintManager::ReadyRect>* ready,
67 std::vector<pp::Rect>* pending) OVERRIDE; 66 std::vector<pp::Rect>* pending) OVERRIDE;
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
329 // be painted until this is received. 328 // be painted until this is received.
330 bool received_viewport_message_; 329 bool received_viewport_message_;
331 330
332 // The callback for receiving the password from the page. 331 // The callback for receiving the password from the page.
333 scoped_ptr<pp::CompletionCallbackWithOutput<pp::Var> > password_callback_; 332 scoped_ptr<pp::CompletionCallbackWithOutput<pp::Var> > password_callback_;
334 }; 333 };
335 334
336 } // namespace chrome_pdf 335 } // namespace chrome_pdf
337 336
338 #endif // PDF_OUT_OF_PROCESS_INSTANCE_H_ 337 #endif // PDF_OUT_OF_PROCESS_INSTANCE_H_
OLDNEW
« no previous file with comments | « no previous file | pdf/out_of_process_instance.cc » ('j') | pdf/out_of_process_instance.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698