| 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 WEBKIT_PLUGINS_PPAPI_PPAPI_WEBPLUGIN_IMPL_H_ | 5 #ifndef WEBKIT_PLUGINS_PPAPI_PPAPI_WEBPLUGIN_IMPL_H_ |
| 6 #define WEBKIT_PLUGINS_PPAPI_PPAPI_WEBPLUGIN_IMPL_H_ | 6 #define WEBKIT_PLUGINS_PPAPI_PPAPI_WEBPLUGIN_IMPL_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
| 12 #include "base/memory/weak_ptr.h" | 12 #include "base/memory/weak_ptr.h" |
| 13 #include "base/message_loop_helpers.h" | 13 #include "base/message_loop_helpers.h" |
| 14 #include "ppapi/c/pp_var.h" | 14 #include "ppapi/c/pp_var.h" |
| 15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPlugin.h" | 15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPlugin.h" |
| 16 #include "ui/gfx/rect.h" | 16 #include "ui/gfx/rect.h" |
| 17 #include "webkit/plugins/webkit_plugins_export.h" | 17 #include "webkit/plugins/webkit_plugins_export.h" |
| 18 | 18 |
| 19 namespace WebKit { | 19 namespace WebKit { |
| 20 struct WebPluginParams; | 20 struct WebPluginParams; |
| 21 struct WebSize; |
| 21 } | 22 } |
| 22 | 23 |
| 23 namespace webkit { | 24 namespace webkit { |
| 24 namespace ppapi { | 25 namespace ppapi { |
| 25 | 26 |
| 26 class PluginDelegate; | 27 class PluginDelegate; |
| 27 class PluginInstance; | 28 class PluginInstance; |
| 28 class PluginModule; | 29 class PluginModule; |
| 29 class PPB_URLLoader_Impl; | 30 class PPB_URLLoader_Impl; |
| 30 | 31 |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 virtual WebKit::WebString selectionAsMarkup() const; | 71 virtual WebKit::WebString selectionAsMarkup() const; |
| 71 virtual WebKit::WebURL linkAtPosition(const WebKit::WebPoint& position) const; | 72 virtual WebKit::WebURL linkAtPosition(const WebKit::WebPoint& position) const; |
| 72 virtual void setZoomLevel(double level, bool text_only); | 73 virtual void setZoomLevel(double level, bool text_only); |
| 73 virtual bool startFind(const WebKit::WebString& search_text, | 74 virtual bool startFind(const WebKit::WebString& search_text, |
| 74 bool case_sensitive, | 75 bool case_sensitive, |
| 75 int identifier); | 76 int identifier); |
| 76 virtual void selectFindResult(bool forward); | 77 virtual void selectFindResult(bool forward); |
| 77 virtual void stopFind(); | 78 virtual void stopFind(); |
| 78 virtual bool supportsPaginatedPrint() OVERRIDE; | 79 virtual bool supportsPaginatedPrint() OVERRIDE; |
| 79 virtual bool isPrintScalingDisabled() OVERRIDE; | 80 virtual bool isPrintScalingDisabled() OVERRIDE; |
| 80 virtual int printBegin(const WebKit::WebRect& printable_area, | 81 |
| 81 int printer_dpi) OVERRIDE; | 82 // TODO(kmadhusu): Remove this function after fixing crbug.com/85132 and add |
| 83 // OVERRIDE keyword to the overloaded function. |
| 84 virtual int printBegin(const WebKit::WebRect& content_area, |
| 85 int printer_dpi); |
| 86 virtual int printBegin(const WebKit::WebRect& content_area, |
| 87 const WebKit::WebRect& printable_area, |
| 88 const WebKit::WebSize& paper_size, |
| 89 int print_scaling_option, |
| 90 int printer_dpi); |
| 82 virtual bool printPage(int page_number, WebKit::WebCanvas* canvas) OVERRIDE; | 91 virtual bool printPage(int page_number, WebKit::WebCanvas* canvas) OVERRIDE; |
| 83 virtual void printEnd() OVERRIDE; | 92 virtual void printEnd() OVERRIDE; |
| 84 | 93 |
| 85 virtual bool canRotateView() OVERRIDE; | 94 virtual bool canRotateView() OVERRIDE; |
| 86 virtual void rotateView(RotationType type) OVERRIDE; | 95 virtual void rotateView(RotationType type) OVERRIDE; |
| 87 | 96 |
| 88 struct InitData; | 97 struct InitData; |
| 89 | 98 |
| 90 scoped_ptr<InitData> init_data_; // Cleared upon successful initialization. | 99 scoped_ptr<InitData> init_data_; // Cleared upon successful initialization. |
| 91 // 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 |
| 92 // being an embedded resource. | 101 // being an embedded resource. |
| 93 bool full_frame_; | 102 bool full_frame_; |
| 94 scoped_refptr<PluginInstance> instance_; | 103 scoped_refptr<PluginInstance> instance_; |
| 95 scoped_refptr<PPB_URLLoader_Impl> document_loader_; | 104 scoped_refptr<PPB_URLLoader_Impl> document_loader_; |
| 96 gfx::Rect plugin_rect_; | 105 gfx::Rect plugin_rect_; |
| 97 PP_Var instance_object_; | 106 PP_Var instance_object_; |
| 98 | 107 |
| 99 DISALLOW_COPY_AND_ASSIGN(WebPluginImpl); | 108 DISALLOW_COPY_AND_ASSIGN(WebPluginImpl); |
| 100 }; | 109 }; |
| 101 | 110 |
| 102 } // namespace ppapi | 111 } // namespace ppapi |
| 103 } // namespace webkit | 112 } // namespace webkit |
| 104 | 113 |
| 105 #endif // WEBKIT_PLUGINS_PPAPI_PPAPI_WEBPLUGIN_IMPL_H_ | 114 #endif // WEBKIT_PLUGINS_PPAPI_PPAPI_WEBPLUGIN_IMPL_H_ |
| OLD | NEW |