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

Side by Side Diff: chrome/android/testshell/testshell_stubs.cc

Issue 23116003: Adds PrintingContext implementation stub for Android. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixes some build targets and try bots. Some other nits. Created 7 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 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 #include "base/strings/string16.h" 5 #include "base/strings/string16.h"
6 #include "chrome/browser/android/tab_android.h" 6 #include "chrome/browser/android/tab_android.h"
7 #include "chrome/browser/infobars/confirm_infobar_delegate.h" 7 #include "chrome/browser/infobars/confirm_infobar_delegate.h"
8 #include "chrome/browser/translate/translate_infobar_delegate.h" 8 #include "chrome/browser/translate/translate_infobar_delegate.h"
9 #include "chrome/browser/ui/auto_login_infobar_delegate.h" 9 #include "chrome/browser/ui/auto_login_infobar_delegate.h"
10 #include "chrome/browser/ui/auto_login_infobar_delegate_android.h" 10 #include "chrome/browser/ui/auto_login_infobar_delegate_android.h"
11 #include "printing/printing_context.h"
12 #include "printing/printing_context_android.h"
11 13
12 // This file contains temporary stubs to allow the libtestshell target to 14 // This file contains temporary stubs to allow the libtestshell target to
13 // compile. They will be removed once real implementations are 15 // compile. They will be removed once real implementations are
14 // written/upstreamed, or once other code is refactored to eliminate the 16 // written/upstreamed, or once other code is refactored to eliminate the
15 // need for them. 17 // need for them.
16 18
17 class InfoBarService; 19 class InfoBarService;
18 20
19 // static 21 // static
20 TabAndroid* TabAndroid::FromWebContents(content::WebContents* web_contents) { 22 TabAndroid* TabAndroid::FromWebContents(content::WebContents* web_contents) {
(...skipping 29 matching lines...) Expand all
50 // static 52 // static
51 InfoBar* ConfirmInfoBarDelegate::CreateInfoBar(InfoBarService* owner) { 53 InfoBar* ConfirmInfoBarDelegate::CreateInfoBar(InfoBarService* owner) {
52 NOTREACHED() << "ConfirmInfoBar: InfoBarFactory should be used on Android"; 54 NOTREACHED() << "ConfirmInfoBar: InfoBarFactory should be used on Android";
53 return NULL; 55 return NULL;
54 } 56 }
55 57
56 // static 58 // static
57 InfoBar* TranslateInfoBarDelegate::CreateInfoBar(InfoBarService* owner) { 59 InfoBar* TranslateInfoBarDelegate::CreateInfoBar(InfoBarService* owner) {
58 return NULL; 60 return NULL;
59 } 61 }
62
63 // static
64 printing::PrintingContext* printing::PrintingContext::Create(
65 const std::string& app_locale) {
66 return NULL;
67 }
68
69 // static
70 void printing::PrintingContextAndroid::PdfWritingDone(int fd, bool success) {
71 }
72
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698