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

Side by Side Diff: chrome/utility/cloud_print/pwg_encoder.h

Issue 74873002: Fixed namespace in chrome/utility/cloud_print/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 | Annotate | Revision Log
« no previous file with comments | « chrome/utility/cloud_print/bitmap_image.cc ('k') | chrome/utility/cloud_print/pwg_encoder.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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 #ifndef CHROME_UTILITY_CLOUD_PRINT_PWG_ENCODER_H_ 5 #ifndef CHROME_UTILITY_CLOUD_PRINT_PWG_ENCODER_H_
6 #define CHROME_UTILITY_CLOUD_PRINT_PWG_ENCODER_H_ 6 #define CHROME_UTILITY_CLOUD_PRINT_PWG_ENCODER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 namespace printing { 10 #include "base/basictypes.h"
11
12 namespace cloud_print {
11 13
12 class BitmapImage; 14 class BitmapImage;
13 15
14 class PwgEncoder { 16 class PwgEncoder {
15 public: 17 public:
16 PwgEncoder(); 18 PwgEncoder();
17 19
18 void EncodeDocumentHeader(std::string *output) const; 20 void EncodeDocumentHeader(std::string *output) const;
19 bool EncodePage(const BitmapImage& image, const uint32 dpi, 21 bool EncodePage(const BitmapImage& image, const uint32 dpi,
20 const uint32 total_pages, std::string* output) const; 22 const uint32 total_pages, std::string* output) const;
21 23
22 private: 24 private:
23 void EncodePageHeader(const BitmapImage& image, const uint32 dpi, 25 void EncodePageHeader(const BitmapImage& image, const uint32 dpi,
24 const uint32 total_pages, std::string* output) const; 26 const uint32 total_pages, std::string* output) const;
25 bool EncodeRowFrom32Bit(const uint8* row, const int width, 27 bool EncodeRowFrom32Bit(const uint8* row, const int width,
26 const int color_space, std::string* output) const; 28 const int color_space, std::string* output) const;
27 const uint8* GetRow(const BitmapImage& image, int row) const; 29 const uint8* GetRow(const BitmapImage& image, int row) const;
28 }; 30 };
29 31
30 } // namespace printing 32 } // namespace cloud_print
31 33
32 #endif // CHROME_UTILITY_CLOUD_PRINT_PWG_ENCODER_H_ 34 #endif // CHROME_UTILITY_CLOUD_PRINT_PWG_ENCODER_H_
OLDNEW
« no previous file with comments | « chrome/utility/cloud_print/bitmap_image.cc ('k') | chrome/utility/cloud_print/pwg_encoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698