| 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 #include "content/renderer/pepper/pepper_webplugin_impl.h" | 5 #include "content/renderer/pepper/pepper_webplugin_impl.h" | 
| 6 | 6 | 
| 7 #include <cmath> | 7 #include <cmath> | 
| 8 | 8 | 
| 9 #include "base/debug/crash_logging.h" | 9 #include "base/debug/crash_logging.h" | 
| 10 #include "base/message_loop/message_loop.h" | 10 #include "base/message_loop/message_loop.h" | 
| (...skipping 30 matching lines...) Expand all  Loading... | 
| 41 using WebKit::WebRect; | 41 using WebKit::WebRect; | 
| 42 using WebKit::WebSize; | 42 using WebKit::WebSize; | 
| 43 using WebKit::WebString; | 43 using WebKit::WebString; | 
| 44 using WebKit::WebURL; | 44 using WebKit::WebURL; | 
| 45 using WebKit::WebVector; | 45 using WebKit::WebVector; | 
| 46 | 46 | 
| 47 namespace content { | 47 namespace content { | 
| 48 | 48 | 
| 49 struct PepperWebPluginImpl::InitData { | 49 struct PepperWebPluginImpl::InitData { | 
| 50   scoped_refptr<PluginModule> module; | 50   scoped_refptr<PluginModule> module; | 
| 51   base::WeakPtr<PepperPluginDelegateImpl> delegate; | 51   base::WeakPtr<PepperHelperImpl> delegate; | 
| 52   base::WeakPtr<RenderViewImpl> render_view; | 52   base::WeakPtr<RenderViewImpl> render_view; | 
| 53   std::vector<std::string> arg_names; | 53   std::vector<std::string> arg_names; | 
| 54   std::vector<std::string> arg_values; | 54   std::vector<std::string> arg_values; | 
| 55   GURL url; | 55   GURL url; | 
| 56 }; | 56 }; | 
| 57 | 57 | 
| 58 PepperWebPluginImpl::PepperWebPluginImpl( | 58 PepperWebPluginImpl::PepperWebPluginImpl( | 
| 59     PluginModule* plugin_module, | 59     PluginModule* plugin_module, | 
| 60     const WebPluginParams& params, | 60     const WebPluginParams& params, | 
| 61     const base::WeakPtr<PepperPluginDelegateImpl>& plugin_delegate, | 61     const base::WeakPtr<PepperHelperImpl>& plugin_delegate, | 
| 62     const base::WeakPtr<RenderViewImpl>& render_view) | 62     const base::WeakPtr<RenderViewImpl>& render_view) | 
| 63     : init_data_(new InitData()), | 63     : init_data_(new InitData()), | 
| 64       full_frame_(params.loadManually), | 64       full_frame_(params.loadManually), | 
| 65       instance_object_(PP_MakeUndefined()), | 65       instance_object_(PP_MakeUndefined()), | 
| 66       container_(NULL) { | 66       container_(NULL) { | 
| 67   DCHECK(plugin_module); | 67   DCHECK(plugin_module); | 
| 68   init_data_->module = plugin_module; | 68   init_data_->module = plugin_module; | 
| 69   init_data_->delegate = plugin_delegate; | 69   init_data_->delegate = plugin_delegate; | 
| 70   init_data_->render_view = render_view; | 70   init_data_->render_view = render_view; | 
| 71   for (size_t i = 0; i < params.attributeNames.size(); ++i) { | 71   for (size_t i = 0; i < params.attributeNames.size(); ++i) { | 
| (...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 299 | 299 | 
| 300 void PepperWebPluginImpl::rotateView(RotationType type) { | 300 void PepperWebPluginImpl::rotateView(RotationType type) { | 
| 301   instance_->RotateView(type); | 301   instance_->RotateView(type); | 
| 302 } | 302 } | 
| 303 | 303 | 
| 304 bool PepperWebPluginImpl::isPlaceholder() { | 304 bool PepperWebPluginImpl::isPlaceholder() { | 
| 305   return false; | 305   return false; | 
| 306 } | 306 } | 
| 307 | 307 | 
| 308 }  // namespace content | 308 }  // namespace content | 
| OLD | NEW | 
|---|