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 CHROME_BROWSER_ANDROID_CHROME_WEB_CONTENTS_DELEGATE_ANDROID_H_ | 5 #ifndef CHROME_BROWSER_ANDROID_CHROME_WEB_CONTENTS_DELEGATE_ANDROID_H_ |
6 #define CHROME_BROWSER_ANDROID_CHROME_WEB_CONTENTS_DELEGATE_ANDROID_H_ | 6 #define CHROME_BROWSER_ANDROID_CHROME_WEB_CONTENTS_DELEGATE_ANDROID_H_ |
7 | 7 |
8 #include <jni.h> | 8 #include <jni.h> |
9 | 9 |
10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 content::WebContents* OpenURLFromTab( | 69 content::WebContents* OpenURLFromTab( |
70 content::WebContents* source, | 70 content::WebContents* source, |
71 const content::OpenURLParams& params) override; | 71 const content::OpenURLParams& params) override; |
72 bool ShouldResumeRequestsForCreatedWindow() override; | 72 bool ShouldResumeRequestsForCreatedWindow() override; |
73 void AddNewContents(content::WebContents* source, | 73 void AddNewContents(content::WebContents* source, |
74 content::WebContents* new_contents, | 74 content::WebContents* new_contents, |
75 WindowOpenDisposition disposition, | 75 WindowOpenDisposition disposition, |
76 const gfx::Rect& initial_rect, | 76 const gfx::Rect& initial_rect, |
77 bool user_gesture, | 77 bool user_gesture, |
78 bool* was_blocked) override; | 78 bool* was_blocked) override; |
| 79 void UpdateMediaControls(content::WebContents* web_contents) override; |
79 | 80 |
80 private: | 81 private: |
81 // NotificationObserver implementation. | 82 // NotificationObserver implementation. |
82 void Observe(int type, | 83 void Observe(int type, |
83 const content::NotificationSource& source, | 84 const content::NotificationSource& source, |
84 const content::NotificationDetails& details) override; | 85 const content::NotificationDetails& details) override; |
85 | 86 |
86 void OnFindResultAvailable(content::WebContents* web_contents, | 87 void OnFindResultAvailable(content::WebContents* web_contents, |
87 const FindNotificationDetails* find_result); | 88 const FindNotificationDetails* find_result); |
88 | 89 |
89 content::NotificationRegistrar notification_registrar_; | 90 content::NotificationRegistrar notification_registrar_; |
90 }; | 91 }; |
91 | 92 |
92 // Register the native methods through JNI. | 93 // Register the native methods through JNI. |
93 bool RegisterChromeWebContentsDelegateAndroid(JNIEnv* env); | 94 bool RegisterChromeWebContentsDelegateAndroid(JNIEnv* env); |
94 | 95 |
95 } // namespace android | 96 } // namespace android |
96 } // namespace chrome | 97 } // namespace chrome |
97 | 98 |
98 #endif // CHROME_BROWSER_ANDROID_CHROME_WEB_CONTENTS_DELEGATE_ANDROID_H_ | 99 #endif // CHROME_BROWSER_ANDROID_CHROME_WEB_CONTENTS_DELEGATE_ANDROID_H_ |
OLD | NEW |