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

Side by Side Diff: chrome/browser/printing/print_view_manager_basic.cc

Issue 23116003: Adds PrintingContext implementation stub for Android. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 "chrome/browser/printing/print_view_manager_basic.h" 5 #include "chrome/browser/printing/print_view_manager_basic.h"
6 6
7 #if defined(OS_ANDROID)
8 #include "base/file_descriptor_posix.h"
9 #endif
10
7 DEFINE_WEB_CONTENTS_USER_DATA_KEY(printing::PrintViewManagerBasic); 11 DEFINE_WEB_CONTENTS_USER_DATA_KEY(printing::PrintViewManagerBasic);
8 12
9 namespace printing { 13 namespace printing {
10 14
11 PrintViewManagerBasic::PrintViewManagerBasic(content::WebContents* web_contents) 15 PrintViewManagerBasic::PrintViewManagerBasic(content::WebContents* web_contents)
12 : PrintViewManagerBase(web_contents) { 16 : PrintViewManagerBase(web_contents),
17 file_descriptor_(NULL) {
13 } 18 }
14 19
15 PrintViewManagerBasic::~PrintViewManagerBasic() { 20 PrintViewManagerBasic::~PrintViewManagerBasic() {
16 } 21 }
17 22
23 #if defined(OS_ANDROID)
24 void PrintViewManagerBasic::SetFileDescriptor(
25 const base::FileDescriptor& file_descriptor) {
26 file_descriptor_ = file_descriptor;
27 }
28
29 base::FileDescriptor PrintViewManagerBasic::GetFileDescriptor() {
30 return file_descriptor_;
31 }
32 #endif
33
18 } // namespace printing 34 } // namespace printing
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698