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

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

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.cc
diff --git a/chrome/browser/android/chrome_web_contents_delegate_android.cc b/chrome/browser/android/chrome_web_contents_delegate_android.cc
new file mode 100644
index 0000000000000000000000000000000000000000..0f61eb7722f987fd9fba679278a950e18b16c33a
--- /dev/null
+++ b/chrome/browser/android/chrome_web_contents_delegate_android.cc
@@ -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.
+
+#include "chrome/browser/android/chrome_web_contents_delegate_android.h"
+
+#include "base/android/jni_android.h"
+#include "chrome/browser/file_select_helper.h"
+#include "content/public/browser/web_contents.h"
+#include "content/public/common/file_chooser_params.h"
+
+using base::android::AttachCurrentThread;
+using base::android::GetClass;
+using base::android::ScopedJavaLocalRef;
+using content::FileChooserParams;
+using content::WebContents;
+
+namespace chrome {
+namespace android {
+
+ChromeWebContentsDelegateAndroid::ChromeWebContentsDelegateAndroid(JNIEnv* env,
+ jobject obj)
+ : WebContentsDelegateAndroid(env, obj) {
+}
+
+ChromeWebContentsDelegateAndroid::~ChromeWebContentsDelegateAndroid() {
+}
+
+void ChromeWebContentsDelegateAndroid::RunFileChooser(
+ WebContents* web_contents,
+ const FileChooserParams& params) {
+ FileSelectHelper::RunFileChooser(web_contents, params);
+}
+
+} // namespace android
+} // namespace chrome
+
« no previous file with comments | « chrome/browser/android/chrome_web_contents_delegate_android.h ('k') | chrome/browser/android/content_view_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698