| 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 #ifndef ANDROID_WEBVIEW_NATIVE_AW_WEB_CONTENTS_DELEGATE_H_ | 5 #ifndef ANDROID_WEBVIEW_NATIVE_AW_WEB_CONTENTS_DELEGATE_H_ |
| 6 #define ANDROID_WEBVIEW_NATIVE_AW_WEB_CONTENTS_DELEGATE_H_ | 6 #define ANDROID_WEBVIEW_NATIVE_AW_WEB_CONTENTS_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <jni.h> | 8 #include <jni.h> |
| 9 | 9 |
| 10 #include "components/web_contents_delegate_android/web_contents_delegate_android
.h" | 10 #include "components/web_contents_delegate_android/web_contents_delegate_android
.h" |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 | 49 |
| 50 void CloseContents(content::WebContents* source) override; | 50 void CloseContents(content::WebContents* source) override; |
| 51 void ActivateContents(content::WebContents* contents) override; | 51 void ActivateContents(content::WebContents* contents) override; |
| 52 void LoadingStateChanged(content::WebContents* source, | 52 void LoadingStateChanged(content::WebContents* source, |
| 53 bool to_different_document) override; | 53 bool to_different_document) override; |
| 54 bool ShouldResumeRequestsForCreatedWindow() override; | 54 bool ShouldResumeRequestsForCreatedWindow() override; |
| 55 void RequestMediaAccessPermission( | 55 void RequestMediaAccessPermission( |
| 56 content::WebContents* web_contents, | 56 content::WebContents* web_contents, |
| 57 const content::MediaStreamRequest& request, | 57 const content::MediaStreamRequest& request, |
| 58 const content::MediaResponseCallback& callback) override; | 58 const content::MediaResponseCallback& callback) override; |
| 59 base::android::ScopedJavaLocalRef<jobject> |
| 60 GetContentVideoViewEmbedder() override; |
| 61 bool ShouldBlockMediaRequest(const GURL& url) override; |
| 59 void EnterFullscreenModeForTab(content::WebContents* web_contents, | 62 void EnterFullscreenModeForTab(content::WebContents* web_contents, |
| 60 const GURL& origin) override; | 63 const GURL& origin) override; |
| 61 void ExitFullscreenModeForTab(content::WebContents* web_contents) override; | 64 void ExitFullscreenModeForTab(content::WebContents* web_contents) override; |
| 62 bool IsFullscreenForTabOrPending( | 65 bool IsFullscreenForTabOrPending( |
| 63 const content::WebContents* web_contents) const override; | 66 const content::WebContents* web_contents) const override; |
| 64 | 67 |
| 65 private: | 68 private: |
| 66 bool is_fullscreen_; | 69 bool is_fullscreen_; |
| 67 }; | 70 }; |
| 68 | 71 |
| 69 bool RegisterAwWebContentsDelegate(JNIEnv* env); | 72 bool RegisterAwWebContentsDelegate(JNIEnv* env); |
| 70 | 73 |
| 71 } // namespace android_webview | 74 } // namespace android_webview |
| 72 | 75 |
| 73 #endif // ANDROID_WEBVIEW_NATIVE_AW_WEB_CONTENTS_DELEGATE_H_ | 76 #endif // ANDROID_WEBVIEW_NATIVE_AW_WEB_CONTENTS_DELEGATE_H_ |
| OLD | NEW |