OLD | NEW |
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 CONTENT_RENDERER_PEPPER_PEPPER_WEBPLUGIN_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_PEPPER_PEPPER_WEBPLUGIN_IMPL_H_ |
6 #define CONTENT_RENDERER_PEPPER_PEPPER_WEBPLUGIN_IMPL_H_ | 6 #define CONTENT_RENDERER_PEPPER_PEPPER_WEBPLUGIN_IMPL_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 blink::WebPrintPresetOptions* preset_options); | 76 blink::WebPrintPresetOptions* preset_options); |
77 virtual bool startFind(const blink::WebString& search_text, | 77 virtual bool startFind(const blink::WebString& search_text, |
78 bool case_sensitive, | 78 bool case_sensitive, |
79 int identifier); | 79 int identifier); |
80 virtual void selectFindResult(bool forward); | 80 virtual void selectFindResult(bool forward); |
81 virtual void stopFind(); | 81 virtual void stopFind(); |
82 virtual bool supportsPaginatedPrint() override; | 82 virtual bool supportsPaginatedPrint() override; |
83 virtual bool isPrintScalingDisabled() override; | 83 virtual bool isPrintScalingDisabled() override; |
84 | 84 |
85 virtual int printBegin(const blink::WebPrintParams& print_params) override; | 85 virtual int printBegin(const blink::WebPrintParams& print_params) override; |
86 virtual bool printPage(int page_number, blink::WebCanvas* canvas) override; | |
87 virtual void printPage(int page_number, blink::WebCanvas* canvas, | 86 virtual void printPage(int page_number, blink::WebCanvas* canvas, |
88 bool unused); | 87 bool unused); |
| 88 virtual void printPage(int page_number, blink::WebCanvas* canvas); |
| 89 |
89 virtual void printEnd() override; | 90 virtual void printEnd() override; |
90 | 91 |
91 virtual bool canRotateView() override; | 92 virtual bool canRotateView() override; |
92 virtual void rotateView(RotationType type) override; | 93 virtual void rotateView(RotationType type) override; |
93 virtual bool isPlaceholder() override; | 94 virtual bool isPlaceholder() override; |
94 | 95 |
95 private: | 96 private: |
96 friend class base::DeleteHelper<PepperWebPluginImpl>; | 97 friend class base::DeleteHelper<PepperWebPluginImpl>; |
97 | 98 |
98 virtual ~PepperWebPluginImpl(); | 99 virtual ~PepperWebPluginImpl(); |
99 struct InitData; | 100 struct InitData; |
100 | 101 |
101 scoped_ptr<InitData> init_data_; // Cleared upon successful initialization. | 102 scoped_ptr<InitData> init_data_; // Cleared upon successful initialization. |
102 // True if the instance represents the entire document in a frame instead of | 103 // True if the instance represents the entire document in a frame instead of |
103 // being an embedded resource. | 104 // being an embedded resource. |
104 bool full_frame_; | 105 bool full_frame_; |
105 scoped_ptr<PluginInstanceThrottlerImpl> throttler_; | 106 scoped_ptr<PluginInstanceThrottlerImpl> throttler_; |
106 scoped_refptr<PepperPluginInstanceImpl> instance_; | 107 scoped_refptr<PepperPluginInstanceImpl> instance_; |
107 gfx::Rect plugin_rect_; | 108 gfx::Rect plugin_rect_; |
108 PP_Var instance_object_; | 109 PP_Var instance_object_; |
109 blink::WebPluginContainer* container_; | 110 blink::WebPluginContainer* container_; |
110 | 111 |
111 DISALLOW_COPY_AND_ASSIGN(PepperWebPluginImpl); | 112 DISALLOW_COPY_AND_ASSIGN(PepperWebPluginImpl); |
112 }; | 113 }; |
113 | 114 |
114 } // namespace content | 115 } // namespace content |
115 | 116 |
116 #endif // CONTENT_RENDERER_PEPPER_PEPPER_WEBPLUGIN_IMPL_H_ | 117 #endif // CONTENT_RENDERER_PEPPER_PEPPER_WEBPLUGIN_IMPL_H_ |
OLD | NEW |