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

Side by Side Diff: printing/backend/print_backend.h

Issue 2463473002: Present the printer list from preferences for Chrome OS. (Closed)
Patch Set: add bug id Created 4 years, 1 month 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 #ifndef PRINTING_BACKEND_PRINT_BACKEND_H_ 5 #ifndef PRINTING_BACKEND_PRINT_BACKEND_H_
6 #define PRINTING_BACKEND_PRINT_BACKEND_H_ 6 #define PRINTING_BACKEND_PRINT_BACKEND_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/memory/ref_counted.h" 12 #include "base/memory/ref_counted.h"
13 #include "printing/print_job_constants.h" 13 #include "printing/print_job_constants.h"
14 #include "printing/printing_export.h" 14 #include "printing/printing_export.h"
15 #include "ui/gfx/geometry/size.h" 15 #include "ui/gfx/geometry/size.h"
16 16
17 namespace base { 17 namespace base {
18 class DictionaryValue; 18 class DictionaryValue;
19 } 19 }
20 20
21 // This is the interface for platform-specific code for a print backend 21 // This is the interface for platform-specific code for a print backend
22 namespace printing { 22 namespace printing {
23 23
24 // Note: There are raw values. The |printer_name| and |printer_description| 24 // Note: There are raw values. The |printer_name| and |printer_description|
25 // require further interpretation on Mac. See existing callers for examples. 25 // require further interpretation on Mac. See existing callers for examples.
Lei Zhang 2016/11/03 07:39:50 Update comment.
skau 2016/11/03 21:58:27 Done.
26 struct PRINTING_EXPORT PrinterBasicInfo { 26 struct PRINTING_EXPORT PrinterBasicInfo {
27 PrinterBasicInfo(); 27 PrinterBasicInfo();
28 PrinterBasicInfo(const PrinterBasicInfo& other); 28 PrinterBasicInfo(const PrinterBasicInfo& other);
29 ~PrinterBasicInfo(); 29 ~PrinterBasicInfo();
30 30
31 #if defined(OS_CHROMEOS)
32 std::string printer_display_name;
33 #endif
31 std::string printer_name; 34 std::string printer_name;
32 std::string printer_description; 35 std::string printer_description;
33 int printer_status; 36 int printer_status;
34 int is_default; 37 int is_default;
35 std::map<std::string, std::string> options; 38 std::map<std::string, std::string> options;
36 }; 39 };
37 40
38 using PrinterList = std::vector<PrinterBasicInfo>; 41 using PrinterList = std::vector<PrinterBasicInfo>;
39 42
40 struct PRINTING_EXPORT PrinterSemanticCapsAndDefaults { 43 struct PRINTING_EXPORT PrinterSemanticCapsAndDefaults {
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 static void SetNativeCupsEnabled(bool enabled); 132 static void SetNativeCupsEnabled(bool enabled);
130 133
131 protected: 134 protected:
132 friend class base::RefCountedThreadSafe<PrintBackend>; 135 friend class base::RefCountedThreadSafe<PrintBackend>;
133 virtual ~PrintBackend(); 136 virtual ~PrintBackend();
134 }; 137 };
135 138
136 } // namespace printing 139 } // namespace printing
137 140
138 #endif // PRINTING_BACKEND_PRINT_BACKEND_H_ 141 #endif // PRINTING_BACKEND_PRINT_BACKEND_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698