Index: content/browser/android/content_view_core_impl.cc |
diff --git a/content/browser/android/content_view_core_impl.cc b/content/browser/android/content_view_core_impl.cc |
index 2ef62bec3df0142e13e38f818bb89893184867ed..78835ffbd6746db6ec0959ea2fa04f0522df061f 100644 |
--- a/content/browser/android/content_view_core_impl.cc |
+++ b/content/browser/android/content_view_core_impl.cc |
@@ -37,6 +37,7 @@ |
#include "content/browser/screen_orientation/screen_orientation_dispatcher_host.h" |
#include "content/browser/ssl/ssl_host_state.h" |
#include "content/browser/web_contents/web_contents_view_android.h" |
+#include "content/common/frame_messages.h" |
#include "content/common/input/web_input_event_traits.h" |
#include "content/common/input_messages.h" |
#include "content/common/view_messages.h" |
@@ -1202,6 +1203,14 @@ void ContentViewCoreImpl::ClearHistory(JNIEnv* env, jobject obj) { |
web_contents_->GetController().PruneAllButLastCommitted(); |
} |
+void ContentViewCoreImpl::AddStyleSheetByURL( |
+ JNIEnv* env, jobject obj, jstring url) { |
+ if (web_contents_) |
Sami
2014/06/03 15:07:30
Should use braces here since the body is a multi-l
|
+ web_contents_->GetMainFrame()->Send(new FrameMsg_AddStyleSheetByURL( |
+ web_contents_->GetMainFrame()->GetRoutingID(), |
bulach
2014/06/03 10:51:56
nit: indent +2 here and below since it's a continu
|
+ ConvertJavaStringToUTF8(env, url))); |
+} |
+ |
void ContentViewCoreImpl::SetAllowJavascriptInterfacesInspection( |
JNIEnv* env, |
jobject obj, |