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