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 "components/web_contents_delegate_android/web_contents_delegate_android
.h" | 5 #include "components/web_contents_delegate_android/web_contents_delegate_android
.h" |
6 | 6 |
7 #include <android/keycodes.h> | 7 #include <android/keycodes.h> |
8 | 8 |
9 #include "base/android/jni_android.h" | 9 #include "base/android/jni_android.h" |
10 #include "base/android/jni_array.h" | 10 #include "base/android/jni_array.h" |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 void WebContentsDelegateAndroid::NavigationStateChanged( | 124 void WebContentsDelegateAndroid::NavigationStateChanged( |
125 WebContents* source, content::InvalidateTypes changed_flags) { | 125 WebContents* source, content::InvalidateTypes changed_flags) { |
126 JNIEnv* env = AttachCurrentThread(); | 126 JNIEnv* env = AttachCurrentThread(); |
127 ScopedJavaLocalRef<jobject> obj = GetJavaDelegate(env); | 127 ScopedJavaLocalRef<jobject> obj = GetJavaDelegate(env); |
128 if (obj.is_null()) | 128 if (obj.is_null()) |
129 return; | 129 return; |
130 Java_WebContentsDelegateAndroid_navigationStateChanged(env, obj, | 130 Java_WebContentsDelegateAndroid_navigationStateChanged(env, obj, |
131 changed_flags); | 131 changed_flags); |
132 } | 132 } |
133 | 133 |
134 void WebContentsDelegateAndroid::VisibleSecurityStateChanged( | 134 void WebContentsDelegateAndroid::VisibleSSLStateChanged(WebContents* source) { |
135 WebContents* source) { | |
136 JNIEnv* env = AttachCurrentThread(); | 135 JNIEnv* env = AttachCurrentThread(); |
137 ScopedJavaLocalRef<jobject> obj = GetJavaDelegate(env); | 136 ScopedJavaLocalRef<jobject> obj = GetJavaDelegate(env); |
138 if (obj.is_null()) | 137 if (obj.is_null()) |
139 return; | 138 return; |
140 Java_WebContentsDelegateAndroid_visibleSSLStateChanged(env, obj); | 139 Java_WebContentsDelegateAndroid_visibleSSLStateChanged(env, obj); |
141 } | 140 } |
142 | 141 |
143 void WebContentsDelegateAndroid::ActivateContents(WebContents* contents) { | 142 void WebContentsDelegateAndroid::ActivateContents(WebContents* contents) { |
144 JNIEnv* env = AttachCurrentThread(); | 143 JNIEnv* env = AttachCurrentThread(); |
145 ScopedJavaLocalRef<jobject> obj = GetJavaDelegate(env); | 144 ScopedJavaLocalRef<jobject> obj = GetJavaDelegate(env); |
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
411 validation_message_bubble_->SetPositionRelativeToAnchor( | 410 validation_message_bubble_->SetPositionRelativeToAnchor( |
412 rwhv->GetRenderWidgetHost(), anchor_in_root_view); | 411 rwhv->GetRenderWidgetHost(), anchor_in_root_view); |
413 } | 412 } |
414 } | 413 } |
415 | 414 |
416 void WebContentsDelegateAndroid::RequestAppBannerFromDevTools( | 415 void WebContentsDelegateAndroid::RequestAppBannerFromDevTools( |
417 content::WebContents* web_contents) { | 416 content::WebContents* web_contents) { |
418 } | 417 } |
419 | 418 |
420 } // namespace web_contents_delegate_android | 419 } // namespace web_contents_delegate_android |
OLD | NEW |