Index: android_webview/lib/main/webview_stubs.cc |
diff --git a/android_webview/lib/main/webview_stubs.cc b/android_webview/lib/main/webview_stubs.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..abdd15613df7e9f27ac0981ca35479024d7e4aed |
--- /dev/null |
+++ b/android_webview/lib/main/webview_stubs.cc |
@@ -0,0 +1,27 @@ |
+// 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/tab_android.h" |
+#include "chrome/browser/autofill/autofill_external_delegate.h" |
+ |
+// This file contains temporary stubs to allow the libwebview target to compile. |
+// They will be removed once real implementations are written/upstreamed, or |
+// once other code is refactored to eliminate the need for them. |
+ |
+// static |
+TabAndroid* TabAndroid::FromWebContents(content::WebContents* web_contents) { |
+ // We don't need to return a real TabAndroid object yet. |
+ // Eventually, WebView will need its own TabAndroid implementation. |
+ return NULL; |
+} |
+ |
+// static |
+AutofillExternalDelegate* AutofillExternalDelegate::Create( |
+ TabContents* tab_contents, |
+ AutofillManager* manager) { |
+ // We don't need to return a real AutofillExternalDelegate yet. |
+ // Eventually, WebView will need an implementation (probably shared with |
+ // Chrome). |
+ return NULL; |
+} |