| 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 void printPage(int page_number, blink::WebCanvas* canvas, | 86 void printPage(int page_number, blink::WebCanvas* canvas) override; |
| 87 bool unused) override; | |
| 88 virtual void printEnd() override; | 87 virtual void printEnd() override; |
| 89 | 88 |
| 90 virtual bool canRotateView() override; | 89 virtual bool canRotateView() override; |
| 91 virtual void rotateView(RotationType type) override; | 90 virtual void rotateView(RotationType type) override; |
| 92 virtual bool isPlaceholder() override; | 91 virtual bool isPlaceholder() override; |
| 93 | 92 |
| 94 private: | 93 private: |
| 95 friend class base::DeleteHelper<PepperWebPluginImpl>; | 94 friend class base::DeleteHelper<PepperWebPluginImpl>; |
| 96 | 95 |
| 97 virtual ~PepperWebPluginImpl(); | 96 virtual ~PepperWebPluginImpl(); |
| 98 struct InitData; | 97 struct InitData; |
| 99 | 98 |
| 100 scoped_ptr<InitData> init_data_; // Cleared upon successful initialization. | 99 scoped_ptr<InitData> init_data_; // Cleared upon successful initialization. |
| 101 // True if the instance represents the entire document in a frame instead of | 100 // True if the instance represents the entire document in a frame instead of |
| 102 // being an embedded resource. | 101 // being an embedded resource. |
| 103 bool full_frame_; | 102 bool full_frame_; |
| 104 scoped_ptr<PluginInstanceThrottlerImpl> throttler_; | 103 scoped_ptr<PluginInstanceThrottlerImpl> throttler_; |
| 105 scoped_refptr<PepperPluginInstanceImpl> instance_; | 104 scoped_refptr<PepperPluginInstanceImpl> instance_; |
| 106 gfx::Rect plugin_rect_; | 105 gfx::Rect plugin_rect_; |
| 107 PP_Var instance_object_; | 106 PP_Var instance_object_; |
| 108 blink::WebPluginContainer* container_; | 107 blink::WebPluginContainer* container_; |
| 109 | 108 |
| 110 DISALLOW_COPY_AND_ASSIGN(PepperWebPluginImpl); | 109 DISALLOW_COPY_AND_ASSIGN(PepperWebPluginImpl); |
| 111 }; | 110 }; |
| 112 | 111 |
| 113 } // namespace content | 112 } // namespace content |
| 114 | 113 |
| 115 #endif // CONTENT_RENDERER_PEPPER_PEPPER_WEBPLUGIN_IMPL_H_ | 114 #endif // CONTENT_RENDERER_PEPPER_PEPPER_WEBPLUGIN_IMPL_H_ |
| OLD | NEW |