| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_ANDROID_H_ | 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_ANDROID_H_ |
| 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_ANDROID_H_ | 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_ANDROID_H_ |
| 7 | 7 |
| 8 #include <jni.h> | 8 #include <jni.h> |
| 9 | 9 |
| 10 #include "base/android/scoped_java_ref.h" | 10 #include "base/android/scoped_java_ref.h" |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 | 58 |
| 59 // This method is invoked when the request is deferred immediately after | 59 // This method is invoked when the request is deferred immediately after |
| 60 // receiving response headers. | 60 // receiving response headers. |
| 61 void DidDeferAfterResponseStarted(const TransitionLayerData& transition_data); | 61 void DidDeferAfterResponseStarted(const TransitionLayerData& transition_data); |
| 62 | 62 |
| 63 // This method is invoked when a navigation transition is detected, to | 63 // This method is invoked when a navigation transition is detected, to |
| 64 // determine if the embedder intends to handle it. | 64 // determine if the embedder intends to handle it. |
| 65 bool WillHandleDeferAfterResponseStarted(); | 65 bool WillHandleDeferAfterResponseStarted(); |
| 66 | 66 |
| 67 // This method is invoked when a navigation transition has started. | 67 // This method is invoked when a navigation transition has started. |
| 68 void DidStartNavigationTransitionForFrame(int64 frame_id); | 68 void DidStartNavigationTransitionForFrame( |
| 69 int64 frame_id, |
| 70 const TransitionLayerData& transition_data); |
| 69 | 71 |
| 70 void OnHide(JNIEnv* env, jobject obj); | 72 void OnHide(JNIEnv* env, jobject obj); |
| 71 void OnShow(JNIEnv* env, jobject obj); | 73 void OnShow(JNIEnv* env, jobject obj); |
| 72 void ReleaseMediaPlayers(JNIEnv* env, jobject jobj); | 74 void ReleaseMediaPlayers(JNIEnv* env, jobject jobj); |
| 73 | 75 |
| 74 void AddStyleSheetByURL( | 76 void AddStyleSheetByURL( |
| 75 JNIEnv* env, jobject obj, jstring url); | 77 JNIEnv* env, jobject obj, jstring url); |
| 76 void ShowInterstitialPage( | 78 void ShowInterstitialPage( |
| 77 JNIEnv* env, jobject obj, jstring jurl, jlong delegate_ptr); | 79 JNIEnv* env, jobject obj, jstring jurl, jlong delegate_ptr); |
| 78 jboolean IsShowingInterstitialPage(JNIEnv* env, jobject obj); | 80 jboolean IsShowingInterstitialPage(JNIEnv* env, jobject obj); |
| (...skipping 22 matching lines...) Expand all Loading... |
| 101 WebContents* web_contents_; | 103 WebContents* web_contents_; |
| 102 NavigationControllerAndroid navigation_controller_; | 104 NavigationControllerAndroid navigation_controller_; |
| 103 base::android::ScopedJavaGlobalRef<jobject> obj_; | 105 base::android::ScopedJavaGlobalRef<jobject> obj_; |
| 104 | 106 |
| 105 DISALLOW_COPY_AND_ASSIGN(WebContentsAndroid); | 107 DISALLOW_COPY_AND_ASSIGN(WebContentsAndroid); |
| 106 }; | 108 }; |
| 107 | 109 |
| 108 } // namespace content | 110 } // namespace content |
| 109 | 111 |
| 110 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_ANDROID_H_ | 112 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_ANDROID_H_ |
| OLD | NEW |