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

Side by Side Diff: chrome/browser/android/tab_android_test_stubs.cc

Issue 24109002: [InfoBar] Upstram basic infobar flow for Android. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@upstream_infobar_full
Patch Set: Fix License header in two more files Created 7 years, 3 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 unified diff | Download patch
OLDNEW
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"
10 #include "chrome/browser/translate/translate_infobar_delegate.h" 9 #include "chrome/browser/translate/translate_infobar_delegate.h"
11 #include "chrome/browser/ui/auto_login_infobar_delegate.h"
12 #include "chrome/browser/ui/auto_login_infobar_delegate_android.h"
13 #include "printing/printing_context.h" 10 #include "printing/printing_context.h"
14 #include "printing/printing_context_android.h" 11 #include "printing/printing_context_android.h"
15 12
16 // AutoLoginInfoBarDelegatAndroid empty implementation for test_shell.
17 // TODO(miguelg) remove once the AutoLoginInfoBar is upstreamed.
18 AutoLoginInfoBarDelegateAndroid::AutoLoginInfoBarDelegateAndroid(
19 InfoBarService* owner,
20 const AutoLoginInfoBarDelegate::Params& params)
21 : AutoLoginInfoBarDelegate(owner, params), params_() {}
22
23 AutoLoginInfoBarDelegateAndroid::~AutoLoginInfoBarDelegateAndroid() {}
24
25 bool AutoLoginInfoBarDelegateAndroid::Accept() {
26 return false;
27 }
28
29 bool AutoLoginInfoBarDelegateAndroid::Cancel() {
30 return false;
31 }
32
33 base::string16 AutoLoginInfoBarDelegateAndroid::GetMessageText() const {
34 return base::string16();
35 }
36
37 // static
38 bool AutoLoginInfoBarDelegateAndroid::Register(JNIEnv* env) {
39 return false;
40 }
41
42 // static
43 InfoBar* ConfirmInfoBarDelegate::CreateInfoBar(InfoBarService* owner) {
44 NOTREACHED() << "ConfirmInfoBar: InfoBarFactory should be used on Android";
45 return NULL;
46 }
47
48 // static 13 // static
49 InfoBar* TranslateInfoBarDelegate::CreateInfoBar(InfoBarService* owner) { 14 InfoBar* TranslateInfoBarDelegate::CreateInfoBar(InfoBarService* owner) {
50 return NULL; 15 return NULL;
51 } 16 }
52 17
53 // static 18 // static
54 printing::PrintingContext* printing::PrintingContext::Create( 19 printing::PrintingContext* printing::PrintingContext::Create(
55 const std::string& app_locale) { 20 const std::string& app_locale) {
56 return NULL; 21 return NULL;
57 } 22 }
58 23
59 // static 24 // static
60 void printing::PrintingContextAndroid::PdfWritingDone(int fd, bool success) { 25 void printing::PrintingContextAndroid::PdfWritingDone(int fd, bool success) {
61 } 26 }
62 27
OLDNEW
« no previous file with comments | « chrome/browser/android/chrome_jni_registrar.cc ('k') | chrome/browser/ui/android/infobar/OWNERS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698