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