| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_GLUE_PLUGINS_PEPPER_WEBPLUGIN_IMPL_H_ | 5 #ifndef WEBKIT_GLUE_PLUGINS_PEPPER_WEBPLUGIN_IMPL_H_ |
| 6 #define WEBKIT_GLUE_PLUGINS_PEPPER_WEBPLUGIN_IMPL_H_ | 6 #define WEBKIT_GLUE_PLUGINS_PEPPER_WEBPLUGIN_IMPL_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 bool case_sensitive, | 69 bool case_sensitive, |
| 70 int identifier); | 70 int identifier); |
| 71 virtual void selectFindResult(bool forward); | 71 virtual void selectFindResult(bool forward); |
| 72 virtual void stopFind(); | 72 virtual void stopFind(); |
| 73 virtual bool supportsPaginatedPrint(); | 73 virtual bool supportsPaginatedPrint(); |
| 74 virtual int printBegin(const WebKit::WebRect& printable_area, | 74 virtual int printBegin(const WebKit::WebRect& printable_area, |
| 75 int printer_dpi); | 75 int printer_dpi); |
| 76 virtual bool printPage(int page_number, WebKit::WebCanvas* canvas); | 76 virtual bool printPage(int page_number, WebKit::WebCanvas* canvas); |
| 77 virtual void printEnd(); | 77 virtual void printEnd(); |
| 78 | 78 |
| 79 struct InitData { | 79 struct InitData; |
| 80 scoped_refptr<PluginModule> module; | |
| 81 base::WeakPtr<PluginDelegate> delegate; | |
| 82 std::vector<std::string> arg_names; | |
| 83 std::vector<std::string> arg_values; | |
| 84 }; | |
| 85 | 80 |
| 86 scoped_ptr<InitData> init_data_; // Cleared upon successful initialization. | 81 scoped_ptr<InitData> init_data_; // Cleared upon successful initialization. |
| 87 // True if the instance represents the entire document in a frame instead of | 82 // True if the instance represents the entire document in a frame instead of |
| 88 // being an embedded resource. | 83 // being an embedded resource. |
| 89 bool full_frame_; | 84 bool full_frame_; |
| 90 scoped_refptr<PluginInstance> instance_; | 85 scoped_refptr<PluginInstance> instance_; |
| 91 scoped_refptr<URLLoader> document_loader_; | 86 scoped_refptr<URLLoader> document_loader_; |
| 92 gfx::Rect plugin_rect_; | 87 gfx::Rect plugin_rect_; |
| 93 | 88 |
| 94 DISALLOW_COPY_AND_ASSIGN(WebPluginImpl); | 89 DISALLOW_COPY_AND_ASSIGN(WebPluginImpl); |
| 95 }; | 90 }; |
| 96 | 91 |
| 97 } // namespace pepper | 92 } // namespace pepper |
| 98 | 93 |
| 99 #endif // WEBKIT_GLUE_PLUGINS_PEPPER_WEBPLUGIN_IMPL_H_ | 94 #endif // WEBKIT_GLUE_PLUGINS_PEPPER_WEBPLUGIN_IMPL_H_ |
| OLD | NEW |