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

Side by Side Diff: chrome/browser/ui/webui/print_preview_handler.cc

Issue 7558008: PrintPreview: Include <cups/ppd.h> in print_preview_handler.h (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/ui/webui/print_preview_handler.h" 5 #include "chrome/browser/ui/webui/print_preview_handler.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/base64.h" 9 #include "base/base64.h"
10 #if !defined(OS_CHROMEOS) 10 #if !defined(OS_CHROMEOS)
(...skipping 28 matching lines...) Expand all
39 #include "content/browser/renderer_host/render_view_host.h" 39 #include "content/browser/renderer_host/render_view_host.h"
40 #include "content/browser/tab_contents/tab_contents.h" 40 #include "content/browser/tab_contents/tab_contents.h"
41 #include "printing/backend/print_backend.h" 41 #include "printing/backend/print_backend.h"
42 #include "printing/metafile.h" 42 #include "printing/metafile.h"
43 #include "printing/metafile_impl.h" 43 #include "printing/metafile_impl.h"
44 #include "printing/page_range.h" 44 #include "printing/page_range.h"
45 #include "printing/print_job_constants.h" 45 #include "printing/print_job_constants.h"
46 46
47 #if defined(USE_CUPS) 47 #if defined(USE_CUPS)
48 #include <cups/cups.h> 48 #include <cups/cups.h>
49 #include <cups/ppd.h>
49 50
50 #include "base/file_util.h" 51 #include "base/file_util.h"
51 #endif 52 #endif
52 53
53 namespace { 54 namespace {
54 55
55 const char kDisableColorOption[] = "disableColorOption"; 56 const char kDisableColorOption[] = "disableColorOption";
56 const char kSetColorAsDefault[] = "setColorAsDefault"; 57 const char kSetColorAsDefault[] = "setColorAsDefault";
57 const char kSetDuplexAsDefault[] = "setDuplexAsDefault"; 58 const char kSetDuplexAsDefault[] = "setDuplexAsDefault";
58 59
(...skipping 827 matching lines...) Expand 10 before | Expand all | Expand 10 after
886 return; 887 return;
887 888
888 // We no longer require the initiator tab details. Remove those details 889 // We no longer require the initiator tab details. Remove those details
889 // associated with the preview tab to allow the initiator tab to create 890 // associated with the preview tab to allow the initiator tab to create
890 // another preview tab. 891 // another preview tab.
891 printing::PrintPreviewTabController* tab_controller = 892 printing::PrintPreviewTabController* tab_controller =
892 printing::PrintPreviewTabController::GetInstance(); 893 printing::PrintPreviewTabController::GetInstance();
893 if (tab_controller) 894 if (tab_controller)
894 tab_controller->EraseInitiatorTabInfo(preview_tab()); 895 tab_controller->EraseInitiatorTabInfo(preview_tab());
895 } 896 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698