OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 virtual bool hasSelection() const; | 65 virtual bool hasSelection() const; |
66 virtual WebKit::WebString selectionAsText() const; | 66 virtual WebKit::WebString selectionAsText() const; |
67 virtual WebKit::WebString selectionAsMarkup() const; | 67 virtual WebKit::WebString selectionAsMarkup() const; |
68 virtual WebKit::WebURL linkAtPosition(const WebKit::WebPoint& position) const; | 68 virtual WebKit::WebURL linkAtPosition(const WebKit::WebPoint& position) const; |
69 virtual void setZoomLevel(double level, bool text_only); | 69 virtual void setZoomLevel(double level, bool text_only); |
70 virtual bool startFind(const WebKit::WebString& search_text, | 70 virtual bool startFind(const WebKit::WebString& search_text, |
71 bool case_sensitive, | 71 bool case_sensitive, |
72 int identifier); | 72 int identifier); |
73 virtual void selectFindResult(bool forward); | 73 virtual void selectFindResult(bool forward); |
74 virtual void stopFind(); | 74 virtual void stopFind(); |
75 virtual bool supportsPaginatedPrint(); | 75 virtual bool supportsPaginatedPrint() OVERRIDE; |
| 76 virtual bool isPrintScalingDisabled() OVERRIDE; |
76 virtual int printBegin(const WebKit::WebRect& printable_area, | 77 virtual int printBegin(const WebKit::WebRect& printable_area, |
77 int printer_dpi); | 78 int printer_dpi) OVERRIDE; |
78 virtual bool printPage(int page_number, WebKit::WebCanvas* canvas); | 79 virtual bool printPage(int page_number, WebKit::WebCanvas* canvas) OVERRIDE; |
79 virtual void printEnd(); | 80 virtual void printEnd() OVERRIDE; |
80 | 81 |
81 struct InitData; | 82 struct InitData; |
82 | 83 |
83 scoped_ptr<InitData> init_data_; // Cleared upon successful initialization. | 84 scoped_ptr<InitData> init_data_; // Cleared upon successful initialization. |
84 // True if the instance represents the entire document in a frame instead of | 85 // True if the instance represents the entire document in a frame instead of |
85 // being an embedded resource. | 86 // being an embedded resource. |
86 bool full_frame_; | 87 bool full_frame_; |
87 scoped_refptr<PluginInstance> instance_; | 88 scoped_refptr<PluginInstance> instance_; |
88 scoped_refptr<PPB_URLLoader_Impl> document_loader_; | 89 scoped_refptr<PPB_URLLoader_Impl> document_loader_; |
89 gfx::Rect plugin_rect_; | 90 gfx::Rect plugin_rect_; |
90 | 91 |
91 DISALLOW_COPY_AND_ASSIGN(WebPluginImpl); | 92 DISALLOW_COPY_AND_ASSIGN(WebPluginImpl); |
92 }; | 93 }; |
93 | 94 |
94 } // namespace ppapi | 95 } // namespace ppapi |
95 } // namespace webkit | 96 } // namespace webkit |
96 | 97 |
97 #endif // WEBKIT_PLUGINS_PPAPI_PPAPI_WEBPLUGIN_IMPL_H_ | 98 #endif // WEBKIT_PLUGINS_PPAPI_PPAPI_WEBPLUGIN_IMPL_H_ |
OLD | NEW |