Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3101)

Unified Diff: chrome/browser/android/chrome_web_contents_delegate_android.h

Issue 10831060: Refactor the Android port to allow access to the chrome layer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nit fixed. Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/android/chrome_web_contents_delegate_android.h
diff --git a/chrome/browser/android/chrome_web_contents_delegate_android.h b/chrome/browser/android/chrome_web_contents_delegate_android.h
new file mode 100644
index 0000000000000000000000000000000000000000..beba28fa73f104fe51fd3f8d583df8b65e7e275d
--- /dev/null
+++ b/chrome/browser/android/chrome_web_contents_delegate_android.h
@@ -0,0 +1,37 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_ANDROID_CHROME_WEB_CONTENTS_DELEGATE_ANDROID_H_
+#define CHROME_BROWSER_ANDROID_CHROME_WEB_CONTENTS_DELEGATE_ANDROID_H_
+
+#include <jni.h>
+
+#include "chrome/browser/component/web_contents_delegate_android/web_contents_delegate_android.h"
+
+namespace content {
+struct FileChooserParams;
+class WebContents;
+}
+
+namespace chrome {
+namespace android {
+
+// Chromium Android specific WebContentsDelegate.
+// Should contain any WebContentsDelegate implementations required by
+// the Chromium Android port but not to be shared with WebView.
+class ChromeWebContentsDelegateAndroid
+ : public web_contents_delegate_android::WebContentsDelegateAndroid {
+ public:
+ ChromeWebContentsDelegateAndroid(JNIEnv* env, jobject obj);
+ virtual ~ChromeWebContentsDelegateAndroid();
+
+ virtual void RunFileChooser(content::WebContents* web_contents,
+ const content::FileChooserParams& params)
+ OVERRIDE;
+};
+
+} // namespace android
+} // namespace chrome
+
+#endif // CHROME_BROWSER_ANDROID_CHROME_WEB_CONTENTS_DELEGATE_ANDROID_H_
« no previous file with comments | « chrome/browser/android/chrome_jni_registrar.cc ('k') | chrome/browser/android/chrome_web_contents_delegate_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698