From b27e42f3f77b2f2852741f842af832d7b4ae3704 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Tue, 19 Dec 2017 10:42:36 +0900 Subject: [PATCH] Fix indentions --- atom/renderer/api/atom_api_web_frame.cc | 31 ++++++++++++++----------- 1 file changed, 17 insertions(+), 14 deletions(-) diff --git a/atom/renderer/api/atom_api_web_frame.cc b/atom/renderer/api/atom_api_web_frame.cc index 8eed9985b074..9cedfc81b01d 100644 --- a/atom/renderer/api/atom_api_web_frame.cc +++ b/atom/renderer/api/atom_api_web_frame.cc @@ -253,9 +253,9 @@ void WebFrame::ExecuteJavaScript(const base::string16& code, } void WebFrame::ExecuteJavaScriptInIsolatedWorld( - int world_id, - const std::vector& scripts, - mate::Arguments* args) { + int world_id, + const std::vector& scripts, + mate::Arguments* args) { std::vector sources; for (const auto& script : scripts) { @@ -279,7 +279,7 @@ void WebFrame::ExecuteJavaScriptInIsolatedWorld( args->GetNext(&has_user_gesture); blink::WebLocalFrame::ScriptExecutionType scriptExecutionType = - blink::WebLocalFrame::kSynchronous; + blink::WebLocalFrame::kSynchronous; args->GetNext(&scriptExecutionType); ScriptExecutionCallback::CompletionCallback completion_callback; @@ -292,23 +292,26 @@ void WebFrame::ExecuteJavaScriptInIsolatedWorld( scriptExecutionType, callback.release()); } -void WebFrame::SetIsolatedWorldSecurityOrigin(int world_id, - const std::string& origin_url) { - web_frame_->SetIsolatedWorldSecurityOrigin( +void WebFrame::SetIsolatedWorldSecurityOrigin( + int world_id, + const std::string& origin_url) { + web_frame_->SetIsolatedWorldSecurityOrigin( world_id, blink::WebSecurityOrigin::CreateFromString( - blink::WebString::FromUTF8(origin_url))); + blink::WebString::FromUTF8(origin_url))); } -void WebFrame::SetIsolatedWorldContentSecurityPolicy(int world_id, - const std::string& security_policy) { +void WebFrame::SetIsolatedWorldContentSecurityPolicy( + int world_id, + const std::string& security_policy) { web_frame_->SetIsolatedWorldContentSecurityPolicy( - world_id, blink::WebString::FromUTF8(security_policy)); + world_id, blink::WebString::FromUTF8(security_policy)); } -void WebFrame::SetIsolatedWorldHumanReadableName(int world_id, - const std::string& name) { - web_frame_->SetIsolatedWorldHumanReadableName( +void WebFrame::SetIsolatedWorldHumanReadableName( + int world_id, + const std::string& name) { + web_frame_->SetIsolatedWorldHumanReadableName( world_id, blink::WebString::FromUTF8(name)); }