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 #include "base/strings/string16.h" | 5 #include "base/strings/string16.h" |
6 #include "chrome/browser/infobars/confirm_infobar_delegate.h" | |
7 #include "chrome/browser/translate/translate_infobar_delegate.h" | 6 #include "chrome/browser/translate/translate_infobar_delegate.h" |
8 #include "chrome/browser/ui/auto_login_infobar_delegate.h" | |
9 #include "chrome/browser/ui/auto_login_infobar_delegate_android.h" | |
10 #include "printing/printing_context.h" | 7 #include "printing/printing_context.h" |
11 #include "printing/printing_context_android.h" | 8 #include "printing/printing_context_android.h" |
12 | 9 |
13 // This file contains temporary stubs to allow the libtestshell target to | 10 // This file contains temporary stubs to allow the libtestshell target to |
14 // compile. They will be removed once real implementations are | 11 // compile. They will be removed once real implementations are |
15 // written/upstreamed, or once other code is refactored to eliminate the | 12 // written/upstreamed, or once other code is refactored to eliminate the |
16 // need for them. | 13 // need for them. |
17 | 14 |
18 class InfoBarService; | 15 class InfoBarService; |
19 | 16 |
20 // AutoLoginInfoBarDelegatAndroid empty implementation for test_shell | |
21 // TODO(miguelg) remove once the AutoLoginInfoBar is upstreamed. | |
22 AutoLoginInfoBarDelegateAndroid::AutoLoginInfoBarDelegateAndroid( | |
23 InfoBarService* owner, | |
24 const AutoLoginInfoBarDelegate::Params& params) | |
25 : AutoLoginInfoBarDelegate(owner, params), params_() {} | |
26 | |
27 AutoLoginInfoBarDelegateAndroid::~AutoLoginInfoBarDelegateAndroid() {} | |
28 | |
29 bool AutoLoginInfoBarDelegateAndroid::Accept() { | |
30 return false; | |
31 } | |
32 | |
33 bool AutoLoginInfoBarDelegateAndroid::Cancel() { | |
34 return false; | |
35 } | |
36 | |
37 base::string16 AutoLoginInfoBarDelegateAndroid::GetMessageText() const { | |
38 return base::string16(); | |
39 } | |
40 | |
41 // static | |
42 bool AutoLoginInfoBarDelegateAndroid::Register(JNIEnv* env) { | |
43 return false; | |
44 } | |
45 | |
46 // static | |
47 InfoBar* ConfirmInfoBarDelegate::CreateInfoBar(InfoBarService* owner) { | |
48 NOTREACHED() << "ConfirmInfoBar: InfoBarFactory should be used on Android"; | |
49 return NULL; | |
50 } | |
51 | |
52 // static | 17 // static |
53 InfoBar* TranslateInfoBarDelegate::CreateInfoBar(InfoBarService* owner) { | 18 InfoBar* TranslateInfoBarDelegate::CreateInfoBar(InfoBarService* owner) { |
54 return NULL; | 19 return NULL; |
55 } | 20 } |
56 | 21 |
57 // static | 22 // static |
58 printing::PrintingContext* printing::PrintingContext::Create( | 23 printing::PrintingContext* printing::PrintingContext::Create( |
59 const std::string& app_locale) { | 24 const std::string& app_locale) { |
60 return NULL; | 25 return NULL; |
61 } | 26 } |
62 | 27 |
63 // static | 28 // static |
64 void printing::PrintingContextAndroid::PdfWritingDone(int fd, bool success) { | 29 void printing::PrintingContextAndroid::PdfWritingDone(int fd, bool success) { |
65 } | 30 } |
66 | 31 |
OLD | NEW |