| 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 #include "webkit/glue/plugins/pepper_webplugin_impl.h" | 5 #include "webkit/glue/plugins/pepper_webplugin_impl.h" |
| 6 | 6 |
| 7 #include <cmath> | 7 #include <cmath> |
| 8 | 8 |
| 9 #include "base/message_loop.h" | 9 #include "base/message_loop.h" |
| 10 #include "third_party/ppapi/c/pp_var.h" | 10 #include "third_party/ppapi/c/pp_var.h" |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 using WebKit::WebPluginParams; | 22 using WebKit::WebPluginParams; |
| 23 using WebKit::WebPoint; | 23 using WebKit::WebPoint; |
| 24 using WebKit::WebRect; | 24 using WebKit::WebRect; |
| 25 using WebKit::WebString; | 25 using WebKit::WebString; |
| 26 using WebKit::WebURL; | 26 using WebKit::WebURL; |
| 27 using WebKit::WebVector; | 27 using WebKit::WebVector; |
| 28 using WebKit::WebView; | 28 using WebKit::WebView; |
| 29 | 29 |
| 30 namespace pepper { | 30 namespace pepper { |
| 31 | 31 |
| 32 struct WebPluginImpl::InitData { |
| 33 scoped_refptr<PluginModule> module; |
| 34 base::WeakPtr<PluginDelegate> delegate; |
| 35 std::vector<std::string> arg_names; |
| 36 std::vector<std::string> arg_values; |
| 37 }; |
| 38 |
| 32 WebPluginImpl::WebPluginImpl( | 39 WebPluginImpl::WebPluginImpl( |
| 33 PluginModule* plugin_module, | 40 PluginModule* plugin_module, |
| 34 const WebPluginParams& params, | 41 const WebPluginParams& params, |
| 35 const base::WeakPtr<PluginDelegate>& plugin_delegate) | 42 const base::WeakPtr<PluginDelegate>& plugin_delegate) |
| 36 : init_data_(new InitData()), | 43 : init_data_(new InitData()), |
| 37 full_frame_(params.loadManually) { | 44 full_frame_(params.loadManually) { |
| 38 DCHECK(plugin_module); | 45 DCHECK(plugin_module); |
| 39 init_data_->module = plugin_module; | 46 init_data_->module = plugin_module; |
| 40 init_data_->delegate = plugin_delegate; | 47 init_data_->delegate = plugin_delegate; |
| 41 for (size_t i = 0; i < params.attributeNames.size(); ++i) { | 48 for (size_t i = 0; i < params.attributeNames.size(); ++i) { |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 206 bool WebPluginImpl::printPage(int page_number, | 213 bool WebPluginImpl::printPage(int page_number, |
| 207 WebKit::WebCanvas* canvas) { | 214 WebKit::WebCanvas* canvas) { |
| 208 return instance_->PrintPage(page_number, canvas); | 215 return instance_->PrintPage(page_number, canvas); |
| 209 } | 216 } |
| 210 | 217 |
| 211 void WebPluginImpl::printEnd() { | 218 void WebPluginImpl::printEnd() { |
| 212 return instance_->PrintEnd(); | 219 return instance_->PrintEnd(); |
| 213 } | 220 } |
| 214 | 221 |
| 215 } // namespace pepper | 222 } // namespace pepper |
| OLD | NEW |