Index: content/renderer/pepper/pepper_webplugin_impl.cc |
diff --git a/content/renderer/pepper/pepper_webplugin_impl.cc b/content/renderer/pepper/pepper_webplugin_impl.cc |
index 1cd2850b631055fb62ca1634b590e586bcacf4a3..828da7a3d87a5209ac1c1e2bceaa0cc7f19b6af1 100644 |
--- a/content/renderer/pepper/pepper_webplugin_impl.cc |
+++ b/content/renderer/pepper/pepper_webplugin_impl.cc |
@@ -54,10 +54,9 @@ struct PepperWebPluginImpl::InitData { |
GURL url; |
}; |
-PepperWebPluginImpl::PepperWebPluginImpl( |
- PluginModule* plugin_module, |
- const WebPluginParams& params, |
- RenderFrameImpl* render_frame) |
+PepperWebPluginImpl::PepperWebPluginImpl(PluginModule* plugin_module, |
+ const WebPluginParams& params, |
+ RenderFrameImpl* render_frame) |
: init_data_(new InitData()), |
full_frame_(params.loadManually), |
instance_object_(PP_MakeUndefined()), |
@@ -75,8 +74,7 @@ PepperWebPluginImpl::PepperWebPluginImpl( |
base::debug::SetCrashKeyValue("subresource_url", init_data_->url.spec()); |
} |
-PepperWebPluginImpl::~PepperWebPluginImpl() { |
-} |
+PepperWebPluginImpl::~PepperWebPluginImpl() {} |
blink::WebPluginContainer* PepperWebPluginImpl::container() const { |
return container_; |
@@ -92,9 +90,8 @@ bool PepperWebPluginImpl::initialize(WebPluginContainer* container) { |
// Enable script objects for this plugin. |
container->allowScriptObjects(); |
- bool success = instance_->Initialize(init_data_->arg_names, |
- init_data_->arg_values, |
- full_frame_); |
+ bool success = instance_->Initialize( |
+ init_data_->arg_names, init_data_->arg_values, full_frame_); |
if (!success) { |
instance_->Delete(); |
instance_ = NULL; |
@@ -151,13 +148,9 @@ NPObject* PepperWebPluginImpl::scriptableObject() { |
return message_channel_np_object; |
} |
-NPP PepperWebPluginImpl::pluginNPP() { |
- return instance_->instanceNPP(); |
-} |
+NPP PepperWebPluginImpl::pluginNPP() { return instance_->instanceNPP(); } |
-bool PepperWebPluginImpl::getFormValue(WebString& value) { |
- return false; |
-} |
+bool PepperWebPluginImpl::getFormValue(WebString& value) { return false; } |
void PepperWebPluginImpl::paint(WebCanvas* canvas, const WebRect& rect) { |
if (!instance_->FlashIsFullscreenOrPending()) |
@@ -182,12 +175,9 @@ void PepperWebPluginImpl::updateFocus(bool focused) { |
instance_->SetWebKitFocus(focused); |
} |
-void PepperWebPluginImpl::updateVisibility(bool visible) { |
-} |
+void PepperWebPluginImpl::updateVisibility(bool visible) {} |
-bool PepperWebPluginImpl::acceptsInputEvents() { |
- return true; |
-} |
+bool PepperWebPluginImpl::acceptsInputEvents() { return true; } |
bool PepperWebPluginImpl::handleInputEvent(const blink::WebInputEvent& event, |
blink::WebCursorInfo& cursor_info) { |
@@ -211,8 +201,8 @@ void PepperWebPluginImpl::didReceiveData(const char* data, int data_length) { |
void PepperWebPluginImpl::didFinishLoading() { |
blink::WebURLLoaderClient* document_loader = instance_->document_loader(); |
if (document_loader) |
- document_loader->didFinishLoading(NULL, 0.0, |
- blink::WebURLLoaderClient::kUnknownEncodedDataLength); |
+ document_loader->didFinishLoading( |
+ NULL, 0.0, blink::WebURLLoaderClient::kUnknownEncodedDataLength); |
} |
void PepperWebPluginImpl::didFailLoading(const blink::WebURLError& error) { |
@@ -221,16 +211,13 @@ void PepperWebPluginImpl::didFailLoading(const blink::WebURLError& error) { |
document_loader->didFail(NULL, error); |
} |
-void PepperWebPluginImpl::didFinishLoadingFrameRequest( |
- const blink::WebURL& url, |
- void* notify_data) { |
-} |
+void PepperWebPluginImpl::didFinishLoadingFrameRequest(const blink::WebURL& url, |
+ void* notify_data) {} |
void PepperWebPluginImpl::didFailLoadingFrameRequest( |
const blink::WebURL& url, |
void* notify_data, |
- const blink::WebURLError& error) { |
-} |
+ const blink::WebURLError& error) {} |
bool PepperWebPluginImpl::hasSelection() const { |
return !selectionAsText().isEmpty(); |
@@ -262,9 +249,7 @@ void PepperWebPluginImpl::selectFindResult(bool forward) { |
instance_->SelectFindResult(forward); |
} |
-void PepperWebPluginImpl::stopFind() { |
- instance_->StopFind(); |
-} |
+void PepperWebPluginImpl::stopFind() { instance_->StopFind(); } |
bool PepperWebPluginImpl::supportsPaginatedPrint() { |
return instance_->SupportsPrintInterface(); |
@@ -278,25 +263,18 @@ int PepperWebPluginImpl::printBegin(const WebPrintParams& print_params) { |
return instance_->PrintBegin(print_params); |
} |
-bool PepperWebPluginImpl::printPage(int page_number, |
- blink::WebCanvas* canvas) { |
+bool PepperWebPluginImpl::printPage(int page_number, blink::WebCanvas* canvas) { |
return instance_->PrintPage(page_number, canvas); |
} |
-void PepperWebPluginImpl::printEnd() { |
- return instance_->PrintEnd(); |
-} |
+void PepperWebPluginImpl::printEnd() { return instance_->PrintEnd(); } |
-bool PepperWebPluginImpl::canRotateView() { |
- return instance_->CanRotateView(); |
-} |
+bool PepperWebPluginImpl::canRotateView() { return instance_->CanRotateView(); } |
void PepperWebPluginImpl::rotateView(RotationType type) { |
instance_->RotateView(type); |
} |
-bool PepperWebPluginImpl::isPlaceholder() { |
- return false; |
-} |
+bool PepperWebPluginImpl::isPlaceholder() { return false; } |
} // namespace content |