| 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 14 matching lines...) Expand all Loading... |
| 25 class RectF; | 25 class RectF; |
| 26 } | 26 } |
| 27 | 27 |
| 28 namespace chrome { | 28 namespace chrome { |
| 29 namespace android { | 29 namespace android { |
| 30 | 30 |
| 31 // Chromium Android specific WebContentsDelegate. | 31 // Chromium Android specific WebContentsDelegate. |
| 32 // Should contain any WebContentsDelegate implementations required by | 32 // Should contain any WebContentsDelegate implementations required by |
| 33 // the Chromium Android port but not to be shared with WebView. | 33 // the Chromium Android port but not to be shared with WebView. |
| 34 class ChromeWebContentsDelegateAndroid | 34 class ChromeWebContentsDelegateAndroid |
| 35 : public components::WebContentsDelegateAndroid, | 35 : public web_contents_delegate_android::WebContentsDelegateAndroid, |
| 36 public content::NotificationObserver { | 36 public content::NotificationObserver { |
| 37 public: | 37 public: |
| 38 ChromeWebContentsDelegateAndroid(JNIEnv* env, jobject obj); | 38 ChromeWebContentsDelegateAndroid(JNIEnv* env, jobject obj); |
| 39 virtual ~ChromeWebContentsDelegateAndroid(); | 39 virtual ~ChromeWebContentsDelegateAndroid(); |
| 40 | 40 |
| 41 virtual void RunFileChooser(content::WebContents* web_contents, | 41 virtual void RunFileChooser(content::WebContents* web_contents, |
| 42 const content::FileChooserParams& params) | 42 const content::FileChooserParams& params) |
| 43 OVERRIDE; | 43 OVERRIDE; |
| 44 virtual void CloseContents(content::WebContents* web_contents) OVERRIDE; | 44 virtual void CloseContents(content::WebContents* web_contents) OVERRIDE; |
| 45 virtual void FindReply(content::WebContents* web_contents, | 45 virtual void FindReply(content::WebContents* web_contents, |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 base::TimeTicks navigation_start_time_; | 81 base::TimeTicks navigation_start_time_; |
| 82 }; | 82 }; |
| 83 | 83 |
| 84 // Register the native methods through JNI. | 84 // Register the native methods through JNI. |
| 85 bool RegisterChromeWebContentsDelegateAndroid(JNIEnv* env); | 85 bool RegisterChromeWebContentsDelegateAndroid(JNIEnv* env); |
| 86 | 86 |
| 87 } // namespace android | 87 } // namespace android |
| 88 } // namespace chrome | 88 } // namespace chrome |
| 89 | 89 |
| 90 #endif // CHROME_BROWSER_ANDROID_CHROME_WEB_CONTENTS_DELEGATE_ANDROID_H_ | 90 #endif // CHROME_BROWSER_ANDROID_CHROME_WEB_CONTENTS_DELEGATE_ANDROID_H_ |
| OLD | NEW |