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_TAB_WEB_CONTENTS_DELEGATE_ANDROID_H_ | 5 #ifndef CHROME_BROWSER_ANDROID_TAB_WEB_CONTENTS_DELEGATE_ANDROID_H_ |
6 #define CHROME_BROWSER_ANDROID_TAB_WEB_CONTENTS_DELEGATE_ANDROID_H_ | 6 #define CHROME_BROWSER_ANDROID_TAB_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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 content::WebContents* OpenURLFromTab( | 79 content::WebContents* OpenURLFromTab( |
80 content::WebContents* source, | 80 content::WebContents* source, |
81 const content::OpenURLParams& params) override; | 81 const content::OpenURLParams& params) override; |
82 bool ShouldResumeRequestsForCreatedWindow() override; | 82 bool ShouldResumeRequestsForCreatedWindow() override; |
83 void AddNewContents(content::WebContents* source, | 83 void AddNewContents(content::WebContents* source, |
84 content::WebContents* new_contents, | 84 content::WebContents* new_contents, |
85 WindowOpenDisposition disposition, | 85 WindowOpenDisposition disposition, |
86 const gfx::Rect& initial_rect, | 86 const gfx::Rect& initial_rect, |
87 bool user_gesture, | 87 bool user_gesture, |
88 bool* was_blocked) override; | 88 bool* was_blocked) override; |
89 bool RequestAppBanner(content::WebContents* web_contents) override; | 89 void RequestAppBannerFromDevTools( |
| 90 content::WebContents* web_contents) override; |
90 | 91 |
91 private: | 92 private: |
92 // NotificationObserver implementation. | 93 // NotificationObserver implementation. |
93 void Observe(int type, | 94 void Observe(int type, |
94 const content::NotificationSource& source, | 95 const content::NotificationSource& source, |
95 const content::NotificationDetails& details) override; | 96 const content::NotificationDetails& details) override; |
96 | 97 |
97 void OnFindResultAvailable(content::WebContents* web_contents, | 98 void OnFindResultAvailable(content::WebContents* web_contents, |
98 const FindNotificationDetails* find_result); | 99 const FindNotificationDetails* find_result); |
99 | 100 |
100 content::NotificationRegistrar notification_registrar_; | 101 content::NotificationRegistrar notification_registrar_; |
101 }; | 102 }; |
102 | 103 |
103 // Register the native methods through JNI. | 104 // Register the native methods through JNI. |
104 bool RegisterTabWebContentsDelegateAndroid(JNIEnv* env); | 105 bool RegisterTabWebContentsDelegateAndroid(JNIEnv* env); |
105 | 106 |
106 } // namespace android | 107 } // namespace android |
107 } // namespace chrome | 108 } // namespace chrome |
108 | 109 |
109 #endif // CHROME_BROWSER_ANDROID_TAB_WEB_CONTENTS_DELEGATE_ANDROID_H_ | 110 #endif // CHROME_BROWSER_ANDROID_TAB_WEB_CONTENTS_DELEGATE_ANDROID_H_ |
OLD | NEW |