| 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 // This file contains stubs for some Chrome for Android specific code that is | 5 // This file contains stubs for some Chrome for Android specific code that is |
| 6 // needed to compile some tests. | 6 // needed to compile some tests. |
| 7 | 7 |
| 8 #include "chrome/browser/android/tab_android.h" | 8 #include "chrome/browser/android/tab_android.h" |
| 9 #include "chrome/browser/infobars/confirm_infobar_delegate.h" | 9 #include "chrome/browser/infobars/confirm_infobar_delegate.h" |
| 10 #include "chrome/browser/translate/translate_infobar_delegate.h" | 10 #include "chrome/browser/translate/translate_infobar_delegate.h" |
| 11 #include "chrome/browser/ui/auto_login_infobar_delegate.h" | 11 #include "chrome/browser/ui/auto_login_infobar_delegate.h" |
| 12 #include "chrome/browser/ui/auto_login_infobar_delegate_android.h" | 12 #include "chrome/browser/ui/auto_login_infobar_delegate_android.h" |
| 13 #include "printing/printing_context.h" | 13 #include "printing/printing_context.h" |
| 14 #include "printing/printing_context_android.h" | 14 #include "printing/printing_context_android.h" |
| 15 | 15 |
| 16 // static | |
| 17 TabAndroid* TabAndroid::FromWebContents(content::WebContents* web_contents) { | |
| 18 return NULL; | |
| 19 } | |
| 20 | |
| 21 // static | |
| 22 TabAndroid* TabAndroid::GetNativeTab(JNIEnv* env, jobject obj) { | |
| 23 return NULL; | |
| 24 } | |
| 25 | |
| 26 // AutoLoginInfoBarDelegatAndroid empty implementation for test_shell. | 16 // AutoLoginInfoBarDelegatAndroid empty implementation for test_shell. |
| 27 // TODO(miguelg) remove once the AutoLoginInfoBar is upstreamed. | 17 // TODO(miguelg) remove once the AutoLoginInfoBar is upstreamed. |
| 28 AutoLoginInfoBarDelegateAndroid::AutoLoginInfoBarDelegateAndroid( | 18 AutoLoginInfoBarDelegateAndroid::AutoLoginInfoBarDelegateAndroid( |
| 29 InfoBarService* owner, | 19 InfoBarService* owner, |
| 30 const AutoLoginInfoBarDelegate::Params& params) | 20 const AutoLoginInfoBarDelegate::Params& params) |
| 31 : AutoLoginInfoBarDelegate(owner, params), params_() {} | 21 : AutoLoginInfoBarDelegate(owner, params), params_() {} |
| 32 | 22 |
| 33 AutoLoginInfoBarDelegateAndroid::~AutoLoginInfoBarDelegateAndroid() {} | 23 AutoLoginInfoBarDelegateAndroid::~AutoLoginInfoBarDelegateAndroid() {} |
| 34 | 24 |
| 35 bool AutoLoginInfoBarDelegateAndroid::Accept() { | 25 bool AutoLoginInfoBarDelegateAndroid::Accept() { |
| (...skipping 27 matching lines...) Expand all Loading... |
| 63 // static | 53 // static |
| 64 printing::PrintingContext* printing::PrintingContext::Create( | 54 printing::PrintingContext* printing::PrintingContext::Create( |
| 65 const std::string& app_locale) { | 55 const std::string& app_locale) { |
| 66 return NULL; | 56 return NULL; |
| 67 } | 57 } |
| 68 | 58 |
| 69 // static | 59 // static |
| 70 void printing::PrintingContextAndroid::PdfWritingDone(int fd, bool success) { | 60 void printing::PrintingContextAndroid::PdfWritingDone(int fd, bool success) { |
| 71 } | 61 } |
| 72 | 62 |
| OLD | NEW |